- You must also know the following things (setup will try to found them, but
- no garanty):
- - Host running MySQL server (generally localhost)
- - Port of MySQL server (generally 3306)
- - Path to Apache web server binary file (usually named httpd or apache or
- apache2)
- - Path to Apache main configuration file (usually named httpd.conf or
- apache.conf or apache2.conf)
- - Path to Apache configuration directory (usually named conf.d)
- - User account running Apache web server (usually apache or www-data)
- - Group of user account running Apache web server (usually the same as user
- account)
- - Version of Apache mod_perl
- - Where to put Communication server log directory (usually
- /var/log/ocsinventory-server)
- Using default setup,
- - Communication Server is installed as standard PERL module
- - Communication Server configuration file ocsinventory-server.conf is installed
- under Apache configuration directory, usually /etc/httpd/conf.d or
- /etc/apache[2]/conf.d
- - Communication Server logs are stored under directory
- /var/log/ocsinventory-server
- - PHP files are installed under directory
- /usr/share/ocsinventory-reports/ocsreports
- - Writable/cache directories "download" and "ipd" are created under directory
- /var/lib/ocsinventory-reports
- - Administration Server configuration file ocsinventory-reports.conf is
- installed under Apache configuration directory, usually /etc/httpd/conf.d or
- /etc/apache[2]/conf.d. It contains aliases for /ocsreports and /download URL.
- Trying to determine whitch OS or Linux distribution you use
- +----------------------------------------------------------+
- | Checking for Apache web server binaries ! |
- +----------------------------------------------------------+
- CAUTION: If upgrading Communication server from OCS Inventory NG 1.0 RC2 and
- previous, please remove any Apache configuration for Communication Server!
- Do you wish to continue ([y]/n)?y
- Assuming Communication server 1.0 RC2 or previous is not installed
- on this computer.
- Starting OCS Inventory NG Management server setup from folder /usr/local/src/OCSNG_UNIX_SERVER-2.0.2
- Storing log in file /usr/local/src/OCSNG_UNIX_SERVER-2.0.2/ocs_server_setup.log
- +----------------------------------------------------------+
- | Checking for database server properties... |
- +----------------------------------------------------------+
- Your MySQL client seems to be part of MySQL version 5.1.
- Your computer seems to be running MySQL 4.1 or higher, good
- Which host is running database server [localhost] ?
- OK, database server is running on host localhost
- On which port is running database server [3306] ?
- OK, database server is running on port 3306
- +----------------------------------------------------------+
- | Checking for Apache web server daemon... |
- +----------------------------------------------------------+
- Where is Apache daemon binary [/usr/sbin/httpd] ?
- OK, using Apache daemon /usr/sbin/httpd
- +----------------------------------------------------------+
- | Checking for Apache main configuration file... |
- +----------------------------------------------------------+
- Where is Apache main configuration file [/etc/httpd/conf/httpd.conf] ?
- OK, using Apache main configuration file /etc/httpd/conf/httpd.conf
- +----------------------------------------------------------+
- | Checking for Apache user account... |
- +----------------------------------------------------------+
- Which user account is running Apache web server [apache] ?
- OK, Apache is running under user account apache
- +----------------------------------------------------------+
- | Checking for Apache group... |
- +----------------------------------------------------------+
- Which user group is running Apache web server [apache] ?
- OK, Apache is running under users group apache
- +----------------------------------------------------------+
- | Checking for Apache Include configuration directory... |
- +----------------------------------------------------------+
- Setup found Apache Include configuration directory in
- /etc/httpd/conf.d/.
- Setup will put OCS Inventory NG Apache configuration in this directory.
- Where is Apache Include configuration directory [/etc/httpd/conf.d/] ?
- OK, Apache Include configuration directory /etc/httpd/conf.d/ found
- +----------------------------------------------------------+
- | Checking for PERL Interpreter... |
- +----------------------------------------------------------+
- [6/92]
- Found PERL Intrepreter at </usr/bin/perl>
- Where is PERL Intrepreter binary [/usr/bin/perl] ?
- OK, using PERL Intrepreter /usr/bin/perl
- Do you wish to setup Communication server on this computer ([y]/n)?y
- +----------------------------------------------------------+
- | Checking for Make utility... |
- +----------------------------------------------------------+
- OK, Make utility found at </usr/bin/make>
- +----------------------------------------------------------+
- | Checking for Apache mod_perl version... |
- +----------------------------------------------------------+
- Checking for Apache mod_perl version 1.99_22 or higher
- Checking for Apache mod_perl version 1.99_21 or previous
- Setup is unable to determine your Apache mod_perl version.
- Apache must have module mod_perl enabled. As configuration differs from
- mod_perl 1.99_21 or previous AND mod_perl 1.99_22 or higher, Setup must
- know which release Apache is using.
- You can find which release you are using by running the following command
- - On RPM enabled OS, rpm -q mod_perl
- - On DPKG enabled OS, dpkg -l libapache*-mod-perl*
- Enter 1 for mod_perl 1.99_21 or previous.
- Enter 2 for mod_perl 1.99_22 and higher.
- Which version of Apache mod_perl the computer is running ([1]/2) ?2
- OK, Apache is using mod_perl version 1.99_22 or higher
- +----------------------------------------------------------+
- | Checking for Communication server log directory... |
- +----------------------------------------------------------+
- Communication server can create detailled logs. This logs can be enabled
- by setting interger value of LOGLEVEL to 1 in Administration console
- menu Configuration.
- ....
- ....
- ....
- +----------------------------------------------------------+
- | OK, Communication server log directory created |
- | |
- | Now configuring Apache web server... |
- +----------------------------------------------------------+
- To ensure Apache loads mod_perl before OCS Inventory NG Communication Server,
- Setup can name Communication Server Apache configuration file
- 'z-ocsinventory-server.conf' instead of 'ocsinventory-server.conf'.
- Do you allow Setup renaming Communication Server Apache configuration file
- to 'z-ocsinventory-server.conf' ([y]/n) ?
- OK, using 'z-ocsinventory-server.conf' as Communication Server Apache configuration file
- Removing old communication server configuration to file /etc/httpd/conf.d//ocsinventory.conf
- Writing communication server configuration to file /etc/httpd/conf.d//z-ocsinventory-server.conf
- +----------------------------------------------------------+
- | OK, Communication server setup sucessfully finished |
- | |
- | Please, review /etc/httpd/conf.d//z-ocsinventory-server.conf
- | to ensure all is good. Then restart Apache daemon. |
- +----------------------------------------------------------+
- Do you wish to setup Administration Server (Web Administration Console)
- on this computer ([y]/n)?
- +----------------------------------------------------------+
- | Checking for Administration Server directories... |
- +----------------------------------------------------------+
- CAUTION: Setup now install files in accordance with Filesystem Hierarchy
- Standard. So, no file is installed under Apache root document directory
- (Refer to Apache configuration files to locate it).
- If you're upgrading from OCS Inventory NG Server 1.01 and previous, YOU
- MUST REMOVE (or move) directories 'ocsreports' and 'download' from Apache
- root document directory.
- If you choose to move directory, YOU MUST MOVE 'download' directory to
- Administration Server writable/cache directory (by default
- /var/lib/ocsinventory-reports), especialy if you use deployement feature.
- Do you wish to continue ([y]/n)?
- Assuming directories 'ocsreports' and 'download' removed from
- Apache root document directory.
- Where to copy Administration Server static files for PHP Web Console
- [/usr/share/ocsinventory-reports] ?
- OK, using directory /usr/share/ocsinventory-reports to install static files
- Where to create writable/cache directories for deployement packages,
- IPDiscover and SNMP [/var/lib/ocsinventory-reports] ?
- ....
- ....
- ....
- +----------------------------------------------------------+
- | OK, Administration server installation finished |
- | |
- | Please, review /etc/httpd/conf.d//ocsinventory-reports.conf
- | to ensure all is good and restart Apache daemon. |
- | |
- | Then, point your browser to http://server//ocsreports
- | to configure database server and create/update schema. |
- +----------------------------------------------------------+
- Setup has created a log file /usr/local/src/OCSNG_UNIX_SERVER-2.0.2/ocs_server_setup.log. Please, save this file.
- If you encounter error while running OCS Inventory NG Management server,
- we can ask you to show us his content !
- DON'T FORGET TO RESTART APACHE DAEMON !
- Enjoy OCS Inventory NG