The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Suexec gives 500 internal error

Discussion in 'General Discussion' started by technoix, Jan 21, 2008.

  1. technoix

    technoix Registered

    Joined:
    Aug 1, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Try tailing the suexec log and accessing a page that produces a failure:

    Code:
    tail -f /usr/local/apache/logs/suexec_log
     
  3. steveheinsch

    steveheinsch Member

    Joined:
    Apr 16, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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"
     
    #3 steveheinsch, Jan 22, 2008
    Last edited: Jan 22, 2008
Loading...

Share This Page