OCS Inventory NG Server

Z wiki linux-user
Skocz do: nawigacji, wyszukiwania
Linia 64: Linia 64:
 
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 97:
 
  /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'''.

Wersja z 17:54, 16 kwi 2012

Osobiste
Przestrzenie nazw

Warianty
Działania
Nawigacja
Narzędzia


Sponsor serwisu

Firma informatyczna ITProjek Bydgoszcz usługi informacztyczne, serwery, linux, windows, strony www, hosting, sieci komputerowe, system archiwizacji danych