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 trial

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,676 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??