ERPNext Conference 2019* ERPNext.com Blog

Installtion of erpnext on centos 6.5


#1

hi, i’m having a hard time oh how to intsall erpnext on centos 6.5

i tried the easy way and the manual way but no luck.

i also tried downloading the virtual box image, but it won’t download successfully.

could anyone guide me on how to install erpnext on centos 6.5 and make it work?

fyi not that familiar with linux… please be patient.

getting this error when trying to install via easy way:

testing@localhost ~]$ sudo bash setup_frappe.sh --setup-production
[sudo] password for testing:
Installing for centos 6 amd64
In case you encounter an error, you can post on https://discuss.frappe.io

Adding centos mariadb repo
Installing packages for centos. This might take time…
Installing wkhtmltopdf
Installing supervisor
Starting supervisord:
Configuring CentOS services
Starting services
Adding frappe user
Installing frappe-bench
Setting up first site
Restarted supervisord
Traceback (most recent call last):
File “/usr/bin/bench”, line 9, in
load_entry_point(‘bench==0.92’, ‘console_scripts’, ‘bench’)()
File “/home/testing/bench-repo/bench/cli.py”, line 60, in cli
bench()
File “/usr/lib64/python2.7/site-packages/click/core.py”, line 700, in call
return self.main(*args, **kwargs)
File “/usr/lib64/python2.7/site-packages/click/core.py”, line 680, in main
rv = self.invoke(ctx)
File “/usr/lib64/python2.7/site-packages/click/core.py”, line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib64/python2.7/site-packages/click/core.py”, line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib64/python2.7/site-packages/click/core.py”, line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib64/python2.7/site-packages/click/core.py”, line 508, in invoke
return callback(*args, **kwargs)
File “/home/testing/bench-repo/bench/cli.py”, line 456, in setup_production
_setup_production(user=user)
File “/home/testing/bench-repo/bench/production_setup.py”, line 69, in setup_production
restart_service(‘nginx’)
File “/home/testing/bench-repo/bench/production_setup.py”, line 11, in restart_service
exec_cmd("{service_manager} {service} restart “.format(service_manager=‘service’, service=service))
File “/home/testing/bench-repo/bench/utils.py”, line 104, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: service nginx restart
[testing@localhost ~]$ rgs)
File “/home/testing/bench-repo/bench/cli.py”, line 456, in setup_production
_setup_production(user=user)
File “/home/testing/bench-repo/bench/production_setup.py”, line 69, in setup_production
restart_service(‘nginx’)
File “/home/testing/bench-repo/bench/production_setup.py”, line 11, in restart_service
exec_cmd(”{service_manager} {service} restart ".format(service_manager=‘service’, service=service))
File “/home/testing/bench-repo/bench/utils.py”, line 104, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: service nginx restart
-bash: syntax error near unexpected token )' [testing@localhost ~]$ File "/home/testing/bench-repo/bench/cli.py", line 456, in setup_production -bash: File: command not found [testing@localhost ~]$ _setup_production(user=user) -bash: syntax error near unexpected tokenuser=user’
[testing@localhost ~]$ File “/home/testing/bench-repo/bench/production_setup.py”, line 69, in setup_production
-bash: File: command not found
[testing@localhost ~]$ restart_service(‘nginx’)
-bash: syntax error near unexpected token 'nginx'' [testing@localhost ~]$ File "/home/testing/bench-repo/bench/production_setup.py", line 11, in restart_service -bash: File: command not found [testing@localhost ~]$ exec_cmd("{service_manager} {service} restart ".format(service_manager='service', service=service)) -bash: syntax error near unexpected token"{service_manager} {service} restart ".format’
[testing@localhost ~]$ File “/home/testing/bench-repo/bench/utils.py”, line 104, in exec_cmd
-bash: File: command not found
[testing@localhost ~]$ raise CommandFailedError(cmd)
-bash: syntax error near unexpected token `(’
[testing@localhost ~]$ bench.utils.CommandFailedError: service nginx restart
-bash: bench.utils.CommandFailedError:: command not found


#2

Please post output for nginx -t or sudo nginx -t


#3

Hi,

Read this post.


Installing ErpNext on CentOs 7 - Guide
Installing ErpNext on CentOs 7 - Guide