Tuesday 12 May 2015

To change the default port 8069 to 80 or any other port in Odoo/OpenERP 8+

Whilst installing Odoo/OpenERP into your local server, please download directly from Odoo website.

PS: please do not use Bitnami Odoo version as its bit outdated (unless they have released the latest Odoo updated version for 8.0+). You may use install it from them but it runs very slowly and takes a lot of memory than the version directly from Odoo.

Once you have downloaded the latest Odoo 8.0 plus directly from Odoo website, just run the .exe file.

By default, it runs under the 8069 port number. However, you can change to any other port as you like, for eg. to port 80.
  • First, copy a the root/server/openerp-server.conf file into the desktop and open it on editor, goto Line number => 60 (root/ folder is a location where Odoo has been installed).

    Modify the Line number => 60 from xmlrpc_port = 8069 to xmlrpc_port = 80 (or any other numer as you required) and save a file. 

  • Then COPY that file from destktop and PASTE it into the root/server/ location.
  • Secondly, copy a the root/server/openerp/tools/config.py file into the desktop and open it on editor, goto Line number => 155 (root/ folder is a location where Odoo has been installed).

    Modify the Line number => 155 from my_default=8069, to my_default = 80 (or any other numer as required) and save a file. 

  • Then COPY that file from destktop and PASTE it into the root/server/openerp/tools/ location. 
  • Lastly, RESTART the machine and it should work.

Please comment here if you have further information or if you have any issue.

Hope that helps!

No comments:

Post a Comment

Please post any queries and comments here.