본문 바로가기

NCS/응용SW운영관리

Install ERP Server

In this lab, We are going to install webERP server to use a freeware version.

1. To install CentOS 6.8 minimal version on VMWare Workstation pro 12.

-- NIC : Bridged

-- Other : typical


To create soft link has useful to edit an interface Ethernet.

# ln -s /etc/sysconfig/network-scripts/ifcfg-eth0  /root/eth0

# vi /root/eth0

ONBOOT=yes

BOOTPROTO=static

IPADDR=192.168.42.250

NETMASK=255.255.255.0

GATEWAY=192.168.42.254

DNS1=168.126.63.1

#NM_control=yes


This command has to restart network service on changes network configuration.

# service network restart


2. We have  a windows machine already with installed Vmware workstation pro.

3. On a Centos, You should install the packages by following.

# yum -y  install wget  unzip  httpd  php  php-*  mysql-server  nano

4. To change temp directory

# cd /tmp


5. After changing to temp directory, You would download a zipped webERP in the tmp directory.

# wget https://nchc.dl.sourceforge.net/project/web-erp/webERP_4.13.1.zip


6. To unzip downloaded a zip file.

# unzip -d  ./  webERP_4.13.1.zip


7. To move the unzipped directory webERP

# mv /tmp/webERP   /var/www/


8. To start service mysqld

# service mysqld start


9. To configure the mysql environment by mysql_secure_installation command.

# /usr/bin/mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL

      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!



In order to log into MySQL to secure it, we'll need the current

password for the root user.  If you've just installed MySQL, and

you haven't set the root password yet, the password will be blank,

so you should just press enter here.


Enter current password for root (enter for none): Enter

OK, successfully used password, moving on...


Setting the root password ensures that nobody can log into the MySQL

root user without the proper authorisation.


Set root password? [Y/n] Y

New password: Enter new root password

Re-enter new password: once again Enter new root password

Password updated successfully!

Reloading privilege tables..

 ... Success!



By default, a MySQL installation has an anonymous user, allowing anyone

to log into MySQL without having to have a user account created for

them.  This is intended only for testing, and to make the installation

go a bit smoother.  You should remove them before moving into a

production environment.


Remove anonymous users? [Y/n] Y

 ... Success!


Normally, root should only be allowed to connect from 'localhost'.  This

ensures that someone cannot guess at the root password from the network.


Disallow root login remotely? [Y/n] Y

 ... Success!


By default, MySQL comes with a database named 'test' that anyone can

access.  This is also intended only for testing, and should be removed

before moving into a production environment.


Remove test database and access to it? [Y/n] Y

 - Dropping test database...

 ... Success!

 - Removing privileges on test database...

 ... Success!


Reloading the privilege tables will ensure that all changes made so far

will take effect immediately.


Reload privilege tables now? [Y/n] Y

 ... Success!


Cleaning up...




All done!  If you've completed all of the above steps, your MySQL

installation should now be secure.


Thanks for using MySQL!



10. To register startup menu has for service automatically loaded onto memory .

[root@localhost www]# chkconfig httpd on

[root@localhost www]# chkconfig mysqld on


11. To create info.php by nano will test for Apache service.

[root@localhost www]# nano /var/www/html/info.php

<?php

phpinfo();

?>

[root@localhost www]# service httpd restart

[root@localhost www]# service iptables stop


On Windows 7

We would connect to ERP server installed at Windows 7.

http://192.168.42.250

http://192.168.42.250/info.php


Add follow lines at last line

[root@localhost www]# vi /etc/httpd/conf/httpd.conf

 <VirtualHost *:80>

    DocumentRoot /var/www/webERP

    DirectoryIndex index.php

</VirtualHost>


Change value from SELINUX=enforced to SELINUX=disabled 

[root@localhost ~]# nano /etc/selinux/config

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

#     enforcing - SELinux security policy is enforced.

#     permissive - SELinux prints warnings instead of enforcing.

#     disabled - No SELinux policy is loaded.

SELINUX=disabled

# SELINUXTYPE= can take one of these two values:

#     targeted - Targeted processes are protected,

#     mls - Multi Level Security protection.

SELINUXTYPE=targeted


# chkconfig iptables off

# reboot


On Windows 

http://192.168.42.250/install/index.php

You will see webERP Installtion Wizard page right!


Change to 한국어 in Language section and Click NEXT STEP


We can see error message  like follow

오류 메시지 보고서 :

디렉토리 /var/www/webERP 웹 서버가 쓸 수 있어야합니다

디렉토리 /var/www/webERP/companies/ must be writable by web server 


[root@localhost ~]# chown -R apache:apache /var/www/webERP


On Windows 

http://192.168.42.250/install/index.php

Change Language to 한국어 and Click NEXT STEP


Fill in MySQL root password in 암호 on 데이타베이스 설정


Click 다음단계  and  Click 설치


Again enter : http://192.168.42.250/index.php


사용자 이름 : admin

암호 : weberp


You could see China Char don't worry

Can you see Demostration user on top? Click Demostration user

Change 한국어 at fourth line and click 수정

새비밀번호:nimda