+ Reply to Thread
Results 1 to 8 of 8

Thread: [Apache] Syntax error in httpd.conf

  1. #1
    flapietoetoe is offline x10 Sophmore flapietoetoe is an unknown quantity at this point
    Join Date
    Aug 2005
    Posts
    113

    [Apache] Syntax error in httpd.conf

    hi, I was configuring my webserver a minute ago.
    And when I restarted apache it gave an error:
    syntax error in httpd.conf
    it says there is something wrong with my httpd.conf but I cant find any syntax errors.

    ...

    Help?
    Attached Files

  2. #2
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: [Apache] Syntax error in httpd.conf

    Just by opening that file in notepad I see a lot! of weird characters and things that are not right.. What did you use to edit it? Try using just plain old notepad or another text editor.

  3. #3
    The_Magistrate's Avatar
    The_Magistrate is offline x10 Elder The_Magistrate is an unknown quantity at this point
    Join Date
    May 2005
    Location
    PA
    Posts
    559

    Re: [Apache] Syntax error in httpd.conf

    The file looks fine. Open it in Wordpad. Notepad doesn't display UNIX style cr-lf correctly.

    The httpd.conf looks fine. Did you try starting with the default one shipped with apache? If that one doesn't work, then you may have installed apache incorrectly. Also, what distribution are you running this on(assuming you're running Linux/BSD)?
    Getting Started | Terms of Service | Paid Hosting | Forum Rules | Free Server Status | Banned Countries

    If I have helped you through one of my posts, please click the
    blue checkbox on the right below my avatar to add to my reputation.

  4. #4
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: [Apache] Syntax error in httpd.conf

    Screen shot of the file in VI. It doesn't look too good for me..

    Edit: Just looked at it in wordpad. You don't see any of those characters in it. They are there though..
    Attached Thumbnails Attached Thumbnails [Apache] Syntax error in httpd.conf-vihttpd.gif  
    Last edited by Bryon; 06-03-2006 at 03:17 PM.

  5. #5
    flapietoetoe is offline x10 Sophmore flapietoetoe is an unknown quantity at this point
    Join Date
    Aug 2005
    Posts
    113

    Re: [Apache] Syntax error in httpd.conf

    That is because I copy pasted it from vi... , I got it to work somehow. but im stuck with another problem now.

    I got it working that every folder in /home/*/public_html is a webfolder
    so if there's a user called pete then his adress would be webserver/~pete

    The only problem is that I get permission denied in the webfolders.I tried to chmod it but didnt work I did:

    chmod 755 /home/*/public_html and
    chmod +x /home/*

  6. #6
    The_Magistrate's Avatar
    The_Magistrate is offline x10 Elder The_Magistrate is an unknown quantity at this point
    Join Date
    May 2005
    Location
    PA
    Posts
    559

    Re: [Apache] Syntax error in httpd.conf

    Try

    chmod -R 755 /home/*/public_html
    Getting Started | Terms of Service | Paid Hosting | Forum Rules | Free Server Status | Banned Countries

    If I have helped you through one of my posts, please click the
    blue checkbox on the right below my avatar to add to my reputation.

  7. #7
    flapietoetoe is offline x10 Sophmore flapietoetoe is an unknown quantity at this point
    Join Date
    Aug 2005
    Posts
    113

    Re: [Apache] Syntax error in httpd.conf

    already have. He wont accept -r

  8. #8
    flapietoetoe is offline x10 Sophmore flapietoetoe is an unknown quantity at this point
    Join Date
    Aug 2005
    Posts
    113

    Re: [Apache] Syntax error in httpd.conf

    BTW. Bryon , u running fedora?

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers