آموزش نصب و نکات کاربردی (به صورت کلی):
کد PHP:
1.Preparing Server (1)
# yum install httpd postgresql postgresql-server postgresql-python php perl -y
2.Preparing Server (2)
# setup
Set Firewall off
Set Selinux off
3.Download IBSng
# wget http://space.dl.sourceforge.net/project/ibs/IBSng/IBSng-A1.24/IBSng-A1.24.tar.bz2
*you can use any IBSng link
4.Extract IBSng
# tar -xvjf IBSng-A1.24.tar.bz2 -C /usr/local
5.Install/Update Nano (Note Editor in Linux)
# yum install nano
# yum update nano
6.Start Postgresql
# service postgresql start
7.Open pg_hba.conf with Nano
# nano /var/lib/pgsql/data/pg_hba.conf
*Write this on top of the pg_hba.conf:
local IBSng ibs trust
8.Restart Postgresql
# service postgresql restart
9.Creat IBSng Database
# su - postgres
createdb IBSng
createuser ibs
createlang plpgsql IBSng
exit
10.Start IBSng Setup
# /./usr/local/IBSng/scripts/setup.py
1 Install
2 Test DB Connection and Continue
2 Compile Configuration and Continue
1 Import Tables and Continue
*Enter System password
1 Copy ibs.conf to '/etc/httpd/conf.d'
2 Chown apache directories to 'apache'
5 Continue
1 Copy logrotate Conf to /etc/logrotate.d
3 Continue
1 Copy Redhat init file to /etc/init.d
2 Set IBSng to start on reboot
b Back to main menu
x Exit
11.Start Services
# service httpd restart
# service postgresql restart
# service IBSng start
More Information :
For Admin Web Panel go to: http://server_ip_address/IBSng/admin
For User Web Panel go to: http://server_ip_address/IBSng/user
And to change your password go to this address:
http://server_ip_address/IBSng/admin/admins/change_password.php?username=system
Default Username: system
Default Password: Your entered password on installation
For starting IBSng later (ex. After reboot) use this command:
# service httpd start
# service postgresql start
# service IBSng start
How to Backup/Restore IBSng database:
# chmod 777 /root/
# su - postgres
For Backup use this command:
pg_dump IBSng > /root/IBSng.bak
exit
*For download backuped database file use Cuteftp or Fireftp in Firefox
And for Restore use this command:
psql IBSng < /root/IBSng.bak
Or:
psql -d IBSng -f /root/IBSng.bak
exit
*For upload backuped database file use Cuteftp or Fireftp in Firefox
*On a system that you want to database when your are installing IBSng do not go for the third step on Installation (Import Tables and Continue) instead use Continue
*Or if you already installed IBSng database, first you must clear and re-create database:
dropdb IBSng
createdb IBSng
*You can see database with this comment:
psql -l
*To clear your server cache use this command:
echo 3 > /proc/sys/vm/drop_caches