By brettpeary
Hi,
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?
One note: 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.
Thanks.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
disable all but the default virtual host and try to start it. <br>if it works, enable one virtual host at a time until it doesn;t start. <br> <br>in my experience, permission of the logs is irrelevant because it’s opened as root, but the dir needs to exist, if you have a line like <br> <br>ErrorLog /srv/www/somehost.com/logs/error.log <br> <br>then /srv/www/somehost.com/logs/ needs to exist or apache won’t start
I should clarify that they don’t say 403. They just say “Forbidden You don’t have permission to access / on this server.” <br> <br>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.