Reputation: 25
So I have a website where I have many files all of them are written in php and works perfectly fine, except the new files, whenever I create a new php file and run it from the browser it show 500 Internal server error. I have tried removing all the content from php file and echoed a single line but I got the same error. I created a local php.ini file for that particular domain and tried to turn the errors on but nothing really changed. Don't know what to do to find what is wrong.
Upvotes: 1
Views: 12449
Reputation: 45490
This is due to permission, php files need to be executable:
You can use command chmod
to set the proper permission.
Upvotes: 6