Koozali.org: home of the SME Server

Upgrading PHP for PHPACC

Brendon

Upgrading PHP for PHPACC
« on: November 26, 2002, 03:52:59 AM »
I have installed the PHP accelerator. However, it required a newer ZEND engine than the one that comes with sme5.5. I have tried several times to use the php updates in the contrib section of the e-smith server but it won't work due to dependency issues.

Basically, I am asking if anyone can help me by pointing me to the right files to download and install as I am a bit confused as to which version I need.

I have done a search of the forums but nothing useful has come up.

Cheers,

Brendon

Dan Brown

Re: Upgrading PHP for PHPACC
« Reply #1 on: November 26, 2002, 04:25:38 AM »
I've built RPMs of PHP 4.2.2 which _should_ work with SME 5.5.  You'll be looking for the ones tagged _rh72 as part of the filename in the i386 directory.  I haven't built 4.2.3 yet; didn't realize it was out until I checked at php.net just now.  If the accelerator needs 4.2.3, I don't know of any RPMs of that yet.

Brendon

Re: Upgrading PHP for PHPACC
« Reply #2 on: November 26, 2002, 06:17:41 AM »
Thanks Dan,

I already tried those cause i read about them in another posting. They still had requirement issues. This is what comes up:

error: failed dependencies:
        php = 4.1.2-2es3 is needed by php-imap-4.1.2-2es3
        php = 4.1.2-2es3 is needed by php-ldap-4.1.2-2es3
        php = 4.1.2-2es3 is needed by php-mysql-4.1.2-2es3
        php = 4.1.2-2es3 is needed by php-pgsql-4.1.2-2es3


Cheers Dan,

You're doing great work!

Dan Brown

Re: Upgrading PHP for PHPACC
« Reply #3 on: November 26, 2002, 06:35:54 AM »
That means you also need to download the appropriate packages for php-imap, etc.  They're in the same directory.  I'm working on building RPMs of PHP 4.2.3, they may be up by tomorrow night.

Brendon

Re: Upgrading PHP for PHPACC
« Reply #4 on: November 26, 2002, 06:45:21 AM »
I've downloaded the following files:

php-4.2.2-1db_rh72.i386.rpm        php-mysql-4.2.2-1db_rh72.i386.rpm
php-devel-4.2.2-1db_rh72.i386.rpm  php-odbc-4.2.2-1db_rh72.i386.rpm
php-imap-4.2.2-1db_rh72.i386.rpm   php-pgsql-4.2.2-1db_rh72.i386.rpm
php-ldap-4.2.2-1db_rh72.i386.rpm   php-snmp-4.2.2-1db_rh72.i386.rpm


is there any more that i need, They're all in the same directory and this is the command that i execute to get the error that i gave in the second post:

rpm -Uvh php-4.2.2-1db_rh72.i386.rpm  

Cheers,

Brendon

Dan Brown

Re: Upgrading PHP for PHPACC
« Reply #5 on: November 26, 2002, 07:23:15 AM »
If you only tell it to install php, it'll only try to install php, even if it needs the other packages, and you have them.  If you want to install all of them, you need to say so--like this: 'rpm -Uvh *'.

Charlie Brady

Re: Upgrading PHP for PHPACC
« Reply #6 on: November 26, 2002, 06:14:38 PM »
Dan Brown wrote:

> If you only tell it to install php, it'll only try to install
> php, even if it needs the other packages, and you have them.
> If you want to install all of them, you need to say so--like
> this: 'rpm -Uvh *'.

If you only wish to upgrade RPMs which have earlier versions already installed, use "-Fhv" rather than "-Uhv". I see no reason to install "php-devel", for instance - and installing it may cause problems if you try to upgrade in the future. Search here for "php-manual" for evidence.

Charlie

Dan Brown

Re: Upgrading PHP for PHPACC
« Reply #7 on: November 26, 2002, 06:23:27 PM »
Good point, Charlie.  FWIW, in the 4.2.3 packages I built last night (should be going up tonight to my contrib area), I've finally fixed the dependency in php-manual to just require php >= 4.0.  Seems much more sensible than requiring the exact version and release.

Brendon

Re: Upgrading PHP for PHPACC
« Reply #8 on: November 27, 2002, 05:07:43 AM »
Heh! i screwed up a bit on the devel one! I installed it by mistake. Things are still working so i guess that's one positive thing.

I still get those dependency errors even if I use -Fvh. Strangly the dependency errors are all talking about an earlier version of PHP? Is that because I am trying to upgrade a package that has other packages depending on it?

Anyway, the only reason I need to do this is to get an updated Zend engine. Php Accelerator says that the one that I have was compiled last year. Seems strange to me!

Cheers,

Brendon

Dan Brown

Re: Upgrading PHP for PHPACC
« Reply #9 on: November 27, 2002, 04:12:58 PM »
Do you get those dependency errors when you do rpm -Fvh *?  Strange...

Brendon

Re: Upgrading PHP for PHPACC
« Reply #10 on: November 28, 2002, 09:57:14 AM »
Heh! no, I didn't try that. It works, the only dependency errors are for postgresql but that's not installed anyway.

Unfortunately that didn't fix the initial problem being the age of the zend engine. I get this error with php accelerator when i try to start php.

the ionCube PHP Accelerator requires Zend Engine API version 20021010.
The Zend Engine API version 20010710 which is installed, is outdated.

I have done a bit of searching and came to the conclusion that i needed to upgrade php to upgrade the zend engine. Obviously not! :)

Thanks for your help Dan, I'll keep searching. I have read of others in this forum that did install phpacc without a hitch. hmmm!

cheers,

Brendon