Re: Problem Running PHP on WinXP
| From: | Chris Hewitt | Date: | Mon, 09 Aug 2004 09:38:59 +0000 |
| Subject: | Re: Problem Running PHP on WinXP | ||
| References: | 1 2 3 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-14068@lists.php.net to get a copy of this message | ||
On Mon, 2004-08-09 at 04:32, Chris Montgomery wrote:
> Howdy Chris,
>
> Sunday, August 8, 2004, 7:18:03 AM, Chris Hewitt wrote:
>
> > You do not tell us what error you had? If it was that the web page could
> > not be found, then it is probably that you have put your test.php in
> > your Apache installation directory rather than in the directory
> > specified by DocumentRoot in you httpd.conf file.
>
> You are correct, I did forget to say what the error was. You guessed
> correctly, it was a Not Found error. I checked my httpd.conf file and
> discovered I had the DocumentRoot set, but it was incorrect. A slight
> change and my test.php came up like a charm.
>
> One related question: can the DocumentRoot be anywhere (any
> drive/folder), or does it have to be under the Apache folder?
Yes, basically anywhere as long as the webserver has permissions on it
(caveat is that I don't use PHP under MS Windows so I can't actually
test this). On my system the httpd root is /etc/httpd but the document
root is /var/www/html.
HTH
Chris