Thursday, November 19, 2009

Apache fun

Last night was fun. I'm leaving Alt BM Site alone for now because I need to get a current backup of the database and the files. And I might as well figure out what the hell I'm doing wrong before doing that. I got Apache 2.2.14 running and got the virtual host set up for the Circulation Desk. It worked! On a roll now, so I set up the virtual hosts for the main pages of the Library and FFGarret.

Which went straight to Circulation Desk when I tried to access them in the browser. *headdesk*

So I comb through the code again, and thought I found the mistake. I added in a trailing "/" when the code doesn't like that. Corrected and rebooted the entire computer and went to bed.

This morning Apache won't run, but at least I get an answer out of the error log, which I didn't get last night. "All the other virtual hosts are overlapping with the first one (Circulation Desk) so it's only using Circulation Desk. You may need a NameVirtualHost directive (or something like that)."

I Googled the exact phrase, but must have found four or five possible solutions. I have printouts to compare what they did to my own code. At worst, I can run each site one at a time (I haven't actually tried FFGarret and the Library by themselves that may help me figure out what is wrong with their virtual host code), but that defeats the point of setting up virtual hosts so you can run multiple sites in the development environment. So tonight I guess I'll be trying out each of the "fixes" I've found and hoping one holds.

I have Firebug, but I haven't figured out how it tells you what is wrong. Or even if it can when the issue is in a background file. It's been a few months since I tried using it, and I see they have add some other items to work with it. Maybe one of them will help.

Read Free!
The BookWorm

1 comment:

Fyn said...

I don't think Firebug will pick up Apache problems, it seems more for the rendering and debugging side of things, and useful for finding out what css is effecting.

Windows sounds like a serious pain in the system, would suggest using a linux box for a server if you have a spare or can dual boot, I donno, I've found it easier to set up stuff on a nix box :|