Recently I installed cPanel on my vps with centOS.Now my PHP files are returning a 500 Internal Server error. HTML files work fine however. Always when i try to enter php file it says 500 Internal server error...
How can i fix it ?
The most probable is that you have wrong permissions on folders or files.
A PHP file must usually have permissions set to 644 and its containing folder to 755.
If you want to be sure permissions re right, you can use a "fast and dirty solution" setting everything to 777 (and reversing the change immediately for secvurity reasons of course).
Also, the problem could hide in the .htaccess file, as reported here http://www.2mhost.com/kb/view/147
Or even in the php.ini as reported here: https://www.akeebabackup.com/documentation/troubleshooter/prbasicts.html
hope this helps