Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 5 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
add comment

Your Answer

 
discard

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.