apache will not start
Posted by: CraigR (---.range31-54.btcentralplus.com)
Date: September 12, 2013 09:03PM

I just installed wamp 2.4 on my windows 7 pro machine and wanted to install virtual hosts.

After installation, all services started ok

ie i get 'it works !' on localhost, i can get phpmyadmin on localhost/phpmyadmin

after editing the httpd.conf and the httpd-vhosts.conf files i restarted all services and vhosts seemed to work, (all services started), but i got a curl error.

i edited the php.ini and restarted all services but apache will not start.

i restored the php.ini back to its original settings but apache will not start.

i restored the httpd.conf and the httpd-vhosts.conf files back to their original settings but apache will not start.

everything should be identical to install settings, can anyone help me debug ?

I checked the error log but it is empty, (i cleared it first, whilst the service was stopped )

i tried starting the service from the windows console, and i get a general error message, but nothing is stored in the log file



Edited 1 time(s). Last edit at 09/12/2013 09:29PM by CraigR.

Options: ReplyQuote
Re: apache will not start
Posted by: RiggsFolly (---.as13285.net)
Date: September 12, 2013 09:32PM


After installation, all services started ok

ie i get 'it works !'
[/]

If you get this message then you have another Apache installed on your system and that is what is running NOT the WampServer installed version.


ONLY ONE APACHE PER CUSTOMER, please. Unless you really know what you are doing.


So uninstall the standalone Apache ( and MYSQL if you tried that as well as a standalone )

Options: ReplyQuote
Re: apache will not start
Posted by: CraigR (---.range31-54.btcentralplus.com)
Date: September 12, 2013 10:24PM

you are correct in that i started installing apache etc as separate entities until I came across wamp,
(in the builds I have done before, i always did it this way, its a pain, so I wanted an easier way)

i uninstalled all previous installations before installing wamp

i found the path of the 'it works' file, it is

file:///C:/wamp/bin/apache/Apache2.4.4/htdocs/index.html

so maybe it wasn't working properly before, but all services started and i could run phpmyadmin

Options: ReplyQuote
Re: apache will not start
Posted by: RiggsFolly (---.as13285.net)
Date: September 12, 2013 11:43PM

Sounds like it is picking up an odd httpd.conf check for this file existing somewhere outside the \wamp folder structure and remove it.

Run phpinfo() from the WAMP home page to see where config files are being loaded from.

Options: ReplyQuote
Re: apache will not start
Posted by: CraigR (---.range31-54.btcentralplus.com)
Date: September 13, 2013 11:00AM

i couldn't run phpinfo as the apache service will not start.

I checked for all instances of httpd.conf and there is only one - good start
I checked httpd.conf for the document root and the directory paths, and they are set to "c:/wamp/www"

i then ran httpd -t from a command line and got an error saying there was a syntax error on line 539

IncludeOptional "c:/wamp/vhosts/*" , (i haven't changed this), so I commented it out.
I also commented out line 499 #Include conf/extra/httpd-vhosts.conf, so I am dealing with localhost only for now.

I then restarted all services and THEY ALL START !

index.php and testmysql.php are both in the c:/wamp/www folder, and both loaded if i type localhost/index.php or localhost/testmysql.php

- though if i omit the file name and just type localhost/ i still get the it works html page, - so I cleared the browser cache and now the correct page loads if I just type the root folder ! - success - it was the cached page i was seeing

finally, i uncommented line 499 so that Include conf/extra/httpd-vhosts.conf, is read, so I am dealing with virtual directories again. - (my http-vhosts.conf is already configured)

restarted all services - success.

So, in a nutshell, the problems seems to stem from line 539. This is still commented out in my httpd.conf file.

Don't know if anyone can shed any light on this, but my virtual host seems to work ok.



Edited 1 time(s). Last edit at 09/13/2013 11:02AM by CraigR.

Options: ReplyQuote
Re: apache will not start
Posted by: stevenmartin99 (Moderator)
Date: September 13, 2013 11:12AM

Maybe u deleted the folder vhosts in the wamp folder

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: apache will not start
Posted by: CraigR (---.range31-54.btcentralplus.com)
Date: September 13, 2013 11:28AM

Nope, it is there, with the site folder within it.

the path is c:/wamp/vhosts


virtual hosts is working fine, just that the line I mentioned is commented out

Options: ReplyQuote
Re: apache will not start
Posted by: stevenmartin99 (Moderator)
Date: September 13, 2013 11:38AM

U can't use both-

If u enable the

Include vhosts

Then the code in that file is included so yes you will need to comment that other line out

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: apache will not start
Posted by: CraigR (---.range31-54.btcentralplus.com)
Date: September 13, 2013 11:39AM

Okay, that wasn't clear to me.

Thanks for letting me know.

Options: ReplyQuote


Sorry, only registered users may post in this forum.