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.

Dedicated server 500 error

Discussion in 'General Discussion' started by same2cool, Mar 7, 2014.

  1. same2cool

    same2cool Registered

    Joined:
    Mar 7, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I purchased dedicated server. I upload script and getting 500 error. I tried different ways but same result. PHP Files are not working.
    how can I resolve it?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Please check the Apache error log (/usr/local/apache/logs/error_log) or the Error Log option in cPanel when you notice this error message in your browser. What is the output?

    Thank you.
     
  3. same2cool

    same2cool Registered

    Joined:
    Mar 7, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I am getting this error

    /home/super945/public_html/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,829
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It's likely the server your account is hosted on uses suPHP as it's PHP handler. This is fine, but you must ensure that you remove "php_value" or "php_flag" entries from your .htaccess files and instead simply use a php.ini file to make custom PHP configuration changes for the account.

    Thank you.
     
  5. same2cool

    same2cool Registered

    Joined:
    Mar 7, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    where can I find php.ini file and how can I configure it for these type of errors.
     
  6. same2cool

    same2cool Registered

    Joined:
    Mar 7, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    My problem has resolved thanks for your support.
     
  7. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello

    Glad to hear it. Thanks for updating this thread.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,829
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    For those that might have a similar question, you can manually create the php.ini file within the account's home directory, or copy it over from /usr/local/lib/php.ini.

    Thank you.
     
Loading...

Share This Page