WampServer not working anymore
Posted by: Gerry (---.37.8.67.cfl.res.rr.com)
Date: July 10, 2009 02:56AM

Hi guys,
I had my brother-in-law visiting for the holiday weekend and he "borrowed" my laptop for extensive use. Ever since then, my WampServer will just not work anymore. My tray icon is grey & white, and my apache error file reads:


[Thu Jul 09 20:40:46 2009] [warn] The Alias directive in C:/wamp/alias/phpmyadmin.conf at line 1 will probably never match because it overlaps an earlier Alias.
[Thu Jul 09 20:40:47 2009] [notice] Apache/2.2.8 (Win32) PHP/5.2.5 configured -- resuming normal operations
[Thu Jul 09 20:40:47 2009] [notice] Server built: Jan 18 2008 00:37:19
[Thu Jul 09 20:40:47 2009] [notice] Parent: Created child process 3188
[Thu Jul 09 20:40:47 2009] [warn] The Alias directive in C:/wamp/alias/phpmyadmin.conf at line 1 will probably never match because it overlaps an earlier Alias.
[Thu Jul 09 20:40:47 2009] [warn] The Alias directive in C:/wamp/alias/phpmyadmin.conf at line 1 will probably never match because it overlaps an earlier Alias.
[Thu Jul 09 20:40:47 2009] [notice] Child 3188: Child process is running
[Thu Jul 09 20:40:47 2009] [notice] Child 3188: Acquired the start mutex.
[Thu Jul 09 20:40:47 2009] [notice] Child 3188: Starting 64 worker threads.
[Thu Jul 09 20:40:47 2009] [notice] Child 3188: Starting thread to listen on port 80.
[Thu Jul 09 20:42:07 2009] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu Jul 09 20:42:07 2009] [notice] Child 3188: Exit event signaled. Child process is ending.
[Thu Jul 09 20:42:08 2009] [notice] Child 3188: Released the start mutex
[Thu Jul 09 20:42:09 2009] [notice] Child 3188: All worker threads have exited.
[Thu Jul 09 20:42:09 2009] [notice] Child 3188: Child process is exiting
[Thu Jul 09 20:42:09 2009] [notice] Parent: Child process exited successfully.
[Thu Jul 09 20:42:12 2009] [warn] The Alias directive in C:/wamp/alias/phpmyadmin.conf at line 1 will probably never match because it overlaps an earlier Alias.
[Thu Jul 09 20:42:12 2009] [notice] Apache/2.2.8 (Win32) PHP/5.2.5 configured -- resuming normal operations
[Thu Jul 09 20:42:12 2009] [notice] Server built: Jan 18 2008 00:37:19
[Thu Jul 09 20:42:12 2009] [notice] Parent: Created child process 328
[Thu Jul 09 20:42:12 2009] [warn] The Alias directive in C:/wamp/alias/phpmyadmin.conf at line 1 will probably never match because it overlaps an earlier Alias.
[Thu Jul 09 20:42:12 2009] [warn] The Alias directive in C:/wamp/alias/phpmyadmin.conf at line 1 will probably never match because it overlaps an earlier Alias.
[Thu Jul 09 20:42:12 2009] [notice] Child 328: Child process is running
[Thu Jul 09 20:42:12 2009] [notice] Child 328: Acquired the start mutex.
[Thu Jul 09 20:42:12 2009] [notice] Child 328: Starting 64 worker threads.
[Thu Jul 09 20:42:12 2009] [notice] Child 328: Starting thread to listen on port 80.
[Thu Jul 09 20:46:28 2009] [alert] [client 127.0.0.1] C:/wamp/www/1xxxxx.net/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration


Does anyone have any ideas on how I may resolve this? My hands are tied behind my back without the local server. Thanks in advance for the help!

Gerry

Options: ReplyQuote
Re: WampServer not working anymore
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: July 10, 2009 06:33PM

As is the lates error
[Thu Jul 09 20:46:28 2009] [alert] [client 127.0.0.1] C:/wamp/www/1xxxxx.net/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

You need to enable the Apache Module named mod_rewrite. To do so left click WAMP tray icon and select Apache > Apache Modules > rewrite module

Options: ReplyQuote
Re: WampServer not working anymore
Posted by: yfastud (Moderator)
Date: July 10, 2009 07:23PM

and next time, remember to create a guest account for your brother to use winking smiley

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: WampServer not working anymore
Posted by: Gerry (---.37.8.67.cfl.res.rr.com)
Date: July 10, 2009 09:16PM

Thanks, guys! My simple 'hello world' php script works again! I can also pull up html pages without problems. Howerver, my actual php sites will not resolve - I get a dialog box that is trying to open the site as a file. I may be wrong, but could it have something to do with my .htaccess, as seen here:

Options +FollowSymLinks
RewriteEngine On

RewriteRule page_(.*)$ landing_pages/index.php?username=$1 [L]
RewriteRule landing_pages/(.*)$ landing_pages/$1 [L]


RewriteBase /~mycool12

RewriteCond %{REQUEST_FILENAME} .*jpg$|.*gif$|.*png|.*css$ [NC]
RewriteRule (.*) $1 [L]

RewriteCond %{REQUEST_URI} (/admin)
RewriteRule ^([^/\.]+)(/(.*))?$ /admin/$3 [L,QSA]

RewriteCond %{REQUEST_URI} (/member)
RewriteRule ^([^/\.]+)(/(.*))?$ /admin/$3 [L,QSA]

RewriteCond %{REQUEST_URI} ^/index.php
RewriteRule . index.php [L]

RewriteCond %{REQUEST_URI} !^/index.php
RewriteRule ^(.*)\.php$ $1.php [L]


RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d [OR]
RewriteRule . index.php [L]


# Use PHP5 as default
AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml


Any ideas? Thanks again!

Gerry

Options: ReplyQuote
Re: WampServer not working anymore
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: July 10, 2009 09:32PM

Remove the AddHandler from the .htaccess file. This is not needed

Options: ReplyQuote
Re: WampServer not working anymore
Posted by: Gerry (---.37.8.67.cfl.res.rr.com)
Date: July 11, 2009 06:27AM

I removed the AddHandler, but now I get a 500 Internal Server Error. This is my error log:

[Sat Jul 11 00:23:17 2009] [alert] [client 127.0.0.1] C:/wamp/www/1xxxx.net/.htaccess: Invalid command 'Use', perhaps misspelled or defined by a module not included in the server configuration, referer: [localhost]
[Sat Jul 11 00:23:17 2009] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Sat Jul 11 00:24:32 2009] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Sat Jul 11 00:25:17 2009] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico

Thanks!

Options: ReplyQuote
Re: WampServer not working anymore
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: July 11, 2009 01:13PM

Post the code in your .htaccess file here. Seems you have a syntax error.

Options: ReplyQuote
Re: WampServer not working anymore
Posted by: Gerry (---.37.8.67.cfl.res.rr.com)
Date: July 11, 2009 09:07PM

Hi,
please see the .htaccess file above, that I posted yesterday. Thanks!

Options: ReplyQuote
Re: WampServer not working anymore
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: July 11, 2009 09:51PM

Is this the same .htaccess file located in C:/wamp/www/1xxxx.net/ ?

There is command in the .htaccess file which Apache is unable to understand. This is what is causing the error you are getting.

Options: ReplyQuote
Re: WampServer not working anymore
Posted by: Gerry (---.37.8.67.cfl.res.rr.com)
Date: July 12, 2009 03:09AM

Yes, it is the same, except that C:/wamp/www/1xxxx.net/ actually refers to the website name, so C:/wamp/www/sitename.net/. I should mention that this entire site was downloaded to my local machine from the net, after my programmer did some extensive work on the actual site. Would this have anything to do with it?

Options: ReplyQuote
Re: WampServer not working anymore
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: July 12, 2009 12:26PM

No shouldn't do. WHat happens if you remove the following line from the .htaccess

# Use PHP5 as default

Options: ReplyQuote
Re: WampServer not working anymore
Posted by: Gerry (---.37.8.67.cfl.res.rr.com)
Date: July 12, 2009 06:20PM

When I remove # Use PHP5 as default, this is what I get:


"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 my error log reads:

[Sun Jul 12 12:16:30 2009] [alert] [client 127.0.0.1] C:/wamp/www/sitename.net/.htaccess: Invalid command 'Use', perhaps misspelled or defined by a module not included in the server configuration, referer: [localhost]
[Sun Jul 12 12:16:30 2009] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico


Thanks again for all of your help!

Options: ReplyQuote
Re: WampServer not working anymore
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: July 12, 2009 07:32PM

Post your .htaccess in C:/wamp/www/sitename.net here. There is a problem with that file.

Options: ReplyQuote


Sorry, only registered users may post in this forum.