correct apache config for virtual hosting
I followed the tutorial here:
https://help.ubuntu.com/community/ApacheMySQLPHP
on setting up a localhost / lamp-stack.
I got to the point where it reports a message saying "It is working." Everything fine on that front.
However, when I tried to restart Apache, I received the following error message, which I cannot understand:
Code:
open: Permission denied
* Restarting web server apache2 httpd (pid 6139?) not running
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
open: Permission denied
Can anyone point me in the right direction for resolving this permission denied error?
Thanks!
UPDATE: I forgot to sudo my apache restart command
Re: correct apache config for virtual hosting
It looks like in your Vhosts.conf file that when you were setting up your virtual hosts you made a typo of the IP address for your default destination (or one of the other virtual hosts). Look in there first and see if anything looks out of place.