Apache failed

Discussion in 'Apache' started by Mbpotin, Oct 10, 2008.

  1. #1
    Hell,

    I'm running a VPS on Debian OS, while I tried to restart Apache I received the following error:

    Forcing reload of web server (apache2)...Syntax error on line 1 of /etc/apache2/sites-enabled/000-default:
    Invalid command '<VirutalHost', perhaps misspelled or defined by a module not included in the server configuration
    failed!

    I have no idea what to do, And my server is down for now, please advice.

    Thanks
     
    Mbpotin, Oct 10, 2008 IP
  2. Kionic.com

    Kionic.com Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi Mbpotin,

    It is best to request your host to have an admin looking into the issue so that you can have your sites up online asap.

    For some reasons, your apache configuration file is damaged


    Or just try this very quick:

    vi /etc/apache2/sites-enabled/000-default

    add > at the end of the first line or it becomes:

    <VirutalHost>

    => restart apache
     
    Kionic.com, Oct 10, 2008 IP
  3. genius24k

    genius24k Active Member

    Messages:
    114
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Check your <VirtualHost> entry you probably miss a closing tag or something there then retart apache.
     
    genius24k, Oct 10, 2008 IP
  4. Mbpotin

    Mbpotin Peon

    Messages:
    68
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I fixed it, now I got this error:

    Forcing reload of web server (apache2)...Syntax error on line 49 of /etc/apache2/sites-enabled/000-default.save:
    Invalid command 'VirtualDocumentRoot', perhaps misspelled or defined by a module not included in the server configuration
    failed!
     
    Mbpotin, Oct 10, 2008 IP
  5. hoodvs

    hoodvs Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That directive is from mod_vhost_alias - so it sounds like that module isn't getting loaded. If it's a compiled in module, you can get it from httpd -l; otherwise it's likely either not installed - or not configured correctly.
     
    hoodvs, Oct 11, 2008 IP
  6. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Just checking the obvious here... <VirutalHost is actually spelt incorrectly. It should be <VirtualHost (swap the t and the u around.) Was that the actual problem ?
     
    Ladadadada, Oct 14, 2008 IP