same2cool

Registered
Mar 7, 2014
4
0
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
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.
 

same2cool

Registered
Mar 7, 2014
4
0
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
where can I find php.ini file and how can I configure it for these type of errors.
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.