Forbidden

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



   Overview Description:

PHP scripts work only when the Directory following DocumentRoot is set to the root of the drive, ie. "F:\"

Steps to Reproduce: The minimal set of steps necessary to trigger the fault. Include any special setup steps.

	1) Install PHP5.1.4 and Apache2.2.2 to the system drive (F on my system)
2) In the httpd.conf file, set: DocumentRoot "F:/Program Files/Apache Software Foundation/Apache2.2/htdocs" 3) In the httpd.conf file, also set the next Directory to: "F:/Program Files/Apache Software Foundation/Apache2.2/htdocs" 4) In the httpd.conf file, set the server to execute .php files using F:/PHP/php-cgi.exe 5) In the htdocs directory, create a file named "info.php" containing "<?php info();?>"
	6) Navigate to "http://127.0.0.1/info.php"; or "http://localhost/info.php";

Actual Results: What the application did after performing the above steps.

	Forbidden

You don't have permission to access /php/php-cgi.exe/info.php on this server.

error.log
[Tue Jun 13 05:51:49 2006] [error] [client 127.0.0.1] client denied by server configuration: F:/PHP/php-cgi.exe

Expected Results: What the application should have done, were the fault not present.

       The browser should display php relevant environment information

Build Date & Platform: Date and platform of the build that you first encountered the fault in.

       May 4 2006 10:30:29 build on Windows XP Home Edition

Additional Builds and Platforms: Whether or not the bug takes place on other platforms or browsers.

	Pentium III, 1 Gh, 500MB Ram
	Tested on Mozilla Firefox 1.5.0.4 and Internet Explorer 6.0.2900...

   Additional Information: Any other debugging information:

	Does not occure if after DocumentRoot the next Document is set to "F:/"

Occures if DocumentRoot and the following Directory are set to another drive, eg. "C:/My documents/htdocs"

	doc_root is not set in the php.ini file.

#httpd.conf PHP5 CGI Configuration:
ScriptAlias /php/ "f:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"

#The folowing fails, although the php5apache2.dll file is present it cannot be located by the server
#httpd.conf PHP5 Module Configuration
#LoadModule php5_module "F:/php/php5apache2.dll"
#AddType application/x-httpd-php .php
# configure the path to php.ini
#PHPIniDir "F:/php"

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux