Had a fun day with PHP 5 today

Support/Development for PHP
Snapdragon
Forum Regular
Forum Regular
Posts: 119
Joined: Mon Nov 28, 2005 4:44 pm

Had a fun day with PHP 5 today

Unread post 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.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

That'll teach you to --nodeps!
Snapdragon
Forum Regular
Forum Regular
Posts: 119
Joined: Mon Nov 28, 2005 4:44 pm

Unread post 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.
Henrik
New Forum User
New Forum User
Posts: 4
Joined: Sun Jan 07, 2007 5:10 pm

Unread post 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
Snapdragon
Forum Regular
Forum Regular
Posts: 119
Joined: Mon Nov 28, 2005 4:44 pm

Unread post 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.
Henrik
New Forum User
New Forum User
Posts: 4
Joined: Sun Jan 07, 2007 5:10 pm

Unread post by Henrik »

Thank you! I just got this done this afternoon and it is working like a charm.

/Henrik
Snapdragon
Forum Regular
Forum Regular
Posts: 119
Joined: Mon Nov 28, 2005 4:44 pm

Unread post 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
Post Reply