Having problem with Apache and PHP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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,  


Re: Having problem with Apache and PHP

Quoted text here. Click to load it
Hi Joe,

Can you serve an HTML page from the subfolder?

if the root of your server is //myServer (equating to 'C:/Program
Quoted text here. Click to load it
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.



Re: Having problem with Apache and PHP

Ron Barnett wrote:
Quoted text here. Click to load it

If you want a solid install of Apache with PHP and various other linix
type tools, read...


It gives you detailed instructions on how to install these tools (in
about 15 mnutes) and how to make sure it all works properly.

One of the best things about this method of installation is that it
takes only a few minutes to back it up to CD and then even less time to
restore the setup if you need to!

Give it a try


Site Timeline