[Apache] Syntax error in httpd.conf

flapietoetoe

New Member
Messages
226
Reaction score
0
Points
0
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?
 

Attachments

  • httpd.conf.txt
    36.5 KB · Views: 108

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
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.
 

The_Magistrate

New Member
Messages
1,118
Reaction score
0
Points
0
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)?
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
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..
 

Attachments

  • viHTTPD.gif
    viHTTPD.gif
    18.4 KB · Views: 486
Last edited:

flapietoetoe

New Member
Messages
226
Reaction score
0
Points
0
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/*
 
Top