OrangeHRM: Instalasi

From OnnoWiki
Jump to navigation Jump to search

Siapkan aplikasi pendukung

apt-get install lamp-server^ apache2 mysql-server libmysqlclient15-dev \
libphp-adodb libgd2-xpm libgd2-xpm-dev php5-mysql php5-gd
php5-curl php-pear unzip php5-xmlrpc libnet-ssleay-perl openssh-server catdoc \
libsyncml-dev libsyncml-utils php-pear php5-gd php5-imap php5-odbc php5-sqlite \
php5-pgsql apache2 mysql-server libmysqlclient15-dev libphp-adodb \
libgd2-xpm libgd2-xpm-dev php5-mysql php5-gd php5-curl php-pear \
php5-xmlrpc libnet-ssleay-perl tnef libphp-jpgraph

Download dari

http://sourceforge.net/projects/orangehrm/files/stable/

Lakukan

cp orangehrm-2.6.8.tar.gz /var/www/
cd /var/www/
tar zxvf orangehrm-2.6.8.tar.gz  Use the same Database User for OrangeHRM 
mv orangehrm-2.6.8 orangehrm2
chown -Rf www-data.www-data /var/www/orangehrm2/.htaccess
chmod -Rf 755 /var/www/orangehrm2/.htaccess 
chown -Rf www-data.www-data /var/www/orangehrm2/lib/confs/
chmod -Rf 755 /var/www/orangehrm2/lib/confs/
chown -Rf www-data.www-data /var/www/orangehrm2/lib/logs/
chmod -Rf 755 /var/www/orangehrm2/lib/logs/
chown -Rf www-data.www-data /var/www/orangehrm2/symfony/apps/orangehrm/config
chmod -Rf 755 /var/www/orangehrm2/symfony/apps/orangehrm/config
chown -Rf www-data.www-data /var/www/orangehrm2/symfony/cache
chmod -Rf 755 /var/www/orangehrm2/symfony/cache
chown -Rf www-data.www-data /var/www/orangehrm2/symfony/log
chmod -Rf 755 /var/www/orangehrm2/symfony/log

Edit php.ini

vi /etc/php5/apache2/php.ini 
session.gc_maxlifetime = 1440
memory_limit = 128M

Edit konfigurasi apache2

vi /etc/apache2/apache2.conf 
AccessFileName .htaccess
<Files ~ "^\.ht">
    Order allow,deny
    Allow from 127.0.0.0/8
    Deny from all
    Satisfy all
</Files>

Konfigurasi Database

mysql -u root -p123456
create database openhrm2; Use the same Database User for OrangeHRM 
grant ALL on root.* to openhrm22@localhost;
grant ALL on openhrm2.* to openhrm2@localhost identified by 'openhrm2';
grant ALL on openhrm2.* to openhrm2 identified by 'openhrm2';
exit

Restart Apache

/etc/init.d/apache2 restart

Selesaikan proses instalasi melalui Web

http://localhost/orangehrm2

Klik

[Next]
[I Accept]
Database Name 	                    orangehrm2
Privileged Database Username 	    root
Privileged Database User Password  123456	
OrangeHRM Database Username 	    orangehrm2
OrangeHRM Database User Password   orangehrm2
[Next]
[Next]
OrangeHRM Admin Username 	        admin
OrangeHRM Admin User Password 	        admin
Confirm OrangeHRM Admin User Password  admin
[Next]
[Install]
[Next]]
Last name
Company	
Email
[No thanks!]]

Pranala Menarik