This question has been flagged
2 Replies
22126 Views

Im using CamptoCamp GeoEngine OpenRP 6.1 v

I want to change port 8069 to another port. It seems conf file , what is the procedure and which file i have to change. Is there is any build and Setup procedure like adempiere .

Avatar
Discard
Best Answer

When you start the server, pass in the xmlrpc-port manually as a different value, or just edit it in the server conf file.

./openerp-server -c server.conf --xmlrpc-port=9069

# or in your conf file
xmlrpc_port = 9069

If you want to access on port 80 or 443 (SSL) to avoid the port numbers entirely, you may want to take a different approach. Port 80 can be done by leaving OpenERP running at 8069, then adding in an iptables rule to forward traffic from 80 to 8069. This bash script does the trick for me, just make sure you change eth0 if needed:

#!/bin/bash
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069
iptables-save

If you want to run on HTTPS using port 443, I'd recommend a reverse proxy running outside of OpenERP for that. This is a pretty solid guide that I've used to set that up: http://www.vionblog.com/openerp-reverse-proxy-using-nginx-server/

Avatar
Discard
Author

It works, xmlrpc_port = 8085 in openerp.cfg file.

xmlrpc_port works for odoo 8 as well.

Best Answer

Go to the /opt/openerp/server/openerp/tools/ and open the "config.py" file and chnage the following line:

group.add_option("--xmlrpc-port", dest="xmlrpc_port", my_default=8069,

Chnage the 8069 port number to port you wish. And then save the file and restart the OpenERP server.

Avatar
Discard