Koozali.org: home of the SME Server
Obsolete Releases => SME 9.x Contribs => Topic started by: edb on May 18, 2017, 07:08:22 PM
-
Has anyone on SME Server 9.2 been able to upgrade both Horde to 5.2 and PHP to 5.5?
I have been successful in upgrading Horde to 5.2 thanks to JohnB but I would also like to upgrade my PHP to v5.5 but I don't want to break anything with Horde since it is working so good. Where would the PHP updated 5.5 version be and if anyone has done it what repo did you use?
Thanks
-edb
-
what do you need php5.5 for? you can install and enable for single ibay..
you can also enable for all the server, test and (if the case) disable it (AFAIK)
-
So you are saying I could install PHP 5.5 yet only enable it for a specific ibay and use the standard PHP 5.3 for everything else?
How would one go about doing that as it sounds like what I would want to do.
Wouldn't a new PHP install just upgrade the existing one.
Thanks.
-
Usually your approach is true. For php and a few other things there is something called sodtware collection : https://wiki.contribs.org/PHP_Software_Collections
This allow multiple configuration to live aside.
You can, with scl use php up to 7.1 for all servers or use a cgi version of php only for one ibay.
-
Ok thank you I will have to have a look at that.
First time I've heard of it. :)
-
Ok I installed as per the contrib and it went perfectly.
I then enabled PHP 5.5 on the one ibay and that seems to have worked hoever I just ran into an issue where the new php needs to have Zend Loader installed to run the Zend encrypted php files for the site.
Installing zend is pretty straigh forward however I'm a bit confused as to how I would do that now for the new PHP 5.5 version only.
If I can figure this out I think I'm all set.
-
https://wiki.contribs.org/PHP_Software_Collections#Find_other_RPMS
I would suggest to install the required rpm for each version at once, so if you decide to change the php version later you will not need to worry about dependencies.
-
Yup that is what I did and it worked great.
The only remaining issue I seem to have is with ZendGuardLoader.
Prior to changing this ibay to use the new php 5.5 it was running the default php 5.3 and I had a custom template with these entries:
[Zend]
zend_extension=/usr/local/Zend/php-5.3.x/ZendGuardLoader.so
zend_loader.enable=1
zend_loader.disable_licensing=0
extension=/usr/lib64/php/modules/pdf.so
But now I need the newer version of PHP 5.5 to be able to run the php5.5 version of ZendGuardLoader.so.
So I changed the custom template to the following:
[Zend]
zend_extension=/usr/local/Zend/php-5.5/ZendGuardLoader.so
zend_extension=/usr/local/Zend/php-5.5/opcache.so
zend_loader.enable=1
zend_loader.disable_licensing=0
extension=/usr/lib64/php/modules/pdf.so
However when I do an expand-template /etc/php.ini
followed by /etc/init.d/httpd-e-smith restart
it doesn't seem to be activating ZendGuardLoader on that php5.5 ibay.
Is there another way to do this?
Thanks
-
Ok I figured out how to do it via db commands and here is what it looks like:
[root@~]# config show php55
php55=configuration
AllowUrlFopen=Off
MaxExecutionTime=30
MaxFileUpload=20
MaxInputTime=60
MemoryLimit=128M
PhpModule=disabled
PostMaxSize=20M
UploadMaxFilesize=10M
extension=/usr/lib64/php/modules/pdf.so
zend_extension=/usr/local/Zend/php-5.5/ZendGuardLoader.so
zend_loader.disable_licensing=0
zend_loader.enable=1
I need to add one more line
[root@~]# config setprop php55 zend_extension /usr/local/Zend/php-5.5/opcache.so
But it just ends up replacing the first zend_extension entry so how do I add two?
Thanks