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.

fix 500 Internal server error in php files

Discussion in 'General Discussion' started by hnasro, Sep 10, 2014.

  1. hnasro

    hnasro Registered

    Joined:
    Sep 10, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Tunis, Tunisia
    cPanel Access Level:
    Root Administrator
    Hello,

    My PHP files all display a 500 Internal server error when i'm attempting to access PHP files through the temp-URL http://serverName/~username/index.php
    error message:
    The request was not completed. The server met an unexpected condition.
    Please forward this error screen to 192.163.xxx.xxx's WebMaster.

    I try http://serverName/~username/test.html with a basic HTML and it works correctly.

    How can I fix this? :(

    Thank you
     
  2. triantech

    triantech Well-Known Member

    Joined:
    Jul 1, 2014
    Messages:
    145
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Kochi, India, India
    cPanel Access Level:
    Root Administrator
    Hey,

    Check the httpd error_logs to see if there is anything when you try to access your PHP files
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Please review /usr/local/apache/logs/error_log to see the exact reason for the 500 internal server error message. Also, consider modifying the hosts file on your machine so you can access the domain name directly instead of using the Apache Mod_UserDir tweak.

    Thank you.
     
Loading...

Share This Page