#28238 [Opn->Bgs]: --enable-discard-path prevents PHP from being run as CGI with Apache

From: Date: Sun, 11 Jul 2004 19:47:29 +0000
Subject: #28238 [Opn->Bgs]: --enable-discard-path prevents PHP from being run as CGI with Apache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-62056@lists.php.net to get a copy of this message
ID: 28238 Updated by: sniper@php.net 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 php-generals@lists.php.net 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

« previous php.bugs (#62056) next »