Posted by Ron Barnett on 09/26/06 10:09
"joe" <green2004@canada.com> wrote in message
news:1158856497.371264.35540@i42g2000cwa.googlegroups.com...
> Hi,
>
> I am new to both Apache and PHP. I have installed Apache 2.0.59 and PHP
>
> 5.1.6 on WinXP Home. I can run test.php page from default DocumentRoot
> "C:/Program Files/Apache Group/Apache2/htdocs" but I have a
> subdirectory "C:/Program Files/Apache Group/Apache2/htdocs/sub1" from
> which I cannot run my test.php page.
>
> Can someone give me an idea as what is wrong here and how I can fix it
> so that I can run PHP pages from any subdirectory of C:/Program
> Files/Apache Group/Apache2/htdocs.
>
> Thanks for your time,
>
> Joe
Hi Joe,
Can you serve an HTML page from the subfolder?
if the root of your server is //myServer (equating to 'C:/Program
> Files/Apache Group/Apache2/htdocs')
you should put //myServer/sub1 into your browser address bar and this will
then call whatever is your defined default page , or add a specific page
name //myServer/sub1/mytest.php
You should also check that the document type settings in Apache that invoke
the PHP extensions may have to be enabled for additional directories - look
in the apache config file for php.
HTH
Ron
[Back to original message]
|