Apache Not Recognizing .php Files
Carl Friis-Hansen
ubuntuuser at carl-fh.com
Thu Jun 5 16:19:22 UTC 2008
Matt Florido wrote:
> So I just upgraded PHP and it seems something got borked. PHP is
> running just fine on Apache, but for some reason, the following module
> doesn't seem to be recognized or processed by Apache.
>
> <IfModule mod_php5.c>
> AddType application/x-httpd-php .php .phtml .php3
> AddType application/x-httpd-php-source .phps
> </IfModule>
>
> I say this because pointing to index.php brings up a window in Firefox
> basically saying it doesn't know what to do with x-httpd-php files.
Have you checked the contents of "php5.load". I expect it to be
something like:
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
Also check that the needed moduled are loaded in the php configuration
concerning apache2 like in:
/etc/php5/apache2/php.ini make sure that "Engine=On"
--
+-------------------------------+-------------------+--------+
| Carl Friis-Hansen | Fiskeryd Nybygget | \ / |
| carl.friis-hansen at carl-fh.com | 341 91 Ljungby | \/ |
| Phone: +46 372 15033 | Sveden | ###### |
+-------------------------------+-------------------+--------+
More information about the ubuntu-users
mailing list