Wrox Home  
Search P2P Archive for: Go

  Return to Index  

apache_server thread: PHP's doc_root


Message #1 by "Rayon Pinnock" <rayon@i...> on Thu, 22 Mar 2001 12:25:21
I am running Apache 1.3.19 web server under Windows 2000 Professional with 

php4 configured as a module of Apache. 

 

Previously php4 was configured was used a cgi interpreter

and in the php.ini file I had 

 

doc_root = "c:\php\scripts"

 

and in the httpd.conf file I had

 

DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/public"

 

and it worked beautifully. i.e. I could type http://localhost/myscript.php 

in my browser and the web server would automatically check the directory 

specified by doc_root for the requested php script and go on from there.

 

However under the current configuration the web server cannot find the 

scripts and the browser reports the dreaded error: HTTP 404 - File not 

found.

 

What I did as a workaround was to place the php scripts somewhere under 

the web server's DocumentRoot and specify the path when making script 

requests.  This works but I want to have my scripts organized like I did 

before - i.e. in a separate directory tree than that of the web server's 

oot. Please advise.

 

Rayon Pinnock

  Return to Index