I'm running Ubuntu 10.10 with three apache virtual hosts. I just followed this tutorial to set up Rails 3 on Ubuntu using PAssenger and nginx.
Everything is running fine except rails/nginx. When I try to start it, I get this message:
* Starting Nginx Server...
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
...done.
Not sure what the problem is. Do I have to use nginx instead of apache? I'm just a novice at this point, so I'd appreciate it if any answers kept that in mind.
Edit
apache2ctl -S
outputs this:
default server pixelcraftwebdesign.com (/etc/apache2/httpd.conf:4)
port 80 namevhost pixelcraftwebdesign.com (/etc/apache2/httpd.conf:4)
port 80 namevhost opsandss.com (/etc/apache2/httpd.conf:8)
port 80 namevhost ergo-metric.com (/etc/apache2/httpd.conf:16)
port 80 namevhost admin.nflspot.com (/etc/apache2/httpd.conf:24)
port 80 namevhost utcmeme.com (/etc/apache2/httpd.conf:29)
port 80 namevhost ruby.pixelcraftwebdesign.com (/etc/apache2/httpd.conf:37)
wildcard NameVirtualHosts and _default_ servers:
*:* is a NameVirtualHost
default server myServer (/etc/apache2/sites-enabled/000-default:1)
port * namevhost myServer (/etc/apache2/sites-enabled/000-default:1)
port 443 namevhost myServer (/etc/apache2/sites-enabled/default-ssl:2)