This question has been flagged
4 Replies
2950 Views

hi,

I want to know if i can change the port openerp once already installed, because i did default intallation whit the port 8069 and now i want change it.

How I can do it?

Avatar
Discard
Best Answer

Run the server as below

python openerp-server --xmlrpc-port=your_port_number

or we can create separate config file and mention the port number.

or change in openerp/tools.config.py

group.add_option("-p", "--http-port", dest="http_port", my_default=8069,
help="Listen port for the main HTTP service", type="int", metavar="PORT")
Avatar
Discard

Changing the default configuration at source code level is a bad practice I think, responding to your second option.

Yes. You are right. We can also create separate config file and run.

python openerp-server --config=config_file.conf

Best Answer

check your config file   it's available under  /etc  folder (ubuntu)

Avatar
Discard
Best Answer

You need to set it on the openerp-server.conf file.

Avatar
Discard
Best Answer

Start OpenERP with --xmlrpc-port flag (e.g. python openerp-server --xmlrpc-port 8888 ....)

Or start OpenERP with config file (e.g. python openerp-server -c /path/to/openerp/confi/file ....) and put xmlrpc_port entry into the config file (e.g. xmlrpc_port = 8888).

If both are specified, the one in command line will prevail.

Avatar
Discard