This is my ubuntu server http://82.196.0.190/ which I setup on digitalocean. Actually in the root I have setup the wordpress, and through the SSH, I have installed erpNext. So I am confused now that how I can open the erpnext in browser, because the url above is only pointing to the wordpress. Also I tried by adding 8080 at the end, even it is not working.
Let me provide you path where it has been installed :
WordPress installed at /var/www/html
ErpNext may be installed at /home/frappe
Please check the result of wget command :
root@corewaysolution:/# wget http://127.0.0.1:8000
–2016-03-09 08:06:47-- http://127.0.0.1:8000/
Connecting to 127.0.0.1:8000… connected.
HTTP request sent, awaiting response… 404 NOT FOUND
2016-03-09 08:06:47 ERROR 404: NOT FOUND.
Hey one more thing, I use this URL by checking my nginx configuration file, http://82.196.0.190:3000/
it is giving me error like
Error: ENOENT, stat ‘/home/frappe/frappe-bench/sites/index.html’
seems there are many approaches to this matter … here is mine:
I think there is a bench command that can change the port of nginx. This actually results into an entry in the site_config.json of your site. I’ll try to find the topic and post details in a bit
…
… [this is the topic I meant][1]
bench set-nginx-port [sitename] [new-port-number]
generally: I wasn’t sure whether it’s the best practice to run wordpress and ERPNext on the same physical or virtual server. Probably a dockerized ERPNext solution would be a good thing for such. Unfortunately that doesn’t exist yet.
[1]: How to stop bench - #8 by revant_one
If you don’t want to setup a reverse proxy, you could change the listening IP of your gunicorn process in supervisord.conf file. supervisord.conf should contain something like “command= ... /env/bin/gunicorn -b 127.0.0.1:8000 -w 2 -t ...”
You could change 127.0.0.1 to your public IP (82.196.0.190). And then restart your gunicorn process:
supervisorctl restart frappe:frappe-web
Note: this is not suitable for a production setup. Only for debug and test.