Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    143
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,672
    Likes Received:
    1,788
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice