Page 1 of 1

Fixing permissions errors found in server log

PostPosted: Fri Jan 13, 2012 4:25 pm
by mmoxcey
This is on a Linux box. The three dots: . . . are just for formatting purposes.

If your server log has Permission issues such as:
. . . [error] (13)Permission denied: access to /php/packages/core/js/jquery-ui.custom.min.js denied,
or
. . . [error] (13)Permission denied: exec of '/var/www/NWRC/Archon/adminthemes/default/images/bg_gradient.gif' failed

Then you want to make sure directories have world eXecute access so apache can search them: chmod 755 dir/
The .php files need eXecute access: chmod 755 *.php
In addition, you need this line in your httpd.conf file:
. . . Options +ExecCGI +FollowSymLinks +Indexes

The other files ( *.ico .gif .png .js ) need world Read access 644 so apache can read the files but not eXecute.

I also had to turn off what appears to be NFS access stuff in httpd.conf even tho we don't use that.
IT APPEARS TO BE THE MAGIC FIX!?!

Enable these two commands by uncommenting in : /etc/httpd/conf/httpd.conf
. . . EnableMMAP off
. . . EnableSendfile off