I am also a new at this. Just a few minute ago I solved the problem on my
computer.
I am using DzSoft to write php script and wanted to use Apache for a server.
In DzSoft the root script is: c:\apache2 (notice no \after apache).
You can find the location of ServerRoot in apache2\conf\httpd.conf in
Section 1 ServerRoot "C:/Apache2"
Also look in Section 2 for ServerName localhost:8080
Be careful about these suggestions. I have not been able to actually open a
page.
Upon running a php file, the browser opens, and I get a 404 file not found
error. If you click on localhost on the page.
a.. Open the localhost home page
The next screen says the apache installation was successful. Finally!!!!!
Now I am working on getting a page to open. It probably is in the cong
file. Still looking.
Before opening a file, the file you are opening must in in the apache2
directory or one of the subdirectories.
Good luck
"Jeremy Watts" <jeremy.watts70 RemoveThis @ntlworld.com> wrote in message
news:ZQ_8c.6$331.0@newsfe1-win...
> I'm a complete PHP virgin i'm afraid, and have as far as i'm aware
installed
> apache and php. i have also downloaded a PHP programming environment
called
> PHP Coder Pro!
>
> But on attempting to run any program i am given the message "The current
> file is not located in a Web Server Document Root subpath. Thus it cannot
be
> accessed by the webserver! Please save this file in a Document Root sub
> path."
>
> Someone told me to save program files in the "DocumentRoot" heading given
in
> the Apache configuaration file. The folder given was contained in the
Apache
> Group folder and was called 'htdocs'. I have tried this but still get the
> same
> message.
>
> I am running Windows XP by the way. Also I think I read somewhere to not
> install Apache in the Program Files folder, but rather in the main C:
drive.
> I may have saved it in the Program files - does this make a big
difference?
> Could this be the source of the problem?
>
> Any help appreciated.
>
> Jeremy
>
><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: question from a newbie