Cacti (home)ForumsRepositoryDocumentation

Configure PHP

There are numerous ways to package php. The following hints are meant as a guideline. Your distro's setup may vary.

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. The /path/to/extension_dir may vary for different linux distros; e.g. extension_dir=/usr/lib/php/modules

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

Cacti uses e.g. the exec() call, so please make sure to have

safe_mode = Off