technoix

Registered
Aug 1, 2005
2
0
151
Hi,

I want to enable suexec to protect my server againt bad scripts so when i do that each account stops running.. I got 500 Internal Server error and php files stop running...

Then i chown the public_html to user:user but this time only the files under public_html works not the subfolders and the files under the subfolders.....

do you have any ideas to solve this problem....

Server OS : FreeBsd
 

steveheinsch

Member
Apr 16, 2007
7
0
151
when you chown'd the public_html...did you also chown the subdirs? chown -R user:group public_html
Also,
# Suexec requires that user cgi scripts not be writable by others, e.g., be 755
# Suexec requies that the directory containing a cgi script not be writable by others, e.g., be 755 and not 775.
# If suexec fails to execute a user's script, /var/log/httpd/error_log will only indicate "Premature end of script headers"; however, /var/log/httpd/suexec_log will indicate the actual problem, e.g., "error: directory is writable by others"
 
Last edited: