ID:               28238
 Updated by:       [EMAIL PROTECTED]
 Reported By:      floeff at arcor dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         CGI related
 Operating System: Linux
 PHP Version:      4.3.6
 New Comment:

You have misconfigured PHP for Apache as CGI.
Please ask further support questions on [EMAIL PROTECTED]



Previous Comments:
------------------------------------------------------------------------

[2004-04-30 19:24:30] floeff at arcor dot de

Description:
------------
It seems that --enable-discard-path prevents PHP from being run as CGI
with Apache.

My configure options are as follows:
./configure --enable-safe-mode --with-mm --with-mysql
--enable-discard-path --with-exec-dir --enable-memory-limit
--enable-force-cgi-redirect

PHP has been enabled in Apache with these settings in httpd.conf:
<Directory /usr/local/bin>
<Files php>
Order allow,deny
Allow from all
</Files>
</Directory>
ScriptAlias /.php-script/ /usr/local/bin/
AddHandler php-script .php
Action php-script /.php-script/php

This does not work. I receive parse errors for ASCII characters, it
seems that no PHP script is being parsed, but some binary data. As soon
as I remove --enable-discard-path it works fine. I run Apache 2.0.49.

Seems to be related to Bug #18371.

Reproduce code:
---------------
<? phpinfo(); ?>
or any other PHP code.

Expected result:
----------------
Parse error.

Actual result:
--------------
Correct PHP output.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28238&edit=1

Reply via email to