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.

Php (Internal Server error)

Discussion in 'General Discussion' started by DerfStew, Oct 27, 2014.

  1. DerfStew

    DerfStew Registered

    Joined:
    Oct 27, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello Everyone

    5th Time I have tried to make this post but here it goes:

    I have been having issues with my CPanel server by getting 500 Internal Server Error.
    I have searched the forums and tried some solutions but nothing has worked.
    Here is the Apache Error log. - Removed -

    Thanks and Kind Regards
    Jack

    Code:
    Oct 27 19:37:43 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
    [Mon Oct 27 19:37:43 2014] [notice] Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations
    [Mon Oct 27 19:37:44 2014] [error] [client 114.76.xx.xxx] SoftException in Application.cpp:601: Directory "/" is writeable by group, referer: http://domain.com/billing/index.php
    [Mon Oct 27 19:37:44 2014] [error] [client 114.76.xx.xxx] Premature end of script headers: jsCodeInjecter.php, referer: http://domain.com/billing/index.php
    [Mon Oct 27 19:37:44 2014] [error] [client 114.76.xx.xxx] File does not exist: /home/username/public_html/500.shtml, referer: http://domain.com/billing/index.php
    [Mon Oct 27 19:37:46 2014] [notice] caught SIGTERM, shutting down
    [Mon Oct 27 19:37:49 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
    [Mon Oct 27 19:37:49 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Mon Oct 27 19:37:49 2014] [notice] ModSecurity for Apache/2.8.0 (http://www.modsecurity.org/) configured.
    [Mon Oct 27 19:37:49 2014] [notice] ModSecurity: APR compiled version="1.5.0"; loaded version="1.5.0"
    [Mon Oct 27 19:37:49 2014] [notice] ModSecurity: PCRE compiled version="8.21 "; loaded version="8.21 2011-12-12"
    [Mon Oct 27 19:37:49 2014] [notice] ModSecurity: LUA compiled version="Lua 5.1"
    [Mon Oct 27 19:37:49 2014] [notice] ModSecurity: LIBXML compiled version="2.9.0"
    [Mon Oct 27 19:37:49 2014] [notice] Status engine is currently disabled, enable it by set SecStatusEngine to On.
    [Mon Oct 27 19:37:50 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
    [Mon Oct 27 19:37:50 2014] [notice] Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations
    [Mon Oct 27 19:37:55 2014] [error] [client 114.76.xx.xxx] SoftException in Application.cpp:601: Directory "/" is writeable by group, referer: http://domain.com/billing/index.php
    [Mon Oct 27 19:37:55 2014] [error] [client 114.76.xx.xxx] Premature end of script headers: jsCodeInjecter.php, referer: http://domain.com/billing/index.php
    [Mon Oct 27 19:37:55 2014] [error] [client 114.76.xx.xxx] File does not exist: /home/username/public_html/500.shtml, referer: http://domain.com/billing/index.php
    [Mon Oct 27 19:37:57 2014] [error] [client 66.249.xx.xx] SoftException in Application.cpp:601: Directory "/" is writeable by group
    [Mon Oct 27 19:37:57 2014] [error] [client 66.249.xx.xx] Premature end of script headers: index.php
    [Mon Oct 27 19:37:57 2014] [error] [client 66.249.xx.xx] File does not exist: /home/eclipse7/public_html/500.shtml
    ~
    ~
    ~
     
    #1 DerfStew, Oct 27, 2014
    Last edited by a moderator: Oct 27, 2014
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The important error message here is:

    Check the permissions on the "/" directory on your system with a command such as:

    Code:
    stat /
    Default permissions are 0755 on this directory. Also, review the directories within the account to make sure none of them are set to 0777. Note that it's also a good idea to investigate how/why the directory permissions were manually changed.

    Thank you.
     
  3. DerfStew

    DerfStew Registered

    Joined:
    Oct 27, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks Michael.

    Your solution did work, and I have no Idea how it was changed (going through logs) the directory (www) was set to 0777 after changing them all the websites started to work again.

    Thanks and Kind Regards
    Jack.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I am happy to see the issue is now resolved. You can review /var/log/messages or /usr/local/cpanel/logs/access_log to determine if the user modified the permissions via FTP or cPanel's File Manager.

    Thank you.
     
Loading...

Share This Page