apache cannot run any php
<p>I've installed an apache server on my raspberry pi and everything seems to be running fine unless I try to serve php.</p>

<pre><code>/var/www/html/index.html serves fine
/var/www/html/foo/index/index.html serves fines
</code></pre>

<p>But if I add index.php, let's say :</p>

<pre><code>&lt;?php echo "hello world"; ?&gt;
</code></pre>

<p>I get <strong>403 -Forbbiden</strong> by accessing /var/www/html but I can still access /var/www/html/foo/index.html (DirectoryIndex set to .php .html .htm).</p>

<p>And if I run <code>$php index.php</code> : hello world</p>

<p><strong>So, it does can serves .html, it can run .php but it cannot serve .php.</strong></p>

<p>How can I fix this ? I found many solutions but none worked for me.</p>

<p>Note : 
I access the sites from the LAN.
Server OS (uname -a) : Linux raspbian-AH 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux</p>

<p>As stated in the comments, we could easily deduce module is not loaded but I here it is :</p>

<pre><code>pi@raspbian-AH:/etc/apache2/mods-available $ cat php5.conf 
&lt;FilesMatch ".+\.ph(p[345]?|t|tml)$"&gt;
    SetHandler application/x-httpd-php
&lt;/FilesMatch&gt;
&lt;FilesMatch ".+\.phps$"&gt;
    SetHandler application/x-httpd-php-source
    # Deny access to raw php sources by default
    # To re-enable it's recommended to enable access to the files
    # only in specific virtual host or directory
    Require all denied
&lt;/FilesMatch&gt;
# Deny access to files without filename (e.g. '.php')
&lt;FilesMatch "^\.ph(p[345]?|t|tml|ps)$"&gt;
    Require all denied
&lt;/FilesMatch&gt;

# Running PHP scripts in user directories is disabled by default
# 
# To re-enable PHP in user directories comment the following lines
# (from &lt;IfModule ...&gt; to &lt;/IfModule&gt;.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
&lt;IfModule mod_userdir.c&gt;
    &lt;Directory /home/*/public_html&gt;
        php_admin_flag engine Off
    &lt;/Directory&gt;
&lt;/IfModule&gt;
</code></pre>

<p>and the php5.load:</p>

<pre><code>pi@raspbian-AH:/etc/apache2/mods-available $ cat php5.load
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
</code></pre>