Install ERPNEXT in Ubuntu
By Robby
Step 1:
Removed all mysql and maria db package using apt-get remove.
$ sudo apt-get purge mysql*
$ sudo apt-get autoremove
$ sudo apt-get autoclean
$ sudo apt-get install mariadb-server
Restart mysql
$ /etc/init.d/mysql start
Step 2:
https://github.com/frappe/bench#easy-install
$ wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
$ sudo python install.py --develop
Bench will be installed successfully but it will say ERPNext installed successfully.
$ bench new-site sitename
it will throw error for Maria DB
Follow the fix here.
https://askubuntu.com/questions/705458/ubuntu-15-10-mysql-error-1524-unix-socketError
Error MariaDB is not properly configured to use the Barracuda storage engine
Creation of your site – sitename failed because MariaDB is not properly
configured to use the Barracuda storage engine.
Please add the settings below to MariaDB’s my.cnf, restart MariaDB then
run `bench new-site sitename` again.
/etc/init.d/mysql stop
[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
https://mariadb.com/kb/en/mariadb/configuring-mariadb-with-mycnf/
sriganesh@sriganesh:/etc/mysql$ sudo nano my.cnf
add the above lines to this file save it
$ /etc/init.d/mysql start
Step 3:
$ bench new-site sitename
created new instance of ERPNext
follow command here. https://github.com/frappe/bench#basic-usage
$ bench get-app erpnext https://github.com/frappe/erpnext
$ bench --site sitename install-app erpnext
$ bench start
Step 4:
Now open this link in Chrome :
http://localhost:8000
Add only one item and uncheck all the items we sell this item checkbox.
Don’t add any sample items and website for this project.
And the Result is …
Congratulations … ERPNEXT is installed