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.

500 Internal Server Error

Discussion in 'General Discussion' started by ES - George, Aug 31, 2011.

  1. ES - George

    ES - George Well-Known Member
    PartnerNOC

    Joined:
    Jun 12, 2011
    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Hi,

    On a site of mine, I'm getting this, any ideas?

    Code:
    500 Internal Server Error
    The request was not completed. The server met an unexpected condition.
    
    IPADDRESS/~USER/FOLDER/FOLDER/ (port 80)
    Please forward this error screen to IP's WebMaster.
    Any ideas?

    Thanks.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Have you checked the error logs for Apache while trying to load the site in a browser?

    Code:
    tail -fn0 /usr/local/apache/logs/error_log
     
  3. ES - George

    ES - George Well-Known Member
    PartnerNOC

    Joined:
    Jun 12, 2011
    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    I haven't, no.

    Code:
    root@server [/]# tail -fn0 /usr/local/apache/logs/error_log
    [Wed Aug 31 19:58:55 2011] [error] [client 67.195.114.61] File does not exist: /home/site/public_html/site/robots.txt
    [Wed Aug 31 19:58:55 2011] [error] [client 67.195.114.61] File does not exist: /home/site/public_html/site/404.shtml
    [Wed Aug 31 19:59:37 2011] [error] [client 119.63.196.121] File does not exist: /home/site/public_html/site/showthread.php
    [Wed Aug 31 19:59:37 2011] [error] [client 119.63.196.121] File does not exist: /home/site/public_html/site/404.shtml[/code#
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    What is the exact url you are using in a browser? At that url, does the file actually exist?

    Code:
    ls -lah /home/site/public_html/folder/folder
    Please note that Linux is case sensitive. Uppercase and lowercase characters in file names matter. If you are using uppercase in a file or foldername but using lowercase in the url in a browser, the file or folder won't be found.
     
  5. ES - George

    ES - George Well-Known Member
    PartnerNOC

    Joined:
    Jun 12, 2011
    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    PM'ed you the link.
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Can you post the contents of the folder so we can see the permissions?

    Code:
    ls -lah /home/site/public_html/Flash
    Thanks!
     
  7. ES - George

    ES - George Well-Known Member
    PartnerNOC

    Joined:
    Jun 12, 2011
    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Code:
    root@server [/]# ls -lah /home/site/public_html/Flash
    total 19M
    drwxrwxrwx 4 site si 4.0K Aug 31 17:20 ./
    drwxr-x--- 4 site nobody   4.0K Aug 31 19:45 ../
    drwxrwxrwx 7 site site 4.0K Aug 31 17:20 Formgrab\ Access\ Panel/
    -rwxrwxrwx 1 site site 380K Aug 31 17:14 Formgrab\ Access\ Panel.zip*
    drwxrwxrwx 9 site site 4.0K Mar 16  2010 Main\ Access\ Panel/
    -rwxrwxrwx 1 site site  18M Aug 31 17:18 Main.zip*
    root@server [/]#
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Are you using suPHP?

    If so, you will need to ensure the permissions on the directories meet the requirements for suPHP. A good post on this can be found at:

    suPHP Permissions/Ownership

    Thank you.
     
  9. ES - George

    ES - George Well-Known Member
    PartnerNOC

    Joined:
    Jun 12, 2011
    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    I'm not sure about that one, Michael. How can I find out? I've got full root access.
     
  10. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,463
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    WHM > Service Configuration > Configure PHP and SuExec, what does it say under the "Current Configuration" section?
     
  11. ES - George

    ES - George Well-Known Member
    PartnerNOC

    Joined:
    Jun 12, 2011
    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    I've attached a screenshot so you can see more clearly.

    Untitled.png
     
    #11 ES - George, Sep 1, 2011
    Last edited: Sep 1, 2011
  12. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,463
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Your server uses SuPHP. All directories must be 755 and files 644 at most. The post cPanelMichael has linked to above should be helpful to handle updating all user files and directories. Just be sure to read all Info closely in that thread and links posted to educate yourself on what needs done first.
     
  13. ES - George

    ES - George Well-Known Member
    PartnerNOC

    Joined:
    Jun 12, 2011
    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Can cPanel do this for me if I open a ticket? I don't want to mess this up (I have over 50 clients hosted on my VPS).
     
  14. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    These are the main commands you would need to run to change file and folder permissions:

    Code:
    find /home/*/public_html -type d -exec chmod 755 {} \;
    find /home/*/public_html -type f -exec chmod 644 {} \;
    System administration of this nature is the responsibility of the server owner or provider. We cannot perform these tasks each time widespread system changes need to be made. While we are happy to be around for questions you might have once you have run the commands or for any errors you have, we cannot change file permissions for you on this scale. This should be handled on your end.

    If you prefer to hire someone to handle these tasks, you might look into the following resource:

    Dev & Sys Admin Services « Application Catalog
     
  15. ES - George

    ES - George Well-Known Member
    PartnerNOC

    Joined:
    Jun 12, 2011
    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Ok, thanks.

    Does * stand for every cpanel account (current and new accounts) or do I replace * with individual usernames?
     
  16. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The commands would be run exactly as provided. It is a wildcard for every cPanel username acount. It will search for every user with a public_html folder and set file and folder permissions inside that folder to the indicated permissions.
     
  17. ES - George

    ES - George Well-Known Member
    PartnerNOC

    Joined:
    Jun 12, 2011
    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Will it apply to new accounts as well?
     
  18. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    It will only apply to existing accounts on the machine. Any new accounts added after you run the command should properly set their file and folder permissions when they add files or folders. The right file and folder permissions should be used automatically when a file is created or uploaded unless a user sets it to the wrong file permissions intentionally.
     
  19. ES - George

    ES - George Well-Known Member
    PartnerNOC

    Joined:
    Jun 12, 2011
    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    It's working now, thanks cPanel technical support, much appreciated. :)

    It's reasons like this why I prefer cPanel to other control panels, the good support.
     
Loading...

Share This Page