| Ripta Pasay 2005-09-05, 7:10 pm |
| Nevermind. I got it to work.
Apparently mod_php5 should be loaded after mod_rewrite which comes after
mod_alias. The AddModule sequence matters.
Thanks.
---------- Forwarded message ----------
From: Ripta Pasay <hcblue@gmail.com>
Date: Sep 5, 2005 1:35 AM
Subject: Linux: apache not pick-up PHP; files downloaded to browser
To: php-install@lists.php.net
Greetings,
I'm trying to install PHP 5.0.4 / apache 1.3.33 on my Debian (kernel
2.4.27-2). PHP was installed for Apache's DSO, configured with APXS.
Configure and make ran without any issues, as did installation. The CLI
version runs as expected, returning what seems to be the correct values.
Apache can be started, and it appears to load libphp5.so. When accessing a
PHP file, however, the browser downloads the file, and apache doesn't pick
up the PHP file (it doesn't process any PHP pages). No segfaults occur, no
error messages generated by PHP.
Here is an except of my httpd.conf. The lines appear in the same order:
LoadModule php5_module libexec/libphp5.so
AddModule mod_php5.c
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
The AddModule directive comes after ClearModuleList, while the LoadModule
appears before ClearModuleList.
Perhaps someone on the list can advice me where to start looking? I've tried
moving things around in the config file to no success. The installation
instructions say that I'm probably doing something wrong in the config...
Thanks.
|