php on ubuntu 13.10 won't get parsed

Posted by fefe on Server Fault See other posts from Server Fault or by fefe
Published on 2013-10-22T08:24:24Z Indexed on 2013/10/22 9:58 UTC
Read the original article Hit count: 338

Filed under:
|
|

I'm facing a strange issue with a fresh installed ubuntu 13.10 apache2 with mysql and php. My php won't get parsed and I have been doing every changes what I found during my researches

PHP 5.5.3-1ubuntu2 (cli) (built: Oct  9 2013 14:49:12) 

sudo a2enmod php5

apache2.conf

<FilesMatch \.php$>
    SetHandler application/x-httpd-php
</FilesMatch>

/etc/apache2/mods-enabled/php5.conf

</FilesMatch>
# Deny access to files without filename (e.g. '.php')
<FilesMatch "^\.ph(p[345]?|t|tml|ps)$">
    Order Deny,Allow
    Deny from all
</FilesMatch>

# Running PHP scripts in user directories is disabled by default
#
# 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>

© Server Fault or respective owner

Related posts about apache2

Related posts about ubuntu