OCS Inventory NG Server

Z wiki linux-user
Skocz do: nawigacji, wyszukiwania
Linia 13: Linia 13:
 
*perl
 
*perl
  
== Instalacja serwera Apache ==Instalacja serwera stron www '''apache''', zostałą zademonstrowana w tym howto [[apache]]
+
== Instalacja serwera Apache ==
 +
Instalacja serwera stron www '''apache''', zostałą zademonstrowana w tym howto [[apache]]
 +
 
 +
Instalacja serwera MySQL
 +
Instalacja serwera [[MySQL|mysql]] została pokazana w howto [[MySQL]]
 +
Jeżeli nie mamy zazinstalowanych pakietów wymienionych poniżej to dociągamy je yum'em
 +
 
 +
yum install php-mysql php-pecl-zip php-gd
 +
 
 +
Jeżeli mamy już wszystko zainstalowane to startujemy serwer '''mysql''' jak i '''httpd'''
 +
/etc/init.d/mysqld start
 +
chkconfig --level 345 mysqld on
 +
oraz
 +
/etc/init.d/httpd start
 +
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
 +
Następnie instalujemy
 +
 
 +
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 ==
 +
 
 +
 
 +
== Konfiguracja PHP ==
 +
 
 +
 
 +
Edytujemy plik ''/etc/php.ini'' i zmieniamy poniższe opcje, które spowodują możliwość przetwarzania większych plików przez php
 +
 
 +
vim /etc/php.ini post_max_size = 200M
 +
upload_max_filesize = 200M
 +
 
 +
 
 +
Po tych zmianach konieczne jest zrestartowanie serwera '''httpd'''
 +
 
 +
/etc/init.d/httpd restart
 +
 
 +
== Instalacja OCS Inventory NG Server 2 ==
 +
 
 +
Na początku ściągniemy i rozpakujemy paczke z '''OCS Inventory''' (przyjmuję, że głównym katalogiem stron www jest ''/var/www/html'')
 +
cd /var/www/html
 +
wget http://launchpad.net/ocsinventory-server/stable-2.0/2.0rc1/+download/OCSNG_UNIX_SERVER-2.0rc1.tar.gz
 +
 
 +
Następnie rozpakujemy paczkę
 +
tar -zxvf OCSNG_UNIX_SERVER-2.0rc1.tar.gz
 +
mv OCSNG_UNIX_SERVER-2.0rc1 ocs
 +
cd ocs/i instalujemy serwer wydając polecenie
 +
sh setup.sh
 +
 
 +
Instalator jest dość przyjazny i w sumie prowadzi nas za rączkę, w 90 procentach klikamy jedynie na ''enter'' wybierając domyślne opcje.
 +
Poniżej przedstawiam instalator
 +
If you leave the question in blank, it will select the default option.
 +
 
 +
Do you wish to continue ([y]/n)?y
 +
 
 +
Your MySQL client seems to be part of MySQL version 5.0.
 +
Your computer seems to be running MySQL 4.1 or higher, good ;-)
 +
Which host is running database server [localhost] ?localhost
 +
 
 +
On which port is running database server [3306] ? 3306
 +
 
 +
Where is Apache daemon binary [/usr/sbin/httpd] ?
 +
 
 +
Where is Apache main configuration file [/etc/httpd/conf/httpd.conf] ?
 +
 
 +
Which user account 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 PERL Intrepreter binary [/usr/bin/perl] ?
 +
Do you wish to setup Communication server on this computer ([y]/n)?y
 +
 
 +
Where to put Communication server log directory [/var/log/ocsinventory-server] ?
 +
 
 +
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
 +
Do you wish to continue (y/[n])? y
 +
 
 +
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) ?y
 +
 
 +
Do you wish to setup Administration Server (Web Administration Console)
 +
on this computer ([y]/n)?y
 +
 
 +
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)?y
 +
 
 +
Where to copy Administration Server static files for PHP Web Console
 +
[/usr/share/ocsinventory-reports] ?
 +
 
 +
Where to create writable/cache directories for deployement packages,
 +
IPDiscover and SNMP [/var/lib/ocsinventory-reports] ?

Wersja z 17:53, 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