500 Internal Server Error
Posted by: jebediah (---.customer.t3.se)
Date: March 02, 2012 12:55AM

Hello World smiling smiley

I dont know what i've missed to change.
Earlier today i updated Wamp from a fully functional, but older Wamp server.
Now when i try to open my site (that worked before) i recieve this message.

500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

And here's what printed in the apache_error log.
[Fri Mar 02 00:50:31 2012] [alert] [client 127.0.0.1] C:/Temp/wamp/www/ssc/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

Any ideas?

Options: ReplyQuote
Re: 500 Internal Server Error
Posted by: RiggsFolly (---.as13285.net)
Date: March 02, 2012 10:50PM

Check that you have the the apache rewrite module loaded.

go to wamp_manager -> apache -> modules and look for rewrite_module in the list.

If it does not have a TICK beside it click it. Apache will be bounced ( stop, start ). Try again.

The rewite engine will not work without the required module loaded.

Options: ReplyQuote
Re: 500 Internal Server Error
Posted by: jebediah (---.customer.t3.se)
Date: March 02, 2012 10:58PM

If i enable rewrite nothing happens when i open the site.
For an example, if i click at my site from default localhost index.php the link looks like this
http: // localhost / ssc /
If i click on it again the address bar change to http: // localhost / ssc / ssc
and third time http: // localhost / ssc / ssc / ssc etc etc etc

EDIT: The forum did not like my links so i had to make som spaces smiling smiley



Edited 1 time(s). Last edit at 03/02/2012 11:04PM by jebediah.

Options: ReplyQuote
Re: 500 Internal Server Error
Posted by: RiggsFolly (---.as13285.net)
Date: March 02, 2012 11:03PM

But does the error message in apache_error.log stop happening?

Options: ReplyQuote
Re: 500 Internal Server Error
Posted by: jebediah (---.customer.t3.se)
Date: March 02, 2012 11:06PM

Nope, no alerts any longer. But
[Fri Mar 02 23:05:14 2012] [notice] Apache/2.2.21 (Win32) PHP/5.3.10 configured -- resuming normal operations
[Fri Mar 02 23:05:14 2012] [notice] Server built: Sep 10 2011 11:34:11
[Fri Mar 02 23:05:14 2012] [notice] Parent: Created child process 3920
[Fri Mar 02 23:05:14 2012] [notice] Child 3920: Child process is running
[Fri Mar 02 23:05:14 2012] [notice] Child 3920: Acquired the start mutex.
[Fri Mar 02 23:05:14 2012] [notice] Child 3920: Starting 64 worker threads.
[Fri Mar 02 23:05:14 2012] [notice] Child 3920: Starting thread to listen on port 80.
[Fri Mar 02 23:05:14 2012] [notice] Child 3920: Starting thread to listen on port 80.

Options: ReplyQuote
Re: 500 Internal Server Error
Posted by: jebediah (---.customer.t3.se)
Date: March 02, 2012 11:36PM

Maybe it's time to roll back to an older Wamp version :/

Options: ReplyQuote
Re: 500 Internal Server Error
Posted by: RiggsFolly (---.as13285.net)
Date: March 02, 2012 11:51PM

Ok, it looks like the issue may be in your .htaccess file.

Why do you need a .htaccess are you using a framework or a CMS?

Options: ReplyQuote
Re: 500 Internal Server Error
Posted by: jebediah (---.customer.t3.se)
Date: March 04, 2012 02:41PM

It cant be the .htacccess since it's the same site that worked with the old Wamp

Options: ReplyQuote
Re: 500 Internal Server Error
Posted by: RiggsFolly (---.as13285.net)
Date: March 04, 2012 03:04PM

It must be related to something you configured in the old installation but have not yet done to the new install.

Compare your old httpd.conf with the new one.

Compare your old php.ini this the new one.


Post your .htaccess that may give a clue.

Options: ReplyQuote
Re: 500 Internal Server Error
Posted by: jebediah (---.customer.t3.se)
Date: March 04, 2012 03:40PM

Cant compare since the old wamp installation is long gone. Stupid as i was i never made a backup.

Here's the .htaccess

RewriteEngine onRewriteCond $1 !^(index\.php|includes|images|robots\.txt|forum|expo|munin)
RewriteRule ^(.*)$ /index.php/$1 [L]

Options: ReplyQuote
Re: 500 Internal Server Error
Posted by: RiggsFolly (---.as13285.net)
Date: March 04, 2012 10:51PM

When I put this .htaccess into a site that works I got the same 500 Error suggesting the command were wrong.

But after I edited the file the error went away.
BUT it has exactly the same instructions in it now

This is going to sound silly, but try recreating the .htaccess file from scratch it may be that there is an odd corruption in it.

Because thats all I did to remove the problem.

Options: ReplyQuote
Re: 500 Internal Server Error
Posted by: jebediah (---.customer.t3.se)
Date: March 07, 2012 03:56PM

Here's the strange part. The site as it is now works in XAMPP, but it wont load properly. Header and footer is missing and all div areas are messed up.

Options: ReplyQuote
Re: 500 Internal Server Error
Posted by: pooley1988 (---.spitfireuk.net)
Date: July 12, 2013 05:16PM

Hey I tried this, it solved my problem straight away.

Cheers bro!

Options: ReplyQuote
Re: 500 Internal Server Error
Posted by: karsho (---.242.201.49-tataidc.co.in)
Date: March 09, 2014 05:05AM

If you want 4 different way solutions go and see: www.steptoinstall.com or [www.steptoinstall.com]

Options: ReplyQuote
Re: 500 Internal Server Error
Posted by: jspdjanggo (---.three.co.id)
Date: January 08, 2015 11:13AM

i did a tick on rewrite and works normal for me smiling smiley

Options: ReplyQuote


Sorry, only registered users may post in this forum.