From: php at soapi dot com Operating system: RedHat Enterprise Linux 3.0 PHP version: 5.0.0 PHP Bug Type: Apache2 related Bug description: PHP is not executed/not handling files
Description: ------------ First of all, my apologies for adding a new bug, but bug 26492 has been marked as bogus, and although I have added a comment, I cannot reopen it. Therefore as I believe this is indeed a PHP problem, I have created a new entry. After building PHP5.0.0 final today, I am experiencing the exact same problem I have had with RC1, RC2, and RC3. I am currently running Apache 2.0.50, but I have tried with 2.0.48 and 2.0.49 as well. (I spent two full days a couple of weeks ago recompiling many different configurations, with no success.) PHP compiles and installs fine, and Apache loads with no problems. There are no errors listed in the error log (which is set to flag everything) and I don't get any problems other than this one, which is that PHP files are not being processed. I have PHP4.3.8 running right now, and every version of PHP4 has compiled, installed, and run with no problems. I am using an essentially identical configuration line for PHP5, and all I do to swap between the two is change the module that is loaded. Even if I use a very basic Apache and PHP setup, this problem occurs. I am using a standard PHP5 ini file, with only minor changes to point it at the right directories. So. Whenever I use PHP5, all PHP files are offered for download rather than being processed by PHP5. I have tried things like AddHandler php5-script and all sorts, with no success. As far as I am aware, I should not have to do anything substantially different to set up PHP5 than I do for PHP4. Apache info shows that mod_php5.c is loaded successfully, so why doesn't it handle the files? I'm going mad with this. The only thing that is different from a standard installation is that I install PHP4 and PHP5 into their own locations, in order to swap between them. For instance I use 'export EXTENSION_DIR=/usr/lib/php5' and then in the configure line I use '--program-suffix=5 --with-config-file-path=/etc/php5' with the other settings. This is simply to keep the two apart. It would appear that for some reason PHP5 is not properly registering with Apache2 that it can handle the application/x-httpd-php MIME-type, but I have no idea why, because I have 'AddType application/x-httpd-php php' in my httpd.conf file of course. How can I track down the problem? I'm not new to this - I have been a server admin for years (I run www.ithium.net) and I use PHP every day. I have compiled PHP and Apache countless times, and even written tutorials on the subject. So you can see why this is so frustrating. Thanks Dan Williams -- Edit bug report at http://bugs.php.net/?id=29144&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29144&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29144&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29144&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29144&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29144&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29144&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29144&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29144&r=support Expected behavior: http://bugs.php.net/fix.php?id=29144&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29144&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29144&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29144&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29144&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29144&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29144&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29144&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29144&r=float