PHP
Table of contents
Installing from ports
cd /usr/ports/lang/php5 make make install
And to get extensions
cd /usr/ports/lang/php5-extensions make config make make install
Installing from source
PHP4 and 5, with APXS support./configure --with-mysql=/usr/local \
--with-apxs2=/usr/local/sbin/apxs \
--with-gettext=/usr/local \
--enable-ftp \
--enable-bcmath \
--with-gd=/usr/local \
--with-zlib \
--with-zlib-dir=/usr \
--with-jpeg-dir=/usr/local \
--with-freetype-dir=/usr/local/include/freetype2 \
--enable-gd-native-ttf \
--enable-ftp \
--enable-mbstring \
--with-imap \
--with-domMySQL support and API
See http://www.tizag.com/mysqlTutorial/Cacti setup
Crontab should be like:*/1 * * * * /usr/local/bin/php /usr/local/share/cacti/poller.php >/dev/null 2>&1
In file include/config_form.php (default base path is /usr/local/share/cacti)
"rrd_step" => array( "friendly_name" => "Step", "method" => "textbox", "max_length" => "10", "size" => "20", "default" => "60", "description" => "The amount of time in seconds between expected updates.", "flags" => "" )
"default" => "60"
was
"default" => "300"
In file include/config_settings.php (default base path is /usr/local/share/cacti)
"page_refresh" => array( "friendly_name" => "Page Refresh", "description" => "The number of seconds between automatic page refreshes.", "method" => "textbox", "default" => "60", "max_length" => "10" )
"default" => "60"
was
"default" => "300"
Horde framework setup
Homepage http://horde.org
In general - when installing Horde or any addons - you simply copy in all files and chown to www user. Then make sure to either install or upgrade mysql from scripts in "scripts/sql".
Kronolith
When installing Kronolith, it can send out reminders - but this requires a crontab to run.
Something like:
*/5 * * * * /www/htdocs/horde/kronolith/scripts/reminders.php
Also - you need to patch it before it actually works. (At writing moment version 2.0.4 is latest stable)
===================================================================
RCS file: /horde/cvs/kronolith/lib/Scheduler/kronolith.php,v
retrieving revision 1.25.6.6
retrieving revision 1.25.6.6.2.1
diff -p --unified=3 -r1.25.6.6 -r1.25.6.6.2.1
--- kronolith.php 2005/06/23 21:22:19 1.25.6.6
+++ kronolith.php 2005/10/27 08:37:03 1.25.6.6.2.1
@@ -4,7 +4,7 @@
*
* Act on alarms in events and send emails/pages/etc. to users.
*
- * $Horde: kronolith/lib/Scheduler/kronolith.php,v 1.25.6.5 2005/06/07 18:01:25 chuck Exp $
+ * $Horde: kronolith/lib/Scheduler/kronolith.php,v 1.25.6.6 2005/06/23 21:22:19 selsky Exp $
*
* @package Horde_Scheduler
*/
@@ -146,7 +146,7 @@ class Horde_Scheduler_kronolith extends
if (!isset($recipients[$lang][$twentyFour])) {
$recipients[$lang][$twentyFour] = array();
}
- $recipients[$lang][$twentyFour] = $this->_emails[$user];
+ $recipients[$lang][$twentyFour][] = $this->_emails[$user];
}
}If you're going to use postfix and courier-imap with MySQL authentication, make sure to use "crypt-md5" for password.
