Help with Apache
I've tried a bunch of different things here and it doesn't seem to want to work properly. I did have it working, then something happened and it wasn't working anymore, so I reinstalled and it's still not working (not processing SSI's etc.).
First question - do I need to edit both the httpd.conf file and the httpd.default.conf file?
Also, what should my ServerName and DocumentRoot be? This is what I have:
ServerName localhost
DocumentRoot "C:/Documents and Settings/Megan/My Documents/Sites"
I'm on Windows XP.
Any ideas? I'm kinda clueless here.
zollet posted this at 22:12 — 10th August 2002.
He has: 1,016 posts
Joined: May 2002
No. You just need to edit the "httpd.conf". About the SSI, make sure you have the AddHandler server-parsed .shtml like uncommented (remove the # in the begining of the line).
ServerName is the domain name without the www. If you would like to add additional domains to an account, add them to ServerAlias.. ie:
ServerName megan.com
ServerAlias megan.com megan.net megan.net localhost
DocumentRoot is where your website files are located.
Megan posted this at 23:43 — 10th August 2002.
She has: 11,421 posts
Joined: Jun 1999
Mine doesn't have "AddHandler server-parsed .shtml" - It has this though: "AddOutputFilter INCLUDES .shtml" I tried uncommenting that and it didn't seem to help. It also says that "(You will also need to add "Includes" to the "Options" directive." ???? I have no idea what that means.
When I try to access "localhost" I get a 403 error ?!?!
Megan
Connect with us on Facebook!
mairving posted this at 00:46 — 11th August 2002.
They have: 2,256 posts
Joined: Feb 2001
Megan, make sure that you do have an index file (index.html) in your DocumentRoot folder. If you don't have an index file in there and have directory browse off, then you will get that forbidden message every time.
Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states
Megan posted this at 15:26 — 11th August 2002.
She has: 11,421 posts
Joined: Jun 1999
Okay, that seems to have helped. SSI's still aren't working though...
mairving posted this at 18:05 — 11th August 2002.
They have: 2,256 posts
Joined: Feb 2001
You should also have a line like this:
AddType text/html .shtml
Place it above the AddHandler server-parsed .shtml line.
Megan posted this at 01:36 — 12th August 2002.
She has: 11,421 posts
Joined: Jun 1999
The problem is that I didn't have a Handler server-parsed .shtml line, I have AddOutputFilter INCLUDES .shtml. I added Handler server-parsed .shtml and AddType text/html .shtml and that didn't work either...
Sigh... can't get it to process includes at all :( I guess I'll have to do without them... darn.
Megan
Connect with us on Facebook!
Mark Hensler posted this at 03:05 — 12th August 2002.
He has: 4,048 posts
Joined: Aug 2000
Also, check your "Options" directive... should look something like this:
Options ExecCGI FollowSymLinks Includes -Indexes
Megan posted this at 13:59 — 12th August 2002.
She has: 11,421 posts
Joined: Jun 1999
Thanks, that could be the key. I did have Includes added to that line, but I didn't know that I had to - Indexes. I'll try that when I get home.
Megan
Connect with us on Facebook!
zollet posted this at 15:56 — 12th August 2002.
He has: 1,016 posts
Joined: May 2002
Megan, -Indexes hides your directory listing if you don't have a index file. Make sure you add/have the Inludes in the right directory.. For examole.. if your document root directory (the root directory where all accounts are in) is d:\www\ you'll need to have something like:
d:/www">
Options FollowSymLinks -Indexes ExecCGI Includes MultiViews
AllowOverride All
Megan posted this at 01:59 — 13th August 2002.
She has: 11,421 posts
Joined: Jun 1999
It works!!!! Yay! Might still have problems with the php working but that's not an issue right now. There was a second place where I had to change the document root, so that might have been the kicker. I'm not sure though, I've changed so much stuff in there!
Thanks for all the help! Hey! There isn't a smile for kisses We'll have to pretend (one kiss each, on the cheek!)
P.S. When I had it working before, they would show up in Homesite and everything. Anyone know how to get that working?
P.P.S. Nothing working in IE ?!?!? Ok in Opera & Mozilla.
Megan
Connect with us on Facebook!
Megan posted this at 01:49 — 14th August 2002.
She has: 11,421 posts
Joined: Jun 1999
Figured out the Homesite thing (I think) but it requires the server to be working in IE
Sigh... this could not be any more confusing...
Mark Hensler posted this at 05:12 — 14th August 2002.
He has: 4,048 posts
Joined: Aug 2000
I've never had a problem with Apache being picky about browsers. I don't know what could be causing that.
Have you tried accing it via http://localhost as well as http://127.0.0.1?
Mark Hensler
If there is no answer on Google, then there is no question.
Megan posted this at 02:18 — 15th August 2002.
She has: 11,421 posts
Joined: Jun 1999
I know, that's why it's so confusing (why in the heck would a server app be picky about browsers ?!?!?) I have no clue...
Hey! The IP thing does work in IE!!!! Thanks for that tip! It's a little slow but it works...
Megan
Connect with us on Facebook!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.