2.1 KiB
2.1 KiB
_label |
---|
ERPNext Pre-requisites for Red Hat systems (CentOS, Fedora) |
If not root user
sudo su
Installing Pre-Requisites
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]
memcached
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
set services to run when machine starts
chkconfig --level 2345 mysql on
chkconfig --level 2345 httpd on
chkconfig --level 2345 memcached on
chkconfig --level 2345 ntpd on
Other useful programs
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
--
CPanel Users
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 fileyum 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 itservice httpd restart
The mysql root password may be found at /root/.my.cnf