Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Using Centos 6.3, I installed Apache httpd 2.2 with PHP 5.4 (from a custom yum repository) and MySQL. PHP works fine on the command line, but there's no mention of it in Apache's httpd.conf.

I know it should have some "LoadModule" lines relating to PHP but it doesn't. There is literally no mention of PHP anywhere in the conf file.

Is there a way to automatically make PHP work with Apache, as I'd rather not add bits and pieces to httpd.conf myself - I'd rather have this taken care of automatically?


share|improve this question
what is your custom yum repository and what is path to httpd.conf you are about to edit? –  Peter Sep 8 '12 at 15:46
Sorry, I meant to type Centos 6.3. My repo is from IUS -- dl.iuscommunity.org/pub/ius/stable/Redhat/6/i386/repoview. httpd.conf is located at /etc/httpd/conf/httpd.conf. Thanks! –  Richard Sully Sep 8 '12 at 16:02

Your Answer


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

Browse other questions tagged or ask your own question.