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?
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?
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.
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.