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

# Configure PHP

Please find the file `/etc/php.ini` and make the following changes to it:

    extension_dir = /etc/php.d

This will enable PHP to find more configuration directives in that very directory. Other distros point to `/usr/lib/php/modules` instead. In each case, you should locate e.g. `mysql.so` in that directory.

Activate the MySQL extension via /etc/php.d/mysql.ini

    ; Enable mysql extension module
    extension=mysql.so

Activate the SNMP extension via /etc/php.d/snmp.ini

    ; Enable snmp extension module
    extension=snmp.so

If using PHP 4.3.5 or less include the following line. If using 4.3.6 or greater, you should remove this line if present.

    session.save_path=/tmp

If you want to allow template importing, uncomment the following line:

    file_uploads = On

Prev | Home | Next
Ports for FreeBSD | Up | Configure the Webserver (Apache)