Send a link

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-dom


MySQL support and API

See http://www.tizag.com/mysqlTutorial/ (external link)

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 (external link)

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.


  • + : A leading plus sign indicates that this word must be present in every object returned.
  • - : A leading minus sign indicates that this word must not be present in any row returned.
  • By default (when neither plus nor minus is specified) the word is optional, but the object that contain it will be rated higher.
  • < > : These two operators are used to change a word's contribution to the relevance value that is assigned to a row.
  • ( ) : Parentheses are used to group words into subexpressions.
  • ~ : A leading tilde acts as a negation operator, causing the word's contribution to the object relevance to be negative. It's useful for marking noise words. An object that contains such a word will be rated lower than others, but will not be excluded altogether, as it would be with the - operator.
  • * : An asterisk is the truncation operator. Unlike the other operators, it should be appended to the word, not prepended.
  • " : The phrase, that is enclosed in double quotes ", matches only objects that contain this phrase literally, as it was typed.

Menu