Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Brendon 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
-
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.
-
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!
-
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.
-
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
-
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 *'.
-
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
-
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.
-
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
-
Do you get those dependency errors when you do rpm -Fvh *? Strange...
-
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