arch linux web server not showing php


2 posts
by fjb » Fri Sep 07, 2012 9:19 pm
hello. i have the arch linux os installed on my pi. I put in the apache webserver along with the php module.
I added the below to the relevant place in my httpd.conf file. I created an index.php on my web server. the server recognises it under the directoryindex clause but shows i as php source rather than passing it to php. Any ideas?

Thanks.

<IfModule dir_module>
<IfModule php5_module>
DirectoryIndex index.php index.html
<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
</IfModule>
</IfModule>
Posts: 16
Joined: Fri Aug 10, 2012 10:49 am
by freakqnc » Fri Apr 19, 2013 5:29 am
Was this ever solved in your case? If so how?

I am having the same issue and nothing so far has worked. Instead of parsing the php file, the browser is prompting to download/open it.

Thanks :)
Posts: 7
Joined: Thu Feb 16, 2012 3:33 am