start apache on alternate port

Tim Dunphy bluethundr at
Tue Aug 30 23:03:57 UTC 2011


 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 #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
no listening sockets available, shutting down
Unable to open logs

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?


GPG me!!

gpg --keyserver --recv-keys F186197B

More information about the ubuntu-users mailing list