We're Hiring!

change omero development web server port?

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

change omero development web server port?

Postby dvera » Mon Mar 31, 2014 2:41 pm

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
dvera
 
Posts: 2
Joined: Mon Mar 31, 2014 2:33 pm

Re: change omero development web server port?

Postby wmoore » Mon Mar 31, 2014 3:26 pm

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.
User avatar
wmoore
Team Member
 
Posts: 674
Joined: Mon May 18, 2009 12:46 pm

Re: change omero development web server port?

Postby jmoore » Tue Apr 01, 2014 6:32 am

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
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: change omero development web server port?

Postby dvera » Tue Apr 01, 2014 5:45 pm

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
dvera
 
Posts: 2
Joined: Mon Mar 31, 2014 2:33 pm


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest