Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

How to run openerp 8 on port 80?

By
Robert Augustyn
on 5/22/14, 12:32 AM 5,550 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

7

swapnil wagh

--swapnil wagh--
1559
| 6 5 8
Pune, India
--swapnil wagh--

My name is Swapnil A. Wagh. I studied Master Of computer Science and work as a Software Engineer. I’m a technology enthusiast and always eager to learn new and exciting technologies. I’m constantly looking for innovative solutions to age-old problems that push the limits of what we conceive to be possible.

swapnil wagh
On 5/23/14, 7:24 AM

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

1
Kazim Mirza
On 5/22/14, 12:58 AM

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

0
Robert Augustyn
On 5/22/14, 1:21 AM

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

 

-1

gunnar

--gunnar--
1153
| 6 7 8
Germany
--gunnar--

born

gunnar
On 5/22/14, 12:58 AM

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)

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/22/14, 12:32 AM
Seen: 5550 times
Last updated: 4/7/16, 9:36 PM