ERPNEXT Version-15 Installation on Ubuntu 22.04 (Window 10 WSL)
Thu Feb 08 2024 11:46:21 GMT+0000 (Coordinated Universal Time)
Saved by @Taimoor
Update Your Ubuntu Operating System: ------------------------------------ Step-1 //Install GIT// sudo apt-get install git Step-2 //Install Python// sudo apt-get install python3-dev Step-3 sudo apt-get install python3-setuptools python3-pip Step-4 //Install Python Virtual Enviroment// sudo apt-get install virtualenv sudo apt install python3.10-venv Step-5 //Install Software Properties Common// sudo apt-get install software-properties-common Step-6 // Install MYSQL Server// sudo apt install mariadb-server sudo service mariadb start sudo service mariadb status sudo mysql_secure_installation Step-7 //Install Other Package// sudo apt-get install libmysqlclient-dev --------------------------- Step-8 // Setup the Server// sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf //--Empty or Clear Completly the CNF File and Copy the bellow Code and Paste it.....// //Ctrl+s --- To Save file. //Ctrl+x --- To Exit/Close the file. ================================================= ------------------------------------------------- [server] user = mysql pid-file = /run/mysqld/mysqld.pid socket = /run/mysqld/mysqld.sock basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp lc-messages-dir = /usr/share/mysql bind-address = 127.0.0.1 query_cache_size = 16M log_error = /var/log/mysql/error.log [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_unicode_ci [mysql] default-character-set = utf8mb4 ------------------------------------------------- ================================================= ------------------------------------------------- Step-9 //Restart SQL// sudo service mysql restart sudo service mariadb restart Step-10 // Install Redis Server// sudo apt-get install redis-server Step-11 // Install Curl// sudo apt install curl curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash source ~/.profile Step-12 // Install Node// nvm install 18 nvm install 20 nvm install 21 Step-13 // Install NPM// sudo apt-get install npm Step-14 // Install Yarn// sudo npm install -g yarn (if error than install followning command) npm install -g npm@latest npm install -g yarn Step-15 // Install PDF// sudo apt-get install xvfb libfontconfig wkhtmltopdf Step-16 // Install Frappe-Bench// sudo -H pip3 install frappe-bench bench --version Step-17 // Initialize/Install Frappe-Bench// sudo pip install --upgrade pip //bench init frappe-bench --frappe-branch version-15 --python /usr/bin/python3.10 ------------------------------------------ bench init frappe-bench --frappe-branch version-15 or bench init frappe-bench or (For Beta Installation) bench init frappe-bench --frappe-branch version-15-beta ------------------------------------------- cd frappe-bench/ bench start Step-18 // create a site in frappe bench// bench new-site site1.local bench use site1.local Step-19 //Install Payment Module// bench get-app payments bench --site site1.local install-app payments Step-20 //Download ERPNExt// bench get-app erpnext --branch version-15 or (For Beta Installation) bench get-app erpnext --branch version-15-beta //---OR----// bench get-app https://github.com/frappe/erpnext --branch version-15 bench get-app https://github.com/frappe/erpnext --branch version-15-beta Step-21 //Install ERPNExt// bench --site site1.local install-app erpnext Step-22 //BENCH START// bench start ------------------------------------------------- ------------------------------------------------- INSTALL HRMS ------------- Step-22 //Download & Install HRMS // To Install the Latest Version: Latest Vesion is Version-16.xxx bench get-app hrms or To Install Version-15 bench get-app hrms --branch version-15 bench --site site1.local install-app hrms ----------------------------------------- INSTALL LOAN / LENDING ---------------------- Step-23 //Download Lending/Loan App// bench get-app lending bench --site site1.local install-app lending -------------------------------------------- // IF ERROR AFTER HRM INSTALLATION// bench update --reset //IF ERROR Updating...// //Disable maintenance mode bench --site site1.local set-maintenance-mode off INSTALL EDUCATION MODULE ------------------------ Step-24 //Install Education Module// bench get-app education bench --site site1.local install-app education ---------------------------------------------- INSTALL CHAT APP --------------- Step-25 bench get-app chat bench --site site1.local install-app chat ----------------------------------------- INSTALL Print Designer ---------------------- //Please note that print designer is only compatible with develop and V15 version.// bench start bench new-site print-designer.test bench --site print-designer.test add-to-hosts bench get-app https://github.com/frappe/print_designer bench --site print-designer.test install-app print_designer ------- http://print-designer.test:8000/ http://print-designer.test:8000/app/print-designer/ ----------------------- INSTALL INSIGHTS ---------------- bench start bench new-site insights.test bench --site insights.test add-to-hosts bench get-app https://github.com/frappe/insights bench --site insights.test install-app insights ------- http://insights.test:8000/insights ----------------------------------------------- // IF ERROR// bench update --reset Step //Disable maintenance mode bench --site site1.local set-maintenance-mode off _________________________________________________ //WARN: restart failed: couldnot find supervisorctl in PATH// sudo apt-get install supervisor sudo nano /etc/supervisor/supervisord.conf [inet_http_server] port = 127.0.0.1:9001 username = your_username password = your_password sudo nano /etc/supervisor/supervisord.conf [program:supervisord] command=/usr/bin/supervisord -c /etc/supervisor/supervisord.conf autostart=true autorestart=true redirect_stderr=true environment=PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/path/to/your/virtualenv/bin" sudo service supervisor restart //Check Supervisor Status:// sudo service supervisor status sudo service supervisor start which supervisorctl //Check Permissions:// sudo usermod -aG sudo your_username supervisorctl status //Activate Virtual Environment// source /path/to/your/virtualenv/bin/activate //supervisorctl status// sudo supervisorctl status cd ~/frappe-bench bench restart
Comments