Created
December 19, 2020 05:56
-
-
Save asif633/1272a355c58042327f894f384d440455 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get New Instance | |
apt-get update -y | |
apt-get upgrade -y | |
apt-get install libffi-dev python3-pip python3-dev python3-testresources libssl-dev wkhtmltopdf gcc g++ make -y | |
curl -sL https://deb.nodesource.com/setup_12.x | bash - | |
apt-get install nodejs redis-server -y | |
node --version | |
npm install -g yarn | |
apt-get install mariadb-server mariadb-client -y | |
mysql_secure_installation | |
mysql -u root -p | |
> USE mysql; | |
> UPDATE user SET plugin='mysql_native_password' WHERE User='root'; | |
> FLUSH PRIVILEGES; | |
> EXIT; | |
nano /etc/mysql/mariadb.conf.d/50-server.cnf | |
[mysqld] | |
innodb-file-format=barracuda | |
innodb-file-per-table=1 | |
innodb-large-prefix=1 | |
character-set-client-handshake = FALSE | |
character-set-server = utf8mb4 | |
collation-server = utf8mb4_unipre_ci | |
collation-server = utf8mb4_general_ci | |
replace with collation-server = utf8mb4_unicode_ci | |
systemctl restart mariadb | |
useradd -m -s /bin/bash erpnext | |
passwd erpnext | |
usermod -aG sudo erpnext | |
su - erpnext | |
nano ~/.bashrc | |
add -- PATH=$PATH:~/.local/bin/ | |
source ~/.bashrc | |
su - erpnext | |
sudo mkdir /opt/bench | |
sudo chown -R erpnext:erpnext /opt/bench | |
cd /opt/bench | |
git clone https://github.com/frappe/bench bench-repo | |
pip3 install -e bench-repo | |
bench init erpnext | |
cd to erpnext | |
bench get-app erpnext https://github.com/frappe/erpnext | |
bench new-site erpnext.example.com | |
bench --site erpnext.example.com install-app erpnext | |
sudo apt-get -y install supervisor nginx | |
sudo pip3 install frappe-bench | |
cd /opt/bench/erpnext | |
sudo /home/erpnext/.local/bin/bench setup production erpnext | |
Time Out Increase | |
-bench config http_timeout 6000 | |
-bench setup supervisor | |
-bench setup nginx | |
-sudo supervisorctl reload | |
-sudo service nginx reload | |
https://ghulamustafa.com/2020/09/15/how-to-install-erpnext-on-ubuntu-20-04/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment