Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment in the forums, please register and review our posting policy & tips. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack (9) Thread Tools Display Modes
  9 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 02-14-2006, 05:21 PM
Senior Member
 
Posts: 35
Default How to change web access port?

I installed ZCS 3.0 on Fedora Core 4. It worked great and I installed everything with defaults. The only thing I changed was the domain name from server.domain.com to domain.com so that the MX resolve correctly.

The one thing that I'm having an issue with right now is the port that the web client is on -- port 80.

I would like to have it listen on another port, such as 8888.

I've searched through the forums and found a couple documents on modifying the server.xml file for tomcat. When I do that and change the port to 8888, use zmcontrol to stop the servers, and then zmcontrol to start the servers again, something seems to modify server.xml and change its port back to port 80. I've also attempted to modify the /opt/zimbra/httpd/conf/httpd.conf file's port. But that's doesn't seem to have much affect.

I've installed tomcat on my own a couple of years ago but haven't touched it since.

Can anyone help point me in the right direction to getting the web client to listen on port 8888?

Last edited by hootjr29 : 02-15-2006 at 06:14 AM.
Reply With Quote
  #2 (permalink)  
Old 02-14-2006, 08:53 PM
Zimbra Employee
 
Posts: 4,784
Default

It's in config now.

http://www.zimbra.com/forums/showthr...=8255#post8255
__________________
Subscribe to our Blog - Bugzilla - Wiki - Downloads
Reply With Quote
  #3 (permalink)  
Old 02-15-2006, 02:08 AM
Senior Member
 
Posts: 35
Default

OK. I just tried that. Tomcat is now responding on port 8888. However, when I attempt to login I get the following error in the login box:
An unknown application error has occurred. Please correct any errors and retry. If the problem persists, please contact your System Aministrator. (AjxException.INVALID_PARAM)
The exact command that I ran was:

$ zmprov
prov> ms myserver.domain.com zimbraMailPort 8888 zimbraMailSSLPort 8889
tomcat stop
tomcat start
After getting the error above, I then tried zmcontrol stop and zmcontrol start.

I went back into zmprov and ran GetConfig zimbraMailPort
This returned that it was still using 80. I'm not sure if maybe "zmprov GetConfig" reads a saved copy of the config or not, but in any case I tried to change it again:

zmprov ms myserver.domain.com zimbraMailPort 8888
zmprov GetConfig zimbraMailPort still returns port 80. I then reviewed the /opt/zimbra/tomcat/conf/server.xml and verified that although the zmprov didn't see to show me the correct zimbraMailPort, that the server.xml was actually changing. So in there it changed to port 8888 and redirect to SSL port 8889.

After I did all of the above stuff, I tried hitting http://myserver.domain.com:8888. I just get the apache test page.

Do I need to use zmprov in addition to doing some other steps?

Thanks for the quick reply, btw.

Last edited by hootjr29 : 02-15-2006 at 06:16 AM.
Reply With Quote
  #4 (permalink)  
Old 02-15-2006, 07:17 AM
Zimbra Employee
 
Posts: 2,073
Default

the admin should still work, since you haven't changed the admin port (still 7071).

You say "when you log in" - do you get the login screen?

What is set for zimbraMailMode?
Reply With Quote
  #5 (permalink)  
Old 02-15-2006, 08:01 AM
Senior Member
 
Posts: 35
Default

When I first ran through the install, when I was done, I logged in to both the zimbraAdmin via https://servername:7071/zimbraAdmin. I also logged in successfully via http://servername. After I changed the ports with zmprov ms..etc..etc. and then restarted tomcat, I was able to go to http://servername:8888 and get the login screen for zimbra. I attempted to login with username@domainname.com and the correct password. This is when I received an error. I then tried with a different web browser on my same workstation. I got the same error. I did startx from the zimbra server and launched firefox and tried again. Still the same error. I then tried logging into the admin interface via https://servername:8889/zimbraAdmin (because this is what I was thinking the zimbraMailSSLPort was changing). That didn't work (I forget at this point if apache answered or not). After that I tried port 7071 and I think apache actually responded but said something like page unavailable. I then changed the port back to 80 via zmprov, and now I can login successfully again via http://servername and https://servername:7071/zimbraAdmin.

I don't seem to have a zimbraMailMode attribute available. The only thing related to zimbraMailMode is the following:
zimbraServerInheritedAttr: zimbraMailMode

Last edited by hootjr29 : 02-15-2006 at 08:07 AM.
Reply With Quote
  #6 (permalink)  
Old 02-15-2006, 08:43 AM
Zimbra Employee
 
Posts: 2,073
Default mail mode

I'd set the mode with zmtlsctl and try restarting tomcat, that could be the problem.

After you login - are you getting redirected to the old port, or just a failure?
Reply With Quote
  #7 (permalink)  
Old 02-15-2006, 09:19 AM
Senior Member
 
Posts: 35
Default

that was it! I reconfigured zmprov back to be port 8888 for http and 8889 for SSL. I then ran zmtlsctl https, tomcat stop, tomcat start. Now everything works as expected!

Thanks again for getting back to me so quickly.

With regards to zmprov, does zmprov store all data in openldap, mysql, or a config file someplace?

When I execute zmprov, does it automatically save this new config information or do I have to manually run something else to save it so that I don't have to run these commands again after I might reboot the server?

Last edited by hootjr29 : 02-15-2006 at 09:31 AM.
Reply With Quote
  #8 (permalink)  
Old 02-17-2006, 04:33 PM
Zimbra Employee
 
Posts: 510
Default

hmm after zmtlsctl https you shouldn't be able to access via http (port 8888) .

zmprov accesses configuration data stored in ldap. you should only need to execute a command once, though it may be necessary to restart tomcat or whatever uses the particular parameter for the change to take effect.
Reply With Quote
  #9 (permalink)  
Old 02-21-2006, 04:50 AM
Senior Member
 
Posts: 35
Default

oops. Yup... I changed it with zmprov, but didn't enable it with zmtlsctl. I only used zmtlsctl https.
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
initializing ldap...FAILED(256)ERROR manjunath Installation 38 01-02-2009 02:40 AM
Error 256 on Installation RuinExplorer Installation 5 10-19-2006 09:19 AM
Getting problems in FC4 while instalation kitty_bhoo Installation 13 09-12-2006 10:34 PM
Change Default Web UI Port yang Administrators 4 12-12-2005 11:20 AM

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com

sourceforge.net



 

Search Engine Optimization by vBSEO 3.1.0