I’m on Chapter 16. For the life of me, I can’t get the Apache2 server to work. My OS is Ubuntu 11.04.
I’m confused about what I need in the /etc/apache2/apache2.conf file. What I have for the end portion (everything else is unchanged): NameVirtualHost *:80
<VirtualHost *:80> ServerName localhost DocumentRoot /home/jhsu/jhsu-save-ror/work/depot/public/
<Directory /home/jhsu/jhsu-save-ror/work/depot/public/> Order allow,deny Allow from all </Directory>
</VirtualHost> Listen 80
The error message I get is: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName [Thu Sep 29 20:48:47 2011] [warn] NameVirtualHost *:80 has no VirtualHosts httpd not running, trying to start (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Action ‘restart’ failed. The Apache error log may have more information.