Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Title is self explanatory.

I'm on Arch Linux, I installed the apache, php, php-apache and mariadb packages.

I have added the following line to the /etc/httpd/conf/httpd.conf file:

LoadModule php5_module modules/libphp5.so

However it doesn't seem to make a difference.

It recognizes index.html files flawlessly, it renders them correctly as well. However if it's a index.php file then it just reads it as-is. What I get on the browser is the text contents of the file, as if it was a text editor but without the text editing.

Any info that you need to help I will happily provide. :)

share|improve this question
up vote 6 down vote accepted

You forget to add handler for php script.

Have you tried this wiki yet?

share|improve this answer
Thanks for that link. Somehow I seem to have missed the PHP section, after dozens of times of reading this guide. :P – greduan Apr 25 '13 at 12:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.