arch linux web server not showing php

3 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?


<IfModule dir_module>
<IfModule php5_module>
DirectoryIndex index.php index.html
<FilesMatch "\.php$">
SetHandler application/x-httpd-php
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
Posts: 24
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: 9
Joined: Thu Feb 16, 2012 3:33 am
by kxait » Sat Aug 23, 2014 10:39 am
I'm having this problem. I can't see any php files and I am sure php is installed.
guys help i ran the code and it returned this:
Code: Select all
OP:1: couldn't resolve hostname '//life'

??????????wat do
User avatar
Posts: 22
Joined: Tue Aug 19, 2014 11:56 am
Location: Poland