I have a database that hosts three different sites. Most files on one have permissions 644, most on the other two have 755, which as I have learnt includes the execute permission. I was wondering if that could cause any problems (not because I want to avoid changing it, just because there are a few problems on one of the site that has execute permissions and I don’t know if this could have caused it). I know execute permissions are not strictly speaking necessary for php files but I don’t know why, so I don’t know if they do anything… Any help would be greatly appreciated!
Share
It depends on how you execute php scripts. It your scripts are shellscript or executed via cgi your php scripts need the execution bit. If you are running via webserver and mod_php then this is not necessary.