start apache on alternate port

Craig White craigwhite at azapple.com
Wed Aug 31 12:34:59 UTC 2011


On Tue, 2011-08-30 at 20:03 -0300, Tim Dunphy wrote:
> hello,
> 
>  I'm trying to setup a statusnet server on an existing ubuntu based
> zimbra server. Zimbra uses it's own brand of apache and I installed a
> separate apache2 to manage the status net install.
> 
> root at li289-212:/var/www# cat /etc/issue
> Ubuntu 10.04 LTS \n \l
> 
> root at li289-212:/var/www# uname -a
> Linux li289-212 2.6.39.1-x86_64-linode19 #1 SMP Tue Jun 21 10:04:20
> EDT 2011 x86_64 GNU/Linux
> 
> 
> root at li289-212:/var/www# dpkg -l | grep apache
> ii  apache2                         2.2.14-5ubuntu8.4           Apache
> HTTP Server metapackage
> ii  apache2-mpm-worker              2.2.14-5ubuntu8.4           Apache
> HTTP Server - high speed threaded mod
> ii  apache2-utils                   2.2.14-5ubuntu8.4
> utility programs for webservers
> ii  apache2.2-bin                   2.2.14-5ubuntu8.4           Apache
> HTTP Server common binary files
> ii  apache2.2-common                2.2.14-5ubuntu8.4           Apache
> HTTP Server common files
> ii  zimbra-apache                   7.1.0_GA_3140.UBUNTU10_64   Best
> email money can buy
> 
> 
> 
>  However when I try to start apache on the alternate port it claims
> that the port is already in use although I'm stumped as to why using
> the standard tools.
> 
> root at li289-212:/var/www# grep -ri listen /etc/apache2/
> /etc/apache2/ports.conf:Listen 10000
> /etc/apache2/ports.conf:    Listen 443
> /etc/apache2/ports.conf:    Listen 443
> /etc/apache2/apache2.conf:Listen 10000
> 
> root at li289-212:/var/www# /etc/init.d/apache2 start
>  * Starting web server apache2
>          (98)Address already in use: make_sock: could not bind to
> address 0.0.0.0:10000
> no listening sockets available, shutting down
> Unable to open logs
>                                                                          [fail]
> 
> 
> root at li289-212:/var/www# netstat -tulpn | grep 10000
> root at li289-212:/var/www# netstat -tapn | grep 10000
> root at li289-212:/var/www# lsof -i :1000
> 
> 
> Can anyone provide a hint as to how best to troubleshoot this scenario?
----
sounds as if your Zimbra installation is also using port 443.

You might want to run 'a2dissite default-ssl' and then restart apache2
and if that works as I expect it would, you would want to change your
SSL port used in ports.conf and default-ssl

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





More information about the ubuntu-users mailing list