Awakenings
Mar. 24th, 2006 02:26 amMy sleep schedule is all screwed up. I woke up a couple of hours ago. I don't feel like I've had enough sleep, but my body refused to let me sleep any more.
I *think* I'm starting to come out of this cold. The headache is diminishing in intensity and I usually feel like I can think again. On the other hand, my appetite still hasn't come back. This 'morning' I was at an all new low weight. Not really eating for a week may work as a diet plan, but I can't recommend it.
Tonight I shall (once more fully awake) endevour to diagnose why I can't get PHP 5.1.2 to work properly under Apache 2.2. It almost works. If I have an index.php file, I can successfully invoke PHP via:
http://test.pooq.com/index.php
But if I try to surf to
http://test.pooq.com
and let DirectoryIndex hand me the index.php file, it doesn't get executed, it gets downloaded. WTF. Googling so far has found nothing. Up until now my experience with PHP installation has been 'it just works', so I'm not even sure how to go about diagnosing this.
------
EDIT: It turns out that there was a consistent error throughout the default installation of Apache 2.2. The DirectoryIndex command works fine, but it isn't additive. Every single config file for a language extension - perl, php, ruby, SSI, every one would issue a command like:
DirectoryIndex index.foo
Which would undo the previous DirectoryIndex command. The result was (because those configs were loaded in alphabetical order, after my main config) that only the last such command had any effect. Naturally it had to be something useful like
DirectoryIndex index.xml
*headdesk* It took me a while to figure it out because Apache 2.2 is so new, and the documentation is spotty in places, and the bug was so pervasive that I figured *I* had to be wrong and they had made the command additive. They haven't.
I have a feeling that by 2.2.1 they'll have added +index.foo and -index.bar options so these attempts might actually work.
Of course, fixing THAT hasn't solved all the configuration bugs, but maybe now I can make some progress on the problems that the fix revealed.
I *think* I'm starting to come out of this cold. The headache is diminishing in intensity and I usually feel like I can think again. On the other hand, my appetite still hasn't come back. This 'morning' I was at an all new low weight. Not really eating for a week may work as a diet plan, but I can't recommend it.
Tonight I shall (once more fully awake) endevour to diagnose why I can't get PHP 5.1.2 to work properly under Apache 2.2. It almost works. If I have an index.php file, I can successfully invoke PHP via:
http://test.pooq.com/index.php
But if I try to surf to
http://test.pooq.com
and let DirectoryIndex hand me the index.php file, it doesn't get executed, it gets downloaded. WTF. Googling so far has found nothing. Up until now my experience with PHP installation has been 'it just works', so I'm not even sure how to go about diagnosing this.
------
EDIT: It turns out that there was a consistent error throughout the default installation of Apache 2.2. The DirectoryIndex command works fine, but it isn't additive. Every single config file for a language extension - perl, php, ruby, SSI, every one would issue a command like:
DirectoryIndex index.foo
Which would undo the previous DirectoryIndex command. The result was (because those configs were loaded in alphabetical order, after my main config) that only the last such command had any effect. Naturally it had to be something useful like
DirectoryIndex index.xml
*headdesk* It took me a while to figure it out because Apache 2.2 is so new, and the documentation is spotty in places, and the bug was so pervasive that I figured *I* had to be wrong and they had made the command additive. They haven't.
I have a feeling that by 2.2.1 they'll have added +index.foo and -index.bar options so these attempts might actually work.
Of course, fixing THAT hasn't solved all the configuration bugs, but maybe now I can make some progress on the problems that the fix revealed.
no subject
Date: 2006-03-25 05:59 am (UTC)no subject
Date: 2006-03-25 05:10 pm (UTC)no subject
Date: 2006-03-25 05:19 pm (UTC)But single directives like "DirectoryIndex index.xml", that's just silly, really.
no subject
Date: 2006-03-25 05:26 pm (UTC)Yeah, they did. They moved a bunch of stuff to a new modules.d directory and reorganized how the includes worked.
Had they put in a new additive feature for DirectoryIndex so you could say +Index.foo to make an addition like you can with the Options feature (and then used it), it all would have just worked.
no subject
Date: 2006-03-25 05:30 pm (UTC)Particularly after having written rather involved and convoluted Apache configurations, I think that one would probably lead me to drinking (particularly if the order of the includes isn't asciibetical, but rather just in readdir order, ohh, kill me now!)...
no subject
Date: 2006-03-25 06:03 pm (UTC)Oops. You're right, of course. I don't know why I didn't think of that. For MOST folks, just appending to the end of the list would be fine, but I can see how it could cause massive headaches in complex situations.
And the only solutions that I can think of would a) require a new general facility and b) be really ugly. Maybe I'd best not be redesigning software until I'm not so sick.
no subject
Date: 2006-03-25 06:36 pm (UTC)I have to point out that some of my personal areas of expertise are web servers and component (modular) systems. So this is kind of in a "sweet spot" for me. :-)