Some development crap of me and others.

./How to install

SyslogPHP Version: 0.1 (21 May 2003)
License: GNU Public License (GPL)
Current Version: 0.3
Authors: Bart Geverts & KayJay (kayjay.net)

  • Install msyslog: (get the newest version at: http://sourceforge.net/projects/msyslog/
  • Run ./configure
  • Changed to root by using su
  • make && make install


  • Rename "mysql_password" to your mysql user password in install/references.sql.
  • Adjust the variables set in install/setup.sh. These settings have to be the same as what has been set in install/references.sql.
  • Shut down your default syslog:
    - /etc/init.d/syslog stop
    or
    - /sbin/service syslog stop

  • Run sql/create_database.sql
  • Add the following lines to your syslog.conf. Adjust user and pass to fit your needs:
    *.* %mysql -s localhost -u mysql -p mysql_password -d logd -t syslogTB -D
    *.* -- log all syslog messages to the mysql database

  • Copy init/msyslog to your /etc/init.d/ directory
  • cp init/msyslog /etc/init.d/msyslog
  • chmod 700 /etc/init.d/msyslog
  • chown root:root /etc/init.d/msyslog


  • Once these procedures were succesfully completed start up msyslog by:
    - /etc/init.d/msyslog start
    or
    - /sbin/service/msyslog start

  • Make sure your default syslog doesnt come up after boottime but starts up msyslog instead:
    - /sbin/chkconfig --level 345 syslog off
    - /sbin/chkconfig --level 345 syslog on

  • Create a dir named syslog-php somewhere in your webroot (e.g. /var/www/html/syslog-php)
  • Copy everything inside html/ in that directory.
  • Change rights in this directory so that apache can read it:
    - cd /var/www/html/syslog-php
    - chown apache:apache *
    - chmod 644 *

  • Enhance dbinfo.inc.php to reflex the mysql user/pass settings defined during your installation

  • Secure the syslog-php webdirectory so that only some specific hosts can see it.
  • Enhance your httpd.conf to get this done.

  • Add the following rules:
    Options Includes FollowSymLinks
    AllowOverride None
    Order deny,allow
    deny from all # >8-)

  • Restart your httpd:
    /etc/init.d/httpd restart


  • The pages should come online now

    ./Downloads

    The following version(s) of SyslogPHP can be downloaded:

  • Syslog-PHP-0.1
  • Links

    sample

  • ./Home
  • ./News
  • ./Install
  • ./Screenshots