PHP's doc_root

From: Date: Fri, 23 Mar 2001 00:12:05 +0000
Subject: PHP's doc_root
Groups: php.windows 
Request: Send a blank email to php-windows+get-6237@lists.php.net to get a copy of this message
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 root. Please advise. Rayon Pinnock

« previous php.windows (#6237) next »