This question has been flagged
5 Replies
10624 Views

Hi,

This seems like an common problem but I was not able to find the quick answer.

Can you let me knwo how to do it?

Thanks

Avatar
Discard
Best Answer

As port 80 is used by webserver you cant use port 80 in config file insted of 8069. To run openerp on port 80 you need yo deploy it using mod_wsgi. Please chek the blog How to Deploy Openerp

Avatar
Discard
Best Answer

sorry Robert Augustyn you can not use the port = 80 but you can use any port like 8888

i have change 80 to 8888 below 

 

Just USe ---xmlrpc-port=8888 in terminal Window like this

 

 ./openerp-server --addons ../addons/,../openerp-web/addons/,../../projects/ --xmlrpc-port=8888

you can use your own path just add the --xmlrpc-port=8888 befor addons path

 

port 80 information : 

The default IP port number used by Web servers for Web (HTTP) transactions. Secure HTTP (SHTTP) transactions are handled by port 443. Requests that come into the server at port 80 result in returning an HTML page to the browser. Port 80 requests may also call a CGI script, ISAPI or ASP process, a server-side include (SSI) or a Java servlet, all of which perform some process in the server and then return an HTML page with the results. A request coming into port 80 may result in any file being copied from the Web server to the requesting client.

 

so you can not use default 80 port

Avatar
Discard
Best Answer

Hi,

Please we can run odoo on port 80 with the help of Nginx reverse proxy server. Please refer the below links. Hope this will help you.

http://www.technaureus.com/how-to-run-odoo-on-port-80/

http://www.technaureus.com/how-to-setup-nginx-for-odoo/

Avatar
Discard
Author Best Answer

Thanks, 

Adding the xmlrpc_port = 80 to config file does not seem to do the trick

Running /usr/bin/openerp-server  --xmlrpc-port=80 seems to do it but generates following error.

btw: the /usr/lib/python2.7 and /usr/lib/pymodules/python2.7 are own by openerp, any solutions?

It seems like the permission issue.

robert@erp8:~$ /usr/bin/openerp-server  --xmlrpc-port=80
2014-05-22 05:16:23,394 10959 INFO ? openerp: OpenERP version 8.0dev-20140416-230101
2014-05-22 05:16:23,398 10959 INFO ? openerp: addons paths: ['/home/robert/.local/share/OpenERP/addons/8.0', u'/usr/lib/pymodules/python2.7/openerp/addons', '/usr/lib/pymodules/python2.7/openerp/addons']
2014-05-22 05:16:23,411 10959 INFO ? openerp: database hostname: localhost
2014-05-22 05:16:23,411 10959 INFO ? openerp: database port: 5432
2014-05-22 05:16:23,411 10959 INFO ? openerp: database user: robert
2014-05-22 05:16:23,791 10959 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:80
Exception in thread openerp.service.httpd:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/service/server.py", line 274, in http_thread
    self.httpd = ThreadedWSGIServerReloadable(self.interface, self.port, app)
  File "/usr/lib/pymodules/python2.7/openerp/service/server.py", line 84, in __init__
    handler=RequestHandler)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 331, in __init__
    HTTPServer.__init__(self, (host, int(port)), handler)
  File "/usr/lib/python2.7/SocketServer.py", line 408, in __init__
    self.server_bind()
  File "/usr/lib/pymodules/python2.7/openerp/service/server.py", line 94, in server_bind
    super(ThreadedWSGIServerReloadable, self).server_bind()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
  File "/usr/lib/python2.7/SocketServer.py", line 419, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 13] Permission denied

 

Avatar
Discard
Best Answer

if v8 is same as v7 there should be a file called openerp-server.conf in /etc.

This file should have an entry like xmlrpc_port = 8069. I think changing that to xmlrpc_port = 80 should do the job*

(*unless things are different in v8 and/or things are special when it comes to port 80)

Avatar
Discard