Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMithun B
1,978 PointsGetting "Internal Server Error" when trying to run the downloaded script at localhost/mike/index.php
My port is 80, username is root and password is root. It shows the error Internal Server Error everytime I try to run the script. Please help.
1 Answer
Sergey Podgornyy
20,660 PointsInternal Server Error messages indicate that something, in general, is wrong.
There are lots of reasons why your site might be serving a 500 Error to your users, but there are most common:
- A Permissions Error. In most cases, a 500 Internal Server Error is due to an incorrect permission on one or more files or folders. In most of those cases, an incorrect permission on a PHP and CGI script is to blame. These should usually be set at 0775 (-rwxr-xr-x).
- A PHP Timeout. If your script connects to external resources and those resources timeout, an HTTP 500 error can occur. Timeout rules, or better error handling in your script, should help if this is the cause of the 500 error.
- A Coding Error in .htaccess. While not as common, be sure to check that your site's .htaccess file is properly structured.
Sergey Podgornyy
20,660 PointsSergey Podgornyy
20,660 PointsCan you also provide your code here?