Page 1 of 1

server not working

PostPosted: 06. September 2009 19:02
by shawninder
Hello,

I have just installed xampp Windows Vista Home Premium V.6 SP 1
When I go to localhost, I get the expected index page. But if I add my own files in htdocs (for example: htdocs/phpTest.php) and try to see them (going to localhost/phpTest.php, for example), I get "Object not found!" with "URL not found on this server"

What am I doing wrong?

Thanks in advance

b.t.w
Is there an english version of the forum?
Gibt es eine Englisch Version des Forums? Sorry für die schlechte Übersetzung

Re: php not working

PostPosted: 06. September 2009 19:51
by Wiedmann
How is your problem related to PHP? (or that's working with a .html file?)

Re: php not working

PostPosted: 06. September 2009 19:57
by shawninder
Oh, I'm sorry, it doesn't work with .html either. So I guess it isn't related to PHP

Re: server not working

PostPosted: 06. September 2009 20:29
by Wiedmann
Well, the message is clear:
The file you are accessing with this URI doesn't exists in the filesystem (at the location the server is searching for it).

So you have to think about:
- the file name
- the filesystem location (directory) of this file
- the URI you are using
- and the DocumentRoot (the starting point your server is searching for files)

Maybe the "error.log" can give you a hint.

Re: server not working

PostPosted: 06. September 2009 20:35
by shawninder
I've double-checked the file name

I placed my file directly in the htdocs folder, is this the right place?

I use the following uri:

http://localhost/phpTest.php

As for the DocumentRoot, how can I check/change this?

And how can i find the error.log