Sunday, January 6, 2019

Step by Step instalasi OCS NG

·       Step by Step instalasi OCS NG

Info : File yang di gunakan “Ocsngunix server 2.1” & Ubuntu server 12.4 x64
http://www.ocsinventory-ng.org/en/download/download-server.html
1.      Update & Upgrade Ubuntu
root@ocs2:~#   apt get update
root@ocs2:~#   apt get upgrade
2.      Install Apache
root@ocs2:~#   apt-get install apache2
3.      Install Mysql&Phymyadmin
root@ocs2:~#   apt-get install mysql-server phpmyadmin
Pilih Y untuksemua option
password user root di mysql
New password for the MySQL "root" user: 
Repeat password for the MySQL "root" user:
Pilih Apache untukphpmyadmin
Web server to reconfigure automatically:  [ *] apache2
Configure database for phpmyadmin with dbconfig-common?<Yes>
Masukan password untuk  Administrator Phpmyadmin
Password of the database's administrative user:
password untuk connection mysql&phpmyadmin(*password harussamadengan password root mysql)
MySQL application password for phpmyadmin:
4.      Install paket-paket yang dibutuhkan
root@ocs2:~#   apt-get install libxml-simple-perllibio-compress-perlperllibdbi-perllibdbd-mysql-perllibapache-dbi-perllibnet-ip-perllibsoap-lite-perl make
5.      Download
Masukke drive opt
Download ocs server (OCSNG_UNIX_SERVER-2.1.tar.gz ) di 192.168.77.2/ocs
root@ocs2:~#   cd /opt
root@ocs2:/opt#w3m 192.168.77.2/ocs
Pilih file OCSNG_UNIX_SERVER-2.1.tar.gz
Untukkeluardari menu pencetCtrl+Wà Q àY
Ataubisa download lansungdengangwget
wgethttps://launchpad.net/ocsinventory-server/stable-2.1/2.1/+download/OCSNG_UNIX_SERVER-2.1.tar.gz
6.      Extract file ocs
Extract file yang barusan di download (OCSNG_UNIX_SERVER-2.1.tar.gz)
root@ocs2:/opt#tar zxvf OCSNG_UNIX_SERVER-2.1.tar.gz
7.      Install OCS
Masukke drive OCSNG_UNIX_SERVER-2.1, laluketik setup
root@ocs2:/opt# cd OCSNG_UNIX_SERVER-2.1
root@ocs2:/opt/OCSNG_UNIX_SERVER-2.1#./setup.sh
Tekan enter untuksemua (*default), sampaiselesai
Do you wish to continue ([y]/n)?
Which host is running database server [localhost] ?
DON'T FORGET TO RESTART APACHE DAEMON !

Enjoy OCS Inventory NG ;-)
8.      Restart Apache
root@ocs2:/opt/OCSNG_UNIX_SERVER-2.1# service apache2 restart
 * Restarting web server                                                                              [ OK ]
root@ocs2:/opt/OCSNG_UNIX_SERVER-2.1#
9.      Lanjutkaninstalasiocs via browser
site bisa di lihat di http://[ip-server]/ocsreports/
MySQL login: root
MySQL password:***** (masukan password root mysql)
Name of Database:ocsweb
MySQL HostName:localhost
Click Send
10.  Instalasi Completed,
site bisa di lihat di http://[ip-server]/ocsreports/
Default user/password : admin/admin
11.  Repair pesen error
·        The default login/password is activate on OCS-NG GUI
Rubah password admin Via browser masukan address berikut
http://[ip-server]/ocsreports/index.php?function=account_config&head=1
·        The default SQL login/password is activate on your database: ocsweb
Rubah mysql password untukuser ‘ocs’ mengunakanphpmyadmin di browser
Site http://[ip-server]/phpmyadmin (*masukmengunakan user ‘root’)
Padakolomkiripilih database mysql, Pada tab pilih SQL
ketiksyntacberikutuntuk update &Eksekusi
Update `user`  SET  `Password` = PASSWORD(  '12345' ) WHERE user =  'ocs'
Balikke terminal/putty ketikan command berikutEdit user & password dbconfig.inc.php
root@ocs2:~#   nano /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php
define("COMPTE_BASE","root");
define("PSWD_BASE","password");
Edit user & password z-ocsinventory-server.conf
root@ocs2:~#   nano /etc/apache2/conf.d/z-ocsinventory-server.conf
  # User allowed to connect to database
PerlSetEnv OCS_DB_USER root
  # Password for user
PerlSetVar OCS_DB_PWD password
·        Your install.php exists in your installation directory.
root@ocs2:~# rm /usr/share/ocsinventory-reports/ocsreports/install.php
Restart mysql
root@ocs2:~#   service mysql restart



No comments:

Post a Comment