Unable to start apache

General discussion forum for the Zend Server

Unable to start apache

Postby derokorian on Tue Nov 27, 2012 2:05 am

Hi all,

I'm having a problem. I installed Zend Server CE on my laptop and all was working well. Then I edited my http.conf to uncomment the line to include extra/httpd-vhosts.conf and then added virtual host directives in that file to allow me to use sub-domains of localhost for testing, instead of long URLs. I restarted my PC and now I'm getting the following error when Apache2.2-Zend tries to start:
Code: Select all
The Apache service named reported the following error: >>>
   httpd.exe: Syntax error on line 35 of C:/Program Files (x86)/Zend/Apache2/conf/httpd.conf: ServerRoot must be a valid directory


The line in question does indeed point to a valid directory (in fact, I didn't even modify this line):
Code: Select all
ServerRoot "C:/Program Files (x86)/Zend/Apache2"


I tried restoring the file from the original folder, this didn't change the error. Any suggestions as to what to try? I've failed to find any solutions through searching.
derokorian
 
Posts: 4
Joined: Tue Nov 27, 2012 1:53 am

Re: Unable to start apache

Postby zvika on Tue Nov 27, 2012 10:07 am

Hi

Did you mean this valid directory? (Mind the slash direction...)
ServerRoot "C:\Program Files (x86)\Zend\Apache2"

Tip: Restart Windows takes time, only restart the service from admin console
> net stop Apache2.2-Zend
> net start Apache2.2-Zend
Or - use the Apache Monitor (should be in Start Menu under Zend Server, or link to the actual exe in C:\Program Files (x86)\Zend\Apache2\bin)
Zvika Dror
Zend Support Team
User avatar
zvika
Zend Global Support
 
Posts: 782
Joined: Sun Dec 14, 2008 9:48 am

Re: Unable to start apache

Postby derokorian on Tue Nov 27, 2012 5:42 pm

I tried it with those slashes and no improvement. However I'd like to point out the comment immediately above that line specifically say to use / for all paths. Still neither option works.

Tried starting from services console, using net start and using the monitor, none of them can start it, as it gives the same error in the event viewer for them all "[...]Invalid Path[...]"
derokorian
 
Posts: 4
Joined: Tue Nov 27, 2012 1:53 am

Re: Unable to start apache

Postby zvika on Wed Nov 28, 2012 6:58 am

Hi

You wrote that you restored the original file - did you mean that you commented out the line to load extra/httpd-vhosts.conf?
Please also check the Apache error log - and then make absolutely sure it is not open in any editor / viewer before starting Apache.

If the above doesn't help,
Can you recall exactly what you did to break functionality?
Its either that or removing and reinstalling Zend Server to deploy the Apache stack again...
Zvika Dror
Zend Support Team
User avatar
zvika
Zend Global Support
 
Posts: 782
Joined: Sun Dec 14, 2008 9:48 am

Re: Unable to start apache

Postby derokorian on Sat Dec 01, 2012 3:04 am

Hi Zvika,

Thanks for the reply, sorry for the slow response got slammed at work. Anyway I uninstalled Zend Server and reinstalled and now everything seems to be working just fine, virtual hosts and all.
derokorian
 
Posts: 4
Joined: Tue Nov 27, 2012 1:53 am


Return to Zend Server

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests