Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat May 23, 2009 11:44 am 
Offline
Senior Newbie

Joined: Fri May 22, 2009 4:54 pm
Posts: 5
Apach fails to start without posting anything to error.log. apache2ctl configtest returns Syntax OK. I have no idea where to begin debugging this.

Here are the contents of /etc/apache2/sites-available/default:

Code:
<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>


Here are the contents of one of my virtual hosts. All others match except for domain.

Code:
<virtualhost *:80>
  # Admin email, Server Name (domain name) and any aliases
  ServerAdmin webmaster@webolutionary.com
  ServerName  webolutionary.com
  ServerAlias www.webolutionary.com

  # Index file and Document Root (where the public files are located)
  DirectoryIndex index.html
  DocumentRoot /var/www/vhosts/webolutionary.com/htdocs

  # Custom log file locations
  LogLevel warn
  ErrorLog  /var/www/vhosts/webolutionary.com/log/error.log
  CustomLog /var/www/vhosts/webolutionary.com/log/access.log combined
</virtualhost>


Here is /etc/apache2/ports.conf

Code:
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
    # SSL name based virtual hosts are not yet supported, therefore no
    # NameVirtualHost statement here
    Listen 443
</IfModule>


apache2.conf is unmodified from the original.

_________________
Sean Robertson


Top
   
 Post subject:
PostPosted: Sat May 23, 2009 11:49 am 
Offline
Senior Member
User avatar

Joined: Mon Dec 10, 2007 4:30 pm
Posts: 341
Website: http://markwalling.org
How are you determining that httpd isn't starting?


Top
   
 Post subject:
PostPosted: Sat May 23, 2009 1:20 pm 
Offline
Senior Newbie

Joined: Fri May 22, 2009 4:54 pm
Posts: 5
It tells me. ;-)

Code:
root@li64-240:/etc/apache2# /etc/init.d/apache2 start
 * Starting web server apache2                                           [fail]


Restart does the same.

_________________
Sean Robertson


Top
   
 Post subject:
PostPosted: Sat May 23, 2009 1:34 pm 
Offline
Senior Newbie

Joined: Fri May 22, 2009 4:54 pm
Posts: 5
Figured it out. It was a bad log path in my virtual host configurations.

_________________
Sean Robertson


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group