Page 1 of 1

Xampp 1.7.2 Server Root error

PostPosted: 23. October 2009 15:22
by TJH09
I am currently battling trying to get Apache on Xampp 1.7.2 to run succesfully. I have narrowed the problem down to the directory logged in the apache httpd.exe file; which I found from the error log:

Code: Select all
httpd.exe: Syntax error on line 35 of E:/apache/conf/httpd.conf: ServerRoot must be a valid directory


Line 35 in httpd.exe reads:

Code: Select all
ServerRoot "/xampp/apache"


I currently have xampp installed onto my Freecom USB drive in the top directory (currently E:\), so to get Apache to run properly is it simply a matter of changing the above line in httpd.exe to the following, since the apache folder is in the top directory of my USB:

Code: Select all
ServerRoot "/apache"


Thanks!

Re: Xampp 1.7.2 Server Root error

PostPosted: 23. October 2009 23:06
by Izzy
Open your XAMPP Control Panel and look to see if there are any ticks in the Svc boxes.

If there are then it means you have installed those components with a tick as an NT Service when you installed XAMPP.

This defeats the object of installing on a portable USB device.

Try removing the ticks and reboot your PC then again try to start the servers.

The same would apply if you added the E:\ to your paths in the conf file - it would make your XAMPP on the USB unportable because chances are that the E:\ drive would not be mapped in the next PC you placed the USB device.

Re: Xampp 1.7.2 Server Root error

PostPosted: 25. October 2009 11:43
by TJH09
Thanks Izzy,

I have managed to get Apache working, I didn't have any of the Services installed. However, now mySQL is playing up and won't start - its behaving in the same way as Apache did (press Start...nothing happens even though mySQL is said to be running).

Does anyone have any hints on tackling mySQL running problems?

Or would the best solution be to simply buy a brand new USB drive and only install Xampp on there, since it has had so much trouble with my current drive?

Re: Xampp 1.7.2 Server Root error

PostPosted: 26. October 2009 00:30
by stuffdone
TJH09 wrote:Thanks Izzy,

I have managed to get Apache working, I didn't have any of the Services installed. However, now mySQL is playing up and won't start - its behaving in the same way as Apache did (press Start...nothing happens even though mySQL is said to be running).

Does anyone have any hints on tackling mySQL running problems?

Or would the best solution be to simply buy a brand new USB drive and only install Xampp on there, since it has had so much trouble with my current drive?


Same here. Installed on a machine running Windows 2000 SP4 and the MySQL won't start.

Re: Xampp 1.7.2 Server Root error

PostPosted: 26. October 2009 01:14
by stuffdone
It is started now. I un-checked the box in the control panel under "svc" and clicked "start" and it works now.