PHP 4.x vs Apache 2.x

They have: 14 posts

Joined: Jan 2003

Anyone else having trouble with PHP4.x and Apache 2.x ?

For those not already upto speed on the problem, PHP4 is not yet fully supported on Apache 2+ and therefore causes problems - although less with my own code, and more with third party stuff (PHPMyAdmin, PHPBB etc).

Any other sufferers want to share solutions? Aside from downgrading Apache to 1.3xxx there isn't a universal fix, and my sysadmin simply refuses to downgrade.

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

What kind of problems have you experienced?

My own problem has been with PHP 4.2.3 and it's mbstr. Sad

They have: 14 posts

Joined: Jan 2003

The main problem I've come across so far is a caching issue, which makes the browser (specifically IE) fail to update pages upon revisiting them - which as you can imagine is fatal for things such as messageboards. Until a fix of some kind is applied users have to use a forced refresh (CRTL+F5) in order to view newer content.

The fix I'm using at present makes every page uncacheable, fooling the browser to believe it's never been to the page before, therefore loading the content correctly.

It's an ugly solution, but it gets the job done.

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

That would be an Apache configuration problem. They shouldn't have to recompile anything to fix that. They may also be runing a caching server, like squid.

Mark Hensler
If there is no answer on Google, then there is no question.

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.