Trouble Starting Apache - syntax error httpd_vhosts

Discussion in 'Apache' started by Rothbard, Aug 5, 2009.

  1. #1
    I'm having trouble starting apache. I get this error:


    Syntax error on line 1 of /etc/httpd/conf/httpd_vhosts.conf: Invalid command '/home/myusername/public_html', perhaps misspelled or defined by a module not included in the server configuration


    Does anyone know why this might occur? I followed the instructions for the apache installation http://www.linode.com/wiki/index.php/CentOS#Apache_Installation exactly.


    Any help, insight, or discussion would be much appreciated.
     
    Rothbard, Aug 5, 2009 IP
  2. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, you'll need to show us the first few lines of your httpd_vhosts.conf file.
     
    premiumscripts, Aug 5, 2009 IP
  3. Rothbard

    Rothbard Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    /home/[Username]/public_html
    /var/log/httpd/[Username]


    thats the whole hosts file

    [Username] is a stand in for my actual username.
     
    Rothbard, Aug 5, 2009 IP
  4. Rothbard

    Rothbard Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ok, it seems as though that directory has about 50 subdirectories e.g. /public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html/public_html

    There is obviously something wrong there.
     
    Rothbard, Aug 5, 2009 IP
  5. Rothbard

    Rothbard Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Nevermind. I apparently screwed up something important. I'm going to have to format it and start from the beginning (for the 3rd time ARGGGGHHHHHHH). Oh well, I get better at it each time.
     
    Rothbard, Aug 5, 2009 IP
  6. Dr-AMG

    Dr-AMG Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I'd rather re-build the apache with the basic specs , if it still has troubles you will have to check other parameters
     
    Dr-AMG, Aug 7, 2009 IP