OCS Inventory NG Server
Z wiki linux-user
(→Instalacja OCS Inventory NG Server 2) |
|||
Linia 27: | Linia 27: | ||
oraz | oraz | ||
/etc/init.d/httpd start | /etc/init.d/httpd start | ||
− | chkconfig --level 345 httpd on | + | chkconfig --level 345 httpd on |
+ | == Instalacja dodatkowych repozytoriów == | ||
+ | Teraz doinstalujemy repozytorium ''EPEL'', które jest nam potrzebne do zainstalowania niezbędnego oprogramowania w tym celu wydajemy polecenie | ||
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm | rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm | ||
Następnie instalujemy | Następnie instalujemy | ||
Linia 34: | Linia 36: | ||
yum install -y perl-XML-Simple perl-Compress-Zlib perl-DBI perl-DBD-MySQL perl-Net-IP perl-XML-Entities perl-Apache-DBI | yum install -y perl-XML-Simple perl-Compress-Zlib perl-DBI perl-DBD-MySQL perl-Net-IP perl-XML-Entities perl-Apache-DBI | ||
perl-Apache2-SOAP perl-SOAP-Lite mod_perl== Konfiguracja PHP == | perl-Apache2-SOAP perl-SOAP-Lite mod_perl== Konfiguracja PHP == | ||
− | |||
== Konfiguracja PHP == | == Konfiguracja PHP == | ||
Linia 58: | Linia 59: | ||
tar -zxvf OCSNG_UNIX_SERVER-2.0rc1.tar.gz | tar -zxvf OCSNG_UNIX_SERVER-2.0rc1.tar.gz | ||
mv OCSNG_UNIX_SERVER-2.0rc1 ocs | mv OCSNG_UNIX_SERVER-2.0rc1 ocs | ||
− | cd ocs/i instalujemy serwer wydając polecenie | + | cd ocs/ |
+ | i instalujemy serwer wydając polecenie | ||
sh setup.sh | sh setup.sh | ||
Linia 64: | Linia 66: | ||
Poniżej przedstawiam instalator | Poniżej przedstawiam instalator | ||
If you leave the question in blank, it will select the default option. | If you leave the question in blank, it will select the default option. | ||
− | |||
Do you wish to continue ([y]/n)?y | Do you wish to continue ([y]/n)?y | ||
− | |||
Your MySQL client seems to be part of MySQL version 5.0. | Your MySQL client seems to be part of MySQL version 5.0. | ||
Your computer seems to be running MySQL 4.1 or higher, good ;-) | Your computer seems to be running MySQL 4.1 or higher, good ;-) | ||
Which host is running database server [localhost] ?localhost | Which host is running database server [localhost] ?localhost | ||
− | |||
On which port is running database server [3306] ? 3306 | On which port is running database server [3306] ? 3306 | ||
− | |||
Where is Apache daemon binary [/usr/sbin/httpd] ? | Where is Apache daemon binary [/usr/sbin/httpd] ? | ||
− | |||
Where is Apache main configuration file [/etc/httpd/conf/httpd.conf] ? | Where is Apache main configuration file [/etc/httpd/conf/httpd.conf] ? | ||
− | |||
Which user account is running Apache web server [apache] ? | Which user account is running Apache web server [apache] ? | ||
− | |||
Which user group is running Apache web server [apache] ? | Which user group is running Apache web server [apache] ? | ||
− | |||
Where is Apache Include configuration directory [/etc/httpd/conf.d/] ? | Where is Apache Include configuration directory [/etc/httpd/conf.d/] ? | ||
− | |||
Where is PERL Intrepreter binary [/usr/bin/perl] ? | Where is PERL Intrepreter binary [/usr/bin/perl] ? | ||
Do you wish to setup Communication server on this computer ([y]/n)?y | Do you wish to setup Communication server on this computer ([y]/n)?y | ||
− | |||
Where to put Communication server log directory [/var/log/ocsinventory-server] ? | Where to put Communication server log directory [/var/log/ocsinventory-server] ? | ||
− | |||
OCS setup.sh can install perl module from packages for you | OCS setup.sh can install perl module from packages for you | ||
The script will use the native package from your operating system like apt or rpm | The script will use the native package from your operating system like apt or rpm | ||
Do you wish to continue (y/[n])? y | Do you wish to continue (y/[n])? y | ||
− | |||
To ensure Apache loads mod_perl before OCS Inventory NG Communication Server, | To ensure Apache loads mod_perl before OCS Inventory NG Communication Server, | ||
− | |||
Setup can name Communication Server Apache configuration file | Setup can name Communication Server Apache configuration file | ||
'z-ocsinventory-server.conf' instead of 'ocsinventory-server.conf'. | 'z-ocsinventory-server.conf' instead of 'ocsinventory-server.conf'. | ||
Do you allow Setup renaming Communication Server Apache configuration file | Do you allow Setup renaming Communication Server Apache configuration file | ||
to 'z-ocsinventory-server.conf' ([y]/n) ?y | to 'z-ocsinventory-server.conf' ([y]/n) ?y | ||
− | |||
Do you wish to setup Administration Server (Web Administration Console) | Do you wish to setup Administration Server (Web Administration Console) | ||
on this computer ([y]/n)?y | on this computer ([y]/n)?y | ||
− | |||
CAUTION: Setup now install files in accordance with Filesystem Hierarchy | CAUTION: Setup now install files in accordance with Filesystem Hierarchy | ||
Standard. So, no file is installed under Apache root document directory | Standard. So, no file is installed under Apache root document directory | ||
Linia 112: | Linia 99: | ||
/var/lib/ocsinventory-reports), especialy if you use deployement feature. | /var/lib/ocsinventory-reports), especialy if you use deployement feature. | ||
Do you wish to continue ([y]/n)?y | Do you wish to continue ([y]/n)?y | ||
− | |||
Where to copy Administration Server static files for PHP Web Console | Where to copy Administration Server static files for PHP Web Console | ||
[/usr/share/ocsinventory-reports] ? | [/usr/share/ocsinventory-reports] ? | ||
− | |||
Where to create writable/cache directories for deployement packages, | Where to create writable/cache directories for deployement packages, | ||
IPDiscover and SNMP [/var/lib/ocsinventory-reports] ? | IPDiscover and SNMP [/var/lib/ocsinventory-reports] ? | ||
+ | |||
+ | == Konfiguracja OCS Inventory NG Server 2 == | ||
+ | |||
+ | Tworzymy bazę danych dla serwera | ||
+ | |||
+ | Wchodzimy do ''mysqla'' | ||
+ | mysql -u root -p | ||
+ | password: | ||
+ | Następnie tworzymy bazę danych nazwaną ocsweb oraz dajemy prawa do tej bazy dla usera ocs o haśle ocs | ||
+ | CREATE DATABASE ocsweb; | ||
+ | GRANT ALL ON ocsweb.* to 'ocs'@'localhost' identified by 'ocs'; | ||
+ | Jeżeli chcesz możesz zmienić parametry takie jak nazwa bazy danych, użytkownik czy hasło. | ||
+ | Po poprawnym stworzeniu bazy danych wydajemy polecenie | ||
+ | exit | ||
+ | i przechodzimy do przeglądarki internetowej wpisując adres | ||
+ | http://adres-ip-serwera/ocsreports/ | ||
+ | Wypełniamy formularz, podając dane bazy danych. A po poprawnej konfiguracji wchodzimy jeszcze raz na adres | ||
+ | http://adres-ip-serwera/ocsreports/ | ||
+ | Domyślnym użytkownikiem jest "''admin''" o haśle "''admin''" co powinno być jak najszybciej zmienione . | ||
+ | |||
+ | Na końcu kasujemy niepotrzebne pliki: | ||
+ | rm -f /usr/share/ocsinventory-reports/ocsreports/install.php | ||
+ | Teraz powinieneś mieć w pełni działający server '''OCS Inventory'''. | ||
+ | |||
+ | <br /><google1 style="4"></google1> |