Re: Linux: Apache not pick-up PHP; files downloaded to browser (fixed)

From: Date: Mon, 05 Sep 2005 17:07:04 +0000
Subject: Re: Linux: Apache not pick-up PHP; files downloaded to browser (fixed)
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-16623@lists.php.net to get a copy of this message
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.

« previous php.install (#16623) next »