Page 1 of 1

Had a fun day with PHP 5 today

Posted: Mon Jan 08, 2007 12:37 am
by Snapdragon
CentOS 4.4 64 Bit on my new dual dual core Xeon box.

So I discover I've got PHP 4.3.9, and our old machine is 4.4.2 .. I see that 4.x series is discontinued by Scott.

I'm having problems with people using phpBB and avatars, like, 25 forums worth. I check, apache.psacln owner, 777 chmod, and tmp dir inside of avatars dir for safe mode... seems fine.

So I play and play and play and play, and decide that I'm going to upgrade to 5.0.4. I grab the RPM's from centosplus, I force --nodeps erase on the php-d??xml rpm, and install 5.0.4.

Of course the first thing that breaks is the library, no problem, swap in the rpmnew ini and we're good. Set a few configs while we're there, safe-exec directories and what not.

Then horde breaks! Seems to be a memory issue, so I bump the script memory from 8MB to 20MB, and horde comes back to life. Seems odd it wanted to use almost 10 MB to launch after login.

Still avatars don't work... so I play around somemore, and discover, now, for whatever reason, the proper ownership has to be back! On the old box I had to have it owned by apache and 777, now, it HAS to be properowner.psacln and 777 and then it works. Like it should.

Very odd. So 6 hours later, I'm on 5.0.4 and as far as I can see, running fine. I did the long_registers = 1 in the ini so that phpBB will function OK, and my one big client who custom scripts everything says aside from some undefined variables, he's ok.

Phew.

Do I DARE touch MySQL 5?

PS Coppermine gallery seems to still function OK too.

Posted: Mon Jan 08, 2007 4:59 am
by scott
That'll teach you to --nodeps!

Posted: Mon Jan 08, 2007 3:58 pm
by Snapdragon
Well, I couldn't get rid of the domxml package any other way, it wanted to take the psa-php4 configurator with it, and in order to take that, it wanted to uninstall all of psa!

I ended up removing 5.0.4 and putting 4.3.9 back in anyways, it just broke too many things.

Posted: Tue Jan 09, 2007 4:19 pm
by Henrik
I am just about to upgrade to PHP5 using the ART packages on a RHEL4 server with Plesk8.0.

What other issues did you encounter? I have another server running cPanel with PHP5 and that runs like a charm.

/Henrik

Posted: Tue Jan 09, 2007 11:55 pm
by Snapdragon
Just followed the instructions posted on the php project page.

Install
Swap the php.ini.rpmnew in
Update the library extensions path in php.ini
apachectl graceful

That was it. The php.conf in apache self-updated.

Posted: Wed Jan 10, 2007 4:05 am
by Henrik
Thank you! I just got this done this afternoon and it is working like a charm.

/Henrik

Posted: Wed Jan 10, 2007 6:43 am
by Snapdragon
Cool. Hope all your scripting continues to function. You might have to find the long_arrays switch and turn it on to retain some older PHP 4 compatibility, I hear it's a big deal with phpBB 2.0