jalmenarez / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Server error caused by DirectoryIndex missing index.php #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Minify version: 2.1.1
PHP version: 5.2.5

What steps will reproduce the problem?
1. running minify

Expected output: minified css/js

Actual output: [an error occurred while processing this directive] You
don't have permission to access the requested directory. There is either no
index document or the directory is read-protected. [an error occurred while
processing this directive] 

Did you run the unit tests? ran unit tests. NO FAILURES

Please provide any additional information below.

we have several sites running from this server. each of these sites is
running minify successfully. 
here is the url for the test page that is breaking:
http://www.allglacier.com/attractions/

if one were to either look at the css output or try to access the
http://www.allglacier.com/min  minify builder the actual output message
(see above) is the result. all permissions are set correctly. the min
directory is also entirely intact, although we have tried removing it and
uploading it several times. 

one thing we discovered is that if we remove the min/.htaccess file, we can
then access the http://www.allglacier.com/min/builder page, BUT with the
following warning:
Note: Your webserver does not seem to support mod_rewrite (used in
/min/.htaccess). Your Minify URIs will contain "?", which may reduce the
benefit of proxy cache servers.

my knowledge of what is happening server-side is somewhat limited, but
based on the fact that other sites are working flawlessly on the same
server is baffling me. any ideas?

Original issue reported on code.google.com by abigwond...@gmail.com on 5 Nov 2008 at 5:44

GoogleCodeExporter commented 9 years ago
See: http://groups.google.com/group/minify/browse_thread/thread/8b1762d57ccdb21e

Unit tests should be added to test that .htaccess doesn't cause server errors 
and 
index.php is in the DirectoryIndex list (or what have you for other servers).

Original comment by mrclay....@gmail.com on 5 Nov 2008 at 7:00

GoogleCodeExporter commented 9 years ago
we ran unit test. there are no .htaccess caused server errors.

just so you can see, this site is running minify: 
http://www.acadianationalpark.com/
this is hosted on the SAME server as http://www.allglacier.com/attractions/. my
assumption is that if the above url works fine, that the reasons for the issue
shouldn't be server-related, unless there is some sort of acute permissions (or
something else i'm not thinking of) restraint being put on
http://www.allglacier.com/attractions/

Original comment by abigwond...@gmail.com on 5 Nov 2008 at 7:22

GoogleCodeExporter commented 9 years ago
index.php should be in the DirectoryIndex of any correctly configured Apache 
server 
(with PHP), so I don't think every PHP app should need to test for this.

Original comment by mrclay....@gmail.com on 27 Nov 2008 at 3:59