Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP Building Websites with PHP Slim Basics & Twig Templates Including & Running Slim

Ezekiel dela Peña
Ezekiel dela Peña
6,231 Points

500 Internal Server error! HELP!

I'm trying to work in my local computer using WAMP Server.

OS: Windows 10

I tried doing the same thing in the video all is doing well until I added the ".htaccess": after I added that I tried to put "localhost:80/name/zeke" and web browser showed this message.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
Chris Shaw
Chris Shaw
26,650 Points

Hi Ezekiel dela Peña,

What is the contents of your .htaccess file as that is what's causing the error.

Ezekiel dela Peña
Ezekiel dela Peña
6,231 Points

I have already fixed the problem Chris.

Thanks for the reply!

3 Answers

Ezekiel dela Peña
Ezekiel dela Peña
6,231 Points

no the port was correct. It was set by default by the WAMP itself.

I've fixed the problem by configuring the C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf and removing the # to uncomment the LoadModule rewrite_module modules/mod_rewrite.so

Edited from comment to answer and marked best answer.

I don't think your port is correct. Try removing :80 and trying again. I have not used WAMP, but I have not had to use the port in my programming. If no port does not work, make sure you have the right port number.

Rifqi Fahmi
Rifqi Fahmi
23,164 Points

I have uncomment the file. but why I still get 500 internal server error??