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.