ID: 18648 Comment by: vesely at tana dot it Reported By: ms at ecs dot soton dot ac dot uk Status: Bogus Bug Type: Apache2 related Operating System: All PHP Version: 5CVS-2003-01-29 (dev) / 4CVS-20020121 (stable) New Comment:
For completeness, I'd like to mention that the setting suggested > [4 Feb 3:05pm CST] [EMAIL PROTECTED] wrote > > # good (d) > AddType application/x-httpd-php .php works owlright except that if a request for xxx.php arrives w/o extension like GET /xxx HTTP/1.1 Accept: text/* Apache responds "406 Not Acceptable" and lists xxx.php as a possible alternative of MIME type application/x-httpd-php. If the "Options MultiViews" is in effect, Apache serves xxx.php when that is the shortest (or only) choice. Adding a "MultiViewsMatch Handlers Filter" or renaming to xxx.html.php don't help. I think we need to use PHP as a filter; 4.3.2 mentions having set a new handler but doesn't say this bug is closed. BTW, what's the reason why we "Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows."? (That warning comes from http://www.php.net/manual/en/install.apache2.php) Previous Comments: ------------------------------------------------------------------------ [2003-06-16 15:26:12] sbeam at syxyz dot net yes my bad, the directives were in /etc/httpd/conf.d/php.conf I am new to Apache 2.0 and did not expect them there. Thanks. ------------------------------------------------------------------------ [2003-06-12 10:11:30] CJ dot Hammond at t-online dot de Please look in the /etc/httpd/conf.d/ folder. There might be a php.conf file (or likewise, as all files get included). Any Directive within will have the same effect as directives in /etc/httpd/conf/httpd.conf !!! Later, /jochen ------------------------------------------------------------------------ [2003-06-02 20:45:56] sbeam at syxyz dot net NOT fixed on default RedHat 9.0 setup (Apache 2.0.40 and PHP 4.2.2): same form.html and test.php as original poster on 30 Jul 2002. Same exact result. Also there is NO SetOutputFilter or other stuff in httpd.conf, and adding "AddInputFilter PHP .php" has no effect. RedHat does not currently provide any higher version of PHP binaries. Only option is to recompile? ------------------------------------------------------------------------ [2003-05-04 08:36:37] anrdaemon at mtu-net dot ru Thanx to [EMAIL PROTECTED] /me stupid... AddInputFilter PHP .php solves all problems. ------------------------------------------------------------------------ [2003-03-05 07:32:56] jorton at redhat dot com The default configuration in Red Hat Linux has only the <Files *.php*> section. This bug appears to occur if the "AddType x-httpd-php .php" is added *as well* as the <files *.php> section. http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=76559 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/18648 -- Edit this bug report at http://bugs.php.net/?id=18648&edit=1