From: Sebastien D. <sde...@us...> - 2005-01-21 10:42:53
|
Update of /cvsroot/tslogparser/tslogparser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9133 Modified Files: INSTALL database.inc.php Removed Files: db_inc.php Log Message: Defined a default setup configuration (1st step to rpm), updated INSTALL file accordingly to modifications. --- db_inc.php DELETED --- Index: INSTALL =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/INSTALL,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- INSTALL 12 Jan 2005 15:54:26 -0000 1.5 +++ INSTALL 21 Jan 2005 10:42:39 -0000 1.6 @@ -11,27 +11,34 @@ -> Put the tslogparser files in a suitable directory for your setup. For example: - cd /opt + cd /var/www mkdir tslogparser + mkdir tslogparser/admin + mkdir tslogparser/admin/modules + mkdir tslogparser/db cd tar zxvf tslogparser*.tar.gz cd tslogparser* - cp -R * /opt/tslogparser - + mv *.php FAQ /var/www/tslogparser + mv admin/*.php /var/www/tslogparser/admin + mv admin/modules/*.php /var/www/tslogparser/admin/modules + mv db/*.php /var/www/tslogparser/db + -> Then make this directory accessible from your web server. - cd /var/www/html - ln -s /opt/tslogparser - + In standard installation (apache 2.0), you can do this by just copying a file: + mv package/tslogparser.conf /etc/httpd/conf.d + Then restart you webserver: + /etc/rc.d/init.d/httpd restart + -> Check your web server can access the files. - Open http://localhost/tslogparser/INSTALL in a web browser. + Open http://localhost/tslogparser/FAQ in a web browser. You may need extra set-up to allow for PHP files execution. Check your webserver configuration file. - -------------------- STEP 2: Set up the database server. ------------------------- +------------------ STEP 2: Set up the database server. ------------------------ You need a working MySQL installation here. You can execute the following commands from the command line client or @@ -52,9 +59,12 @@ ------------------- STEP 3: Configure tslogparser -------------------------------- +----------------- STEP 3: Configure tslogparser ------------------------------- --> Edit the file db_inc.php with your database configuration information: +-> The default configuration file is /etc/tslogparser.conf.php + mv package/tslogparser.conf.php /etc + +-> Edit the file tslogparser.conf.php with your database configuration information: (*) server name or IP. (*) user name (*) user password @@ -72,10 +82,9 @@ $db_pw="secret"; ?> -NOTE: You may put this file anywhere for security reasons; just +NOTE: You may put this file anywhere else for security reasons; just let the file database.inc.php know where it is located, and - make sure that your web server process can access it (user apache). - + make sure that your web server process can access it (user apache or www). ------------------- STEP 4: Initial database creation ------------------------ Index: database.inc.php =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/database.inc.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- database.inc.php 11 Jan 2005 10:13:43 -0000 1.5 +++ database.inc.php 21 Jan 2005 10:42:39 -0000 1.6 @@ -32,7 +32,7 @@ */ if (!isset($root)) die ("Hack attempt detected\n"); -require($root."db_inc.php"); +require("/etc/tslogparser.conf.php"); /* Define the latest version name */ require($root."db/update_db.inc.php"); |