I was on the Apache IRC channel trying to get help because both my vhosts resolve to the same place.
One guy was helping me and he said to output the error logs for the vhosts, which I didn't have set up, so he told me to do that. I set them up in the vhosts config files, but I couldn't get the output, so I followed a few forums I found on the net to try to fix the problem.
One thing I did was this:
sudo chmod 644 /var/log/apache2/access.log /var/log/apache2/error.log
Then suddenly my server wouldn't start. So, I changed the vhosts log files back, deleted the folders and changed the permissions back (640) that I had changed above.
Anyway, I still can't start the server and I am not sure what the problem. My Apache error logs are here http://pastie.org/private/r8lgjkgibabucvlznecq
It says "Unable to open logs, exiting". I think this is the problem, but I changed the permissions back and it still isn't working.
Can you give me any direction on how I might fix it?
Another one of the errors says "(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80"
I looked this up and people say to do netstat -tap and kill what is on port 80, but there is nothing on port 80 that I can see.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart.
If you run into issues leave a comment, or add your own answer to help others.