httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Koch <apache-m...@il-is-valid.com>
Subject [users@httpd] Re: PHP Parsing Problem
Date Thu, 16 Jun 2011 18:54:38 GMT
Hello Zavelopez,

* zavelopez@gmail.com wrote '[1]:

> 2. The contents of the php5.conf file are as follows:

> <IfModule mod_php5.c>
>     <FilesMatch "\.ph(p3?|tml)$">
>         SetHandler application/x-httpd-php
>     </FilesMatch>
>     <FilesMatch "\.phps$">
>         SetHandler application/x-httpd-php-source
>     </FilesMatch>
>     # To re-enable php in user directories comment the following lines
>     # (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
>     # prevents .htaccess files from disabling it.
>     <IfModule mod_userdir.c>
>         <Directory /home/*/public_html>
>             php_admin_value engine Off
>         </Directory>
>     </IfModule>
> </IfModule>

For me there is missing an entry for the file ending .php. So it won't
get interpreted and Apache offers it as download.

In my configuration I noted the following and it works:

,----- [ mods-available/php5.conf ]
| <IfModule mod_php5.c>
|   AddType application/x-httpd-php .php .aspx
|   AddType application/x-httpd-php-source .phps
| </IfModule>
`-----

CMIIW.

-- 
Greetz,
Christoph

[1] ~ Message from: 16.06.2011 @ 17:13:02 +0000 GMT
mid:bcaec520ecc3b1832f04a5d7617d@google.com


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message