-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Install ERPNext on RedHat based systems
Anand Doshi edited this page Jun 24, 2013
·
15 revisions
sudo su
cd ~
yum update python -y
yum install python-setuptools MySQL-python httpd mysql mysql-server mysql-devel git memcached ntp vim -y
easy_install pip
pip install pytz python-dateutil jinja2 markdown2 termcolor python-memcached requests chardet dropbox google-api-python-client pygeoip
service httpd start
service mysqld start
service ntpd start
mysqladmin -u root password [NEW PASSWORD]
vim /etc/sysconfig/memcached
- change user to the apache user, change the cache size if desired (depending on available memory), save the file
service memcached start
chkconfig --level 2345 mysqld on
chkconfig --level 2345 httpd on
chkconfig --level 2345 memcached on
chkconfig --level 2345 ntpd on
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm -i http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
yum install htop screen -y
--
If you are using CPanel, you are likely to face perl dependency issues when installing git. To install git in this case, follow this procedure:
-
vim /etc/yum.conf
, remove perl* from exclude list and save the file yum install git -y
-
vim /etc/yum.conf
, add perl* back to exclude list and save the file
CPanel users should follow these steps to set the apache configuration for ERPNext:
vim /etc/httpd/conf/includes/post_virtualhost_2.conf
- add the line
Include [PATH TO ERPNEXT CONF FILE]
(example: /var/www/erpnext.conf) and save the file -
vim [PATH TO ERPNEXT CONF FILE]
, set the apache configuration for ERPNext and save it service httpd restart
The mysql root password may be found at /root/.my.cnf