PHP 4.1.0 SAPI on Apache Win32?
| From: | Garth Dahlstrom | Date: | Mon, 17 Dec 2001 19:50:14 +0000 |
| Subject: | PHP 4.1.0 SAPI on Apache Win32? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-77989@lists.php.net to get a copy of this message | ||
I'm wondering if anyone else is trying to run the SAPI
version of PHP on Apache for Win32 and hitting problems
with the include_path?
I'm running Win2K, if I set the include_path parameter
to any non-blank value I get an error as follows:
Warning: Failed opening '/apache/htdocs/helloworld.php' for inclusion
(include_path='.') in Unknown on line 0
How to test it on your system:
- add the following to your HTTPD.conf:
LoadModule php4_module "./PATH_TO_PHP/sapi/php4apache.dll"
- comment out:
Action application/x-httpd-php "/php/php.exe"
- give "everyone" user access to read/execute to a sub-directory
in your htdocs directory.
- create a PHP file that just echo's "hello world" w/ no include/require
statements.
- restart apache
- run the script (should be ok)
- add include_path="." to your PHP.ini (this will
search for includes in local directory)
- restart apache
- run the script (does it give this error?)
Can someone tell me if I missed something in configuring Apache/PHP
that would cause this?
Here is the bug report I filed:
http://bugs.php.net/bug.php?id=14563&edit=1
-GED