[HELP] Error on line 42

Problems with the Windows version of XAMPP, questions, comments, and anything related.

[HELP] Error on line 42

Postby Wipper » 06. May 2008 01:49

Hi, I post here because i get a strange problem when i run xampp_start.exe it say:

"Please wait [Bite warten] apache.exe: Syntax error on line 42 of \Xampplite\apache\conf\httpd.conf: ServerRoot must be a valid directory"

and it close.

I try to connect to http://localhost but its say "PAGE NOT FOUND"

Please help

Thanks.
Wipper
 
Posts: 7
Joined: 06. May 2008 01:12

Postby Wipper » 06. May 2008 08:59

Sorry for double post but Anybody know how to fix this or just an opinion or i will stop cheking for a reply evryday :? :(
Wipper
 
Posts: 7
Joined: 06. May 2008 01:12

Postby Nobbie » 06. May 2008 11:15

Is it really to difficult to understand the error message?
Is it really to difficult to look into the file httpd.conf?
Is it really to difficult to move to line 42 of the file httpd.conf?
Is it really to difficult to check the value of ServerRoot?

It's done within 20 seconds (or 30).
Nobbie
 
Posts: 8760
Joined: 09. March 2008 13:04

Postby Wipper » 06. May 2008 13:45

Nobbie wrote:Is it really to difficult to understand the error message?
Is it really to difficult to look into the file httpd.conf?
Is it really to difficult to move to line 42 of the file httpd.conf?
Is it really to difficult to check the value of ServerRoot?

It's done within 20 seconds (or 30).


I will try this but im Really new to Xampp can you explain me furter with detail?

Thanks for your help dude.

Edit : This is what I found on the httpd.conf file at the ServerRoot line (42) :

# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path. If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk. If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot "C:/Documents and Settings/myname/browser/xampplite/apache"

Maybe it will help to find out the problem...
Wipper
 
Posts: 7
Joined: 06. May 2008 01:12

Postby Nobbie » 06. May 2008 14:31

>I will try this but im Really new to Xampp can you explain me furter with detail?

Forget about Xampp! Simpy understand the message: the pathname is invalid!

Do you have a folder "C:/Documents and Settings/myname/browser/xampplite/apache" on your PC? You dont have - thats what the message says.

So simply create it OR apply a different path.

All in all it looks NOT like a standard Xampp installation. Obviously, you are going to mix Xampp Lite and Xampp or similar. Only you(!) know, what you installed on your PC (as well today as previously).
Nobbie
 
Posts: 8760
Joined: 09. March 2008 13:04

Postby Wipper » 06. May 2008 22:18

Nobbie wrote:>I will try this but im Really new to Xampp can you explain me furter with detail?

Forget about Xampp! Simpy understand the message: the pathname is invalid!

Do you have a folder "C:/Documents and Settings/myname/browser/xampplite/apache" on your PC? You dont have - thats what the message says.

So simply create it OR apply a different path.

All in all it looks NOT like a standard Xampp installation. Obviously, you are going to mix Xampp Lite and Xampp or similar. Only you(!) know, what you installed on your PC (as well today as previously).


Well yes i have a folder named like that but there's nothing interested in it that sound like ServerRoot... that's why I'm confused =/
Wipper
 
Posts: 7
Joined: 06. May 2008 01:12

Postby ifokkema » 08. May 2008 13:35

There will be no file or directory named ServerRoot. This directory IS your Server Root. And Apache cannot find it :)
Are you absolutely sure (please check letter for letter) that the directory exists on your computer.

Ivo
ifokkema
 
Posts: 56
Joined: 08. May 2008 13:05
Location: Leiden, Netherlands

Postby Wipper » 08. May 2008 14:32

ifokkema wrote:There will be no file or directory named ServerRoot. This directory IS your Server Root. And Apache cannot find it :)
Are you absolutely sure (please check letter for letter) that the directory exists on your computer.

Ivo


Well evrything is easyer with a picture... =/

Image
Wipper
 
Posts: 7
Joined: 06. May 2008 01:12

Postby ifokkema » 08. May 2008 15:18

Maybe Apache doesn't like spaces in the directory name? What if you just move the xampplite directory to c:\?
ifokkema
 
Posts: 56
Joined: 08. May 2008 13:05
Location: Leiden, Netherlands

Postby Wipper » 08. May 2008 17:06

ifokkema wrote:Maybe Apache doesn't like spaces in the directory name? What if you just move the xampplite directory to c:\?


I did what you say and it give me that...

Image

thank you for helping me Ivo ;)

hope it will work someday...
Wipper
 
Posts: 7
Joined: 06. May 2008 01:12

Postby LooseCannon » 08. May 2008 17:34

Hi Wipper.

Did you move the xampplite directory to c:\ AND change that line 42 to: ServerRoot "C:/xampplite/apache"?

EDIT: Ignore me! I've just RTFImage.
User avatar
LooseCannon
 
Posts: 162
Joined: 18. September 2007 12:07
Location: Hampshire, UK

Postby Wipper » 08. May 2008 18:19

LooseCannon wrote:Hi Wipper.

Did you move the xampplite directory to c:\ AND change that line 42 to: ServerRoot "C:/xampplite/apache"?

EDIT: Ignore me! I've just RTFImage.


Ahahh!! I love you dude :D

Xampp now running, i forgot to change the path :)

Thanks evrybody :D
Wipper
 
Posts: 7
Joined: 06. May 2008 01:12

Postby ifokkema » 09. May 2008 08:07

Cool :D
ifokkema
 
Posts: 56
Joined: 08. May 2008 13:05
Location: Leiden, Netherlands

Postby LooseCannon » 12. May 2008 12:56

Hehe, I very pleased that you didn't do as I suggested and ignore me! :D
User avatar
LooseCannon
 
Posts: 162
Joined: 18. September 2007 12:07
Location: Hampshire, UK

Postby ifokkema » 13. May 2008 08:15

LooseCannon wrote:Hehe, I very pleased that you didn't do as I suggested and ignore me! :D

:lol:
ifokkema
 
Posts: 56
Joined: 08. May 2008 13:05
Location: Leiden, Netherlands


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 54 guests