The Cacti Manual
Prev | Chapter 2. Installing Under Unix | Next

# Configure the Webserver (Apache)

If you are using Apache 1.3.x, installation of PHP 5 is not recommended.

Please find the file `/etc/httpd/conf/httpd.conf` or equivalent and make the following changes to it:

    # Load config files from the config directory "/etc/httpd/conf.d".
    Include conf.d/*.conf

Now, please locate the PHP configuration file at `/etc/httpd/conf.d/php.conf`

If using PHP 5, then add the following lines.

    # PHP is an HTML-embedded scripting language which attempts to make it
    # easy for developers to write dynamically generated webpages.
    LoadModule php5_module modules/libphp5.so
    #
    # Cause the PHP interpreter to handle files with a .php extension.
    AddHandler php5-script .php
    AddType text/html .php
    #
    # Add index.php to the list of files that will be served as directory
    # indexes.
    DirectoryIndex index.php

Prev | Home | Next
Configure PHP | Up | Configure MySQL