Koozali.org: home of the SME Server
Obsolete Releases => SME Server 8.x => Topic started by: Smallbox on October 23, 2011, 04:33:42 PM
-
After update my SME Server 8, I get php 5.3 which doesn't work with Zend Optimizer...
How I can remove php 5.3 and return on version 5.2?
-
there's no php5.3 on SME8.. you'd have installed it in another way, not via update..
did you enable any external repo?
-
there's no php5.3 on SME8.. you'd have installed it in another way, not via update..
did you enable any external repo?
Thanks. How I can load Zend Optimizer on PHP 5.3?
-
How I can load Zend Optimizer on PHP 5.3?
According to this post (http://files.zend.com/help/Zend-Server/rpm_installation.htm), and assuming you installed PHP 5.3 from 'smeupdates-testing' like I did, it looks like you need to setup the zend and zend-noarch repos:
/sbin/e-smith/db yum_repositories set zend repository \
Name 'Zend Server' \
BaseURL 'http://repos.zend.com/zend-server/rpm/$basearch' \
EnableGroups no \
GPGCheck yes \
GPGKey http://repos.zend.com/zend.key \
Visible no \
status disabled
/sbin/e-smith/db yum_repositories set zend-noarch repository \
Name 'Zend Server - noarch' \
BaseURL 'http://repos.zend.com/zend-server/rpm/noarch' \
EnableGroups no \
GPGCheck yes \
GPGKey http://repos.zend.com/zend.key \
Visible no \
status disabled
expand-template /etc/yum.smerepos.d/sme-base.repo
Then to install the PHP 5.3 version of Zend:yum --enablerepo=zend --enablerepo=zend-noarch install zend-server-php-5.3
However, the above yum command generates the following failure and aborts:
php-devel-5.3.3-1.el5.sme.1.1.i386 from installed has depsolving problems
--> Missing Dependency: php = 5.3.3-1.el5.sme.1.1 is needed by package php-devel-5.3.3-1.el5.sme.1.1.i386 (installed)
Error: Missing Dependency: php = 5.3.3-1.el5.sme.1.1 is needed by package php-devel-5.3.3-1.el5.sme.1.1.i386 (installed)
-
I'm not sure you want to do that... you could try it if you want though...You are about to replace your php rpms with a whole new set from zend. If you really wanted to, do:
rpm -e --nodeps php-devel
....and then the same yum command you tried and your error will be gone. Except it looks like the free version is installed with zend-server-ce-php-5.3 (community edition) and not zend-server-php-5.3
This might be what you're looking for though instead, and should install with SME's php-5.3.3 rpms
http://pkgs.org/centos-5-rhel-5/atomic-i386/php-zend-guard-loader-5.5.0-3.el5.art.i386.rpm.html
updated - http://www.zend.com/products/guard/downloads says zend-guard-loader is for php 5.3 and zend optimizer for php 5.1/5.2
-
there's no php5.3 on SME8.. you'd have installed it in another way, not via update..
Stefano, on a similar matter, I am a bit confused with PHP after a 7.5.1 to 8.0b6 upgrade. First:
# rpm -qf /usr/bin/php
php-cli-5.3.3-1.el5.sme.1.1
# yum provides /usr/bin/php
Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile
* base: ftp.otenet.gr
* smeaddons: mirror.chiropratique.org
* smeextras: mirror.chiropratique.org
* smeos: mirror.chiropratique.org
* smeupdates: mirror.chiropratique.org
* smeupdates-testing: mirror.chiropratique.org
* updates: ftp.otenet.gr
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
php-cli-5.3.3-1.el5.sme.1.i386 : Command-line interface for PHP
Repo : smeupdates-testing
Matched from:
Filename : /usr/bin/php
php-cli-5.3.3-1.el5.sme.1.1.i386 : Command-line interface for PHP
Repo : smeupdates-testing
Matched from:
Filename : /usr/bin/php
php-cli-5.3.3-1.el5.sme.1.0.i386 : Command-line interface for PHP
Repo : smeupdates-testing
Matched from:
Filename : /usr/bin/php
php-cli-5.2.10-1.el5.sme.i386 : Command-line interface for PHP
Repo : smeos
Matched from:
Filename : /usr/bin/php
php53-cli-5.3.3-1.el5_6.1.i386 : Command-line interface for PHP
Repo : base
Matched from:
Filename : /usr/bin/php
php-cli-5.1.6-27.el5_5.3.i386 : Command-line interface for PHP
Repo : base
Matched from:
Filename : /usr/bin/php
php-cli-5.3.3-1.el5.sme.1.1.i386 : Command-line interface for PHP
Repo : installed
Matched from:
Other : Provides-match: /usr/bin/php
Just a couple of questions here, and please pardon the newbiness: I did not do the upgrade, someone else did and screwed up things in the process.
1) Should the smeupdates-testing branch be active in a 8.0b6 installation or not?
2) Do I have the "correct" php for 8.0b6
3) If I don't, what should be done to have a "stock" 8.0b6?
-
php-cli-5.3.3-1.el5.sme.1.1.i386 : Command-line interface for PHP
Repo : installed
Looks like you have 8.0b6 plus at least the php rpms from smeupdates-testing, and I'm guessing all of smeupdates-testing, meaning you have all the rpms that are to be included in SME 8.0b7 except an updates smeserver-release rpm. Keep smeupdates-testing enabled until there is a final 8.0 version.
Do:
rpm -qa | grep zend
...to see if there are old zend rpms you might want to remove
And
wget http://www6.atomicorp.com/channels/atomic/centos/5/i386/RPMS/php-zend-guard-loader-5.5.0-3.el5.art.i386.rpm
yum locainstall php-zend-guard-loader-5.5.0-3.el5.art.i386.rpm
sv t httpd-e-smith
...to install zend guard loader (previously zend optimizer)