Super User is a question and answer site for computer enthusiasts and power users. 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

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 -- httpd.conf is located at /etc/httpd/conf/httpd.conf. Thanks! – Richard Sully Sep 8 '12 at 16:02

You must log in to answer this question.

Browse other questions tagged .