Page 1 of 1

change omero development web server port?

PostPosted: Mon Mar 31, 2014 2:41 pm
by dvera
Anyone know how may I change the port from which the development web server (django web server) accepts connections from 4080 to 80?

Thanks,

Dan

Re: change omero development web server port?

PostPosted: Mon Mar 31, 2014 3:26 pm
by wmoore
Hi Dan,

I don't believe that option exists currently for
Code: Select all
$ bin/omero web start
.

However, you could try running the web server "manually", in which case you can specify the port:

For OMERO 5:

Code: Select all
$ cd lib/python/OmeroWeb
$ python omeroweb/manage.py runserver 0.0.0.0:80


or OMERO 4:

Code: Select all
$ cd lib/python/OmeroWeb/omeroweb
$ python manage.py runserver 0.0.0.0:80


Hope that helps,

Will.

Re: change omero development web server port?

PostPosted: Tue Apr 01, 2014 6:32 am
by jmoore
Hi Dan,
Either Will's command or using:
Code: Select all
bin/omero config set omero.web.application_server.port 80
bin/omero web start

should do the trick, but note that running on port 80 will require admin privileges in most cases:
Code: Select all
...
0 errors found
April 01, 2014 - 07:30:46
Django version 1.6, using settings 'omeroweb.settings'
Starting development server at http://0.0.0.0:80/
Quit the server with CONTROL-C.
Error: You don't have permission to access that port.


Cheers,
~Josh

Re: change omero development web server port?

PostPosted: Tue Apr 01, 2014 5:45 pm
by dvera
Thanks all.

That's right, it won't let me use port 80 without admin privs. Apart from not working, running with sudo I'm assuming is not recommended. I will use another web server to achieve this.

Thank again!

Dan