Changeset View
Changeset View
Standalone View
Standalone View
net-mgmt/cacti88/files/pkg-message.in
Show All 19 Lines | 2. Edit %%PREFIX%%/%%CACTIDIR%%/include/config.php from the template | ||||
config.php.orig. | config.php.orig. | ||||
PHP requires the time zone to be explicitly set rather that rely on | PHP requires the time zone to be explicitly set rather that rely on | ||||
the system time zone, otherwise poller complains. I added the | the system time zone, otherwise poller complains. I added the | ||||
following line to my config.php: | following line to my config.php: | ||||
date_default_timezone_set('America/Los_Angeles'); | date_default_timezone_set('America/Los_Angeles'); | ||||
3. Add the following line to cron for %%CACTIUSER%%: | 3. Add the following line to cron for cacti: | ||||
garga: Keep %%CACTIUSER%% here | |||||
*/5 * * * * %%LOCALBASE%%/bin/php %%PREFIX%%/%%CACTIDIR%%/poller.php > /dev/null 2>&1 | */5 * * * * %%LOCALBASE%%/bin/php %%PREFIX%%/%%CACTIDIR%%/poller.php > /dev/null 2>&1 | ||||
4. Example Apache 2.4 configuration: | 4. Example Apache 2.4 configuration: | ||||
LoadModule php5_module libexec/apache22/libphp5.so | LoadModule php5_module libexec/apache22/libphp5.so | ||||
<FilesMatch "\.php$"> | <FilesMatch "\.php$"> | ||||
SetHandler application/x-httpd-php | SetHandler application/x-httpd-php | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |
Keep %%CACTIUSER%% here