1-Oct-2009 novatest01 log

S. Kasahara 10/01/2009

This is the set of instructions I followed to install apache with php enabled.

The apache installation that we use on novatest01 is in:

I found the apache php module library in:



I assumed that this was built with the proper configuration options, if not, I'll have
to come to build it again.


  • First copy the file to /usr/local/apache2/modules:
    • cd /usr/lib64/httpd/modules
    • ksu root
    • cp /usr/local/apache2/modules
  • Then install the php.ini file to /usr/local/apache2/php/php.ini. I found a php.ini file already install on the system in /etc/php.ini.
    • cd /etc
    • ksu root
    • mkdir /usr/local/apache2/php
    • cp php.ini /usr/local/apache2/php/php.ini
  • Add the php enabling directives to /usr/local/apache2/conf/httpd.conf:
    • ksu root
    • cd /usr/local/apache2/conf
    • cp httpd.conf httpd.conf_save_2009_10_01
          (edit httpd.conf and add lines:
             # Enable PHP
             LoadModule php5_module  modules/
             AddType application/x-httpd-php .php
           and add index.php to DirectoryIndex line:
             DirectoryIndex index.html index.php
  • Restart apache:
    • ksu root
    • /etc/init.d/apache2 restart