Koozali.org: home of the SME Server

PHP 5.5 and Horde 5.2

Offline edb

  • *
  • 548
  • +0/-0
PHP 5.5 and Horde 5.2
« 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
......

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: PHP 5.5 and Horde 5.2
« Reply #1 on: May 18, 2017, 07:10:36 PM »
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)

Offline edb

  • *
  • 548
  • +0/-0
Re: PHP 5.5 and Horde 5.2
« Reply #2 on: May 18, 2017, 07:39:30 PM »
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.
......

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: PHP 5.5 and Horde 5.2
« Reply #3 on: May 18, 2017, 07:44:10 PM »
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.

Offline edb

  • *
  • 548
  • +0/-0
Re: PHP 5.5 and Horde 5.2
« Reply #4 on: May 18, 2017, 07:51:57 PM »
Ok thank you I will have to have a look at that.
First time I've heard of it. :)
......

Offline edb

  • *
  • 548
  • +0/-0
Re: PHP 5.5 and Horde 5.2
« Reply #5 on: May 18, 2017, 11:28:49 PM »
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.
......

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: PHP 5.5 and Horde 5.2
« Reply #6 on: May 19, 2017, 12:23:27 AM »
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.

Offline edb

  • *
  • 548
  • +0/-0
Re: PHP 5.5 and Horde 5.2
« Reply #7 on: May 19, 2017, 12:41:05 AM »
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:
Code: [Select]
[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:
Code: [Select]
[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
Code: [Select]
expand-template /etc/php.ini followed by
Code: [Select]
/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
......

Offline edb

  • *
  • 548
  • +0/-0
Re: PHP 5.5 and Horde 5.2
« Reply #8 on: May 19, 2017, 02:46:05 AM »
Ok I figured out how to do it via db commands and here is what it looks like:
Code: [Select]
[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
Code: [Select]
[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
......