From 7689836237eb564fef84636f24aee2b1393bff96 Mon Sep 17 00:00:00 2001 From: marostegui Date: Wed, 11 Apr 2007 10:09:09 +0000 Subject: [PATCH] 2007-04-11 Manuel Arostegui * pandora_doc/en/pandora_quick_install.xml: Added information about the new Pandora Web Console Installation Wizard. * pandora_console/install.php: Text corrections. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@417 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 + pandora_console/install.php | 14 +-- pandora_doc/ChangeLog | 5 + pandora_doc/en/pandora_quick_install.xml | 125 ++++------------------- 4 files changed, 38 insertions(+), 110 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 4be99f7d47..a95ad72c6f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2007-04-11 Manuel Arostegui + + * install.php: Text corrections. + 2007-04-10 Sancho Lerena * pandoradb_data.sql: Fixed some odd problems with schema data. diff --git a/pandora_console/install.php b/pandora_console/install.php index ae6ee93568..fc1c3b1097 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -157,7 +157,7 @@ function install_step1() { Pandora FMS Development team "; if (file_exists("include/config.php")){ - echo "

Warning: You already have a config.php file. Configuracion and database would be overwritten if you continue.

"; + echo "

Warning: You already have a config.php file. Configuration and database would be overwritten if you continued.

"; } echo " @@ -208,8 +208,8 @@ function install_step2() {
"; if ($res > 0) { echo "

You have some uncomplete - dependencies. Please correct it or this installer - could not finish your installation. + dependencies. Please correct them or this installer + will not be able to finish your installation.

Ignore it. Force install Step #3"; } else { @@ -232,12 +232,12 @@ function install_step3() {

Environment and database setup

- This wizard will create your Pandora FMS database, and populate it with data needed to run for first time. + This wizard will create your Pandora FMS database, and populate it with all the data needed to run for the first time. You need a privileged user to create database schema, this is usually root user. - Information about root user will not be used or stored for anymore. + Information about root user will not be used or stored anymore.

- Now, please, complete all details to configure your database and enviroment setup. NOTICE that database will be destroyed if already exists!. + Now, please, complete all details to configure your database and enviroment setup. NOTICE that database will be destroyed if it already exists!.

DB User with privileges on MySQL
@@ -378,7 +378,7 @@ $BASE_URL="'.$url.'"; // Base URL if ($everything_ok == 1) { echo ""; } else { - echo " You get some problems. Installation is not completed. + echo " You got some problems. Installation is not completed.

Please correct failures before trying again. All database schemes created in this step have been dropped.

"; if (mysql_error() != "") diff --git a/pandora_doc/ChangeLog b/pandora_doc/ChangeLog index 6284b9fcce..4c475257f0 100644 --- a/pandora_doc/ChangeLog +++ b/pandora_doc/ChangeLog @@ -1,3 +1,8 @@ +2007-04-11 Manuel Arostegui + + * en/pandora_quick_install.xml: Added information about + the new Pandora Web Console Installation Wizard. + 2007-04-11 Manuel Arostegui * en/pandora_quick_install.xml: Added some new text and some diff --git a/pandora_doc/en/pandora_quick_install.xml b/pandora_doc/en/pandora_quick_install.xml index be77b34f84..dd84884daa 100644 --- a/pandora_doc/en/pandora_quick_install.xml +++ b/pandora_doc/en/pandora_quick_install.xml @@ -220,88 +220,7 @@ - Pandora Console and Pandora database - Pandora database install - - Please look at MySQL install and management guide - (http://dev.mysql.com/doc) to obtain information about how to - create a MySQL database, how to manage mysql users and give - him/her privileges to read/write in Pandora database. Remember - that you must write the password of the root user in MySQL - database to enter mysql command line. This user is not the same - of the Operating System. The root password in MySQL is in blank - by default (within almost all distributions), you must changed - this password with the MySQL command - mysqladmin. Please be careful with this. - - - You need a database with name "pandora", you could rename it, but - you need to reconfigure in server too. - - - To create the structure of Pandora database in MySQL Server you - have the SQL script "pandoradb.sql". - - - You MUST populate database with SQL script "pandoradb_data.sql", - it inserts data needed to run Web Console and default user - (login: admin, pass: pandora) to access Pandora Web Console. - - - First create a database called "pandora", and set an user to be - able to access this database: - - - mysql> create database pandora; - - - Later, execute the next commands using a user with enough - privileges to create tables and indexes for pandora Database into - your MySQL Server: - - - cat pandoradb.sql | mysql -D pandora -u root -p - cat pandoradb_data.sql | mysql -D pandora -u root -p - - - You can also use the source command, if you are connected to - MySQL, from the MySQL prompt: - - - mysql> use pandora - mysql> source path_to_pandora_dbstruct.sql - mysql> source path_to_pandora_dbdata.sql - - - This example is valid using root user in MySQL - - - Now we will create an user "pandora" and will be given to it - privileges from the localhost: - - mysql> grant all on pandora.* to 'pandora'@'localhost' - identified by 'pandora'; - - Keep in mind that users need access from Pandora WEB Console and - from Pandora Server, if your deployment has many subcomponents - in different physical machines, you need to setup a MySQL user - with privileges to access from different locations. - - - If you get the error "Warning: mysql_connect() - [function.mysql-connect]: client does not support authentication - protocol requested by server; consider upgrading" when - authenticating Web Console, you have to change the way the - password is stored into the database: - - mysql> set password for 'pandora'@'localhost' = old_password('pandora'); - - Please note this user will be used by several pandora - subcomponents (Pandora Server, Pandora Web Console) to access - database. - - - + Pandora Console Pandora console install. Prior to install Pandora console, you need the following @@ -320,9 +239,19 @@ - PHP Modules for MySQL, GD, session management and SNMP. + PHP Modules for MySQL. + + + PHP-GD > 1.3.X + + + + + PHP SNMP extension + + JpGraph, it is necesary to generate graphics. It has an @@ -338,19 +267,17 @@ publishing directory and set perms to www-data or http user. - To setup Pandora Console, you only need to modify a file, - include/config.php, where the following - variables are included in .php code: + Then point your browser to: + + http://host:port/installdir/install.php + - - $dbname="pandora"; // name of database for pandora) - $dbuser="pandora"; // mysql user to access db - $dbpassword="pandora"; // Password for mysql user - $dbhost="pandora"; // Hostname or IP of mySQL server - - If database is defined and was correctly installed, you can - now access: + Once you are there, you will be followed through 4 easy steps to + configure your Pandora FMS Web Console. + + If the proccess finished succesfully you will be able to reach + your new Pandora FMS Web Console at: http://host:port/installdir/index.php @@ -360,14 +287,6 @@ change it or create another account, give it administrator privileges, and disable this one. - - - If you cannot see a screen like this, it's possible that you - have problems with PHP instalation. When you installed the - Web, please check that PHP engine its running. Fist try to - access to the server IP with a browser. You must see the - Welcome Apache page. - Remember that alter installing the PHP and the PHP module for Apache you must stop and start the Server Apache. As an @@ -416,7 +335,7 @@ Pandora 1.2 uses JpGraph for viewing graphics. JpGraph is a - different project and has no relationship with Pandora, so you + different project and has nothing to do with Pandora, so you need to install it. You can find at http://www.aditus.nu/jpgraph/. Download last version (2.x), and place all .php