Internal Server Error with Slim Framework

Avatar
  • Answered
When I uploaded PHP Slim Framework, I get Internal Server Error. What do I do?
Avatar
johnpaulb-imhs1

Hello,

Thank you for your question regarding Internal Server Error. I recommend testing your .htaccess rules. This is easily tested by renaming your current htaccess file. Often, during troubleshooting I'll simply rename the .htaccess to .htaccess.old and now I'll reload the website. If the site loads I then know the issue resides in my configuration of the .htaccess file. If it does not fix the issue I was having, I'll rename the htaccess by removing the .old I added to the end. That way, it won't affect my website after I resolve the issue.

Ensure you have the proper file permissions. Most commonly having a file as "world" writeable. This is a very common issue with PHP files. In general on our servers, PHP file permissions should not be higher than 775. Keep in mind too that the permissions of the parent folders/directories need to be set correctly too.

Thank you,

John-Paul