Forums

Resolved
0 votes
Hi!

PHP 5.5 was released 10 months ago:
http://php.net/archive/2013.php#id2013-06-20-1

PHP 5.6 is in beta:
http://docs.php.net/archive/2014.php#id2014-04-11-1

The next version of Tiki will require PHP 5.5 -> Our rapid frequent cycle pushes innovation but folks that don't have recent versions of PHP can stay on Tiki 12.x LTS (5 year support period). Reference: https://info.tiki.org/Version+Lifecycle

What is the best way to get PHP 5.5 / 5.6 on ClearOS 6,x?

Thanks!

M ;-)
Thursday, April 17 2014, 01:38 AM
Share this post:
Responses (29)
  • Accepted Answer

    Wednesday, January 24 2018, 04:43 AM - #Permalink
    Resolved
    0 votes
    We now have a long term solution for ClearOS 7.x:
    http://wikisuite.org/How-to-install-a-PHP-version-picker-on-ClearOS
    The reply is currently minimized Show
  • Accepted Answer

    AlanM
    AlanM
    Offline
    Monday, October 31 2016, 09:35 PM - #Permalink
    Resolved
    0 votes
    Marc Laporte wrote:

    An update: http://wikisuite.org/How-to-install-PHP-5-6-on-ClearOS


    I just did this on COS 7.2 instance and it works. (I don't use Zarafa so can't attest there) but it does break phpmyadmin. Just install adminer as recommended for a workaround.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, May 01 2016, 07:59 PM - #Permalink
    Resolved
    1 votes
    The reply is currently minimized Show
  • Accepted Answer

    Cevin
    Cevin
    Offline
    Tuesday, February 24 2015, 04:48 PM - #Permalink
    Resolved
    0 votes
    Hmm id love to see a newer version of PHP on clearos. It is currently pointing me to install older versions of Joomla, of OwnCloud and other applications i in the future might want to use.

    Time unfortunately is catching up with programming hours, and Clearos 6.6 still has the low version php issue as i write this :(:(:(:(:(

    For some reason i do not feel the need to break my installation again, after just having had a 2 weeks fight to get the server back up and running properly again...
    The reply is currently minimized Show
  • Accepted Answer

    Friday, February 13 2015, 12:45 AM - #Permalink
    Resolved
    0 votes
    Hi Tim,

    "If the demand is high enough I'll consider it ..."

    It may be that these times has come. I´ve just searched through about 7 explicit "How to upgrade PHP on COS6.5 with not breaking Zarafa services" threads and about 50 single posts on this.
    It seems, that native CO6.5 really lacks with PHP features are needed for nearly all current (and secure) CRMs and Cloud services.

    1) Have you been able to do more search on the php-mapi issue?
    2) Or, would you be so kind to let us know how we would be able to " just rebuild Zarafa to match your local updated PHP version"?

    BTW: I´ve bought the community version of Zarafa, so there would be no loss ... ;-)

    Many thanx on all updates on this
    Harald
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, August 19 2014, 09:57 PM - #Permalink
    Resolved
    0 votes
    Sorry missed this post!

    The short answer is sort of no as posted, but the long answer is yes, you just have to rebuild Zarafa to match your local updated PHP version... I was doing this with ClearOS 5 because PHP5.1.6 was so outdated,however to be honest it's quite a bit of extra development effort to maintain a separate build. If the demand is high enough I'll consider it :)

    For those want to disable the incompatible php-mapi plugin for now, just edit /etc/php.d/zarafa.ini and comment out the extension line, then restart the web service (httpd). This will of course prevent the webapp and webaccess functions from working
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, August 16 2014, 01:27 AM - #Permalink
    Resolved
    0 votes

    @Tim: do you know of a way to turn off Zarafa's MAPI features and permit usage of Zarafa for those who don't need it?


    In a nutshell, no:
    https://forums.zarafa.com/showthread.php?10683-Is-it-possible-to-run-Zarafa-without-the-PHP-mapi-extension

    Thanks!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 23 2014, 08:42 PM - #Permalink
    Resolved
    0 votes
    Thanks for that :)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 23 2014, 04:27 PM - #Permalink
    Resolved
    0 votes
    Yes, it will break Zarafa with the following message:

    Not Found: PHP mapi extension not found
    If you have upgraded zarafa, please restart Apache
    Zarafa WebApp can't start because of incompatible configuration.
    Please correct above errors, a good start is by checking your '/etc/php.ini' file.
    Or if you wish, you can disable this config check by editing the file '/usr/share/zarafa-webapp/config.php', but this is not recommend.

    In my quick tests, it works fine for Joomla!, WordPress and Tiki Wiki CMS Groupware. I didn't try ownCloud but I suspect it works fine as well.

    I updated the wiki page: http://www.clearfoundation.com/docs/howtos/upgrading_to_php_5.5.x

    @Tim: do you know of a way to turn off Zarafa's MAPI features and permit usage of Zarafa for those who don't need it?

    Thanks!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 23 2014, 10:13 AM - #Permalink
    Resolved
    0 votes
    Hi Marc

    Am I correct in assuming this WILL BREAK Zarafa?

    If so, perhaps this should be explicitly stated in the documentation, especially so as it is irreversible? :ohmy:
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 23 2014, 05:56 AM - #Permalink
    Resolved
    0 votes
    But until we have this future-proof solution, here is a guide to upgrade ClearOS 6.x from PHP 5.3.x to 5.5.x
    http://www.clearfoundation.com/docs/howtos/upgrading_to_php_5.5.x

    Please test and provide feedback.

    Thanks!
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, July 10 2014, 03:33 AM - #Permalink
    Resolved
    0 votes
    Yes, v7 is the answer! And we'll have a future-proof solution :-)

    Thanks!
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 07 2014, 07:47 PM - #Permalink
    Resolved
    0 votes
    Hi Marc,

    Marc Laporte wrote:
    Peter: having multiple versions available is more work. However, is there an easy way to get Apache to use the PHP 5.5 from SCL for all web requests?

    With the release of RHEL 7, there's less urgency in getting SCL rolled into ClearOS 6. That's a bummer, but we only have X number of development hours and RHEL 7 gives us a fresh start.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 07 2014, 08:28 AM - #Permalink
    Resolved
    0 votes
    Well I tried all that without success :(
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, July 06 2014, 06:30 AM - #Permalink
    Resolved
    0 votes
    Not much joy I'm afraid as the link to Remi's repo is empty :(

    but this link seems to work:
    http://copr.fedoraproject.org/coprs/rhscl/php54/repo/epel-6-x86_64/rhscl-php54-epel-6-x86_64.repo -O /etc/yum.repos.d/php54.repo


    Also found this....

    http://www.ondrejsimek.com/blog/running-multiple-php-versions-is-so-easy-with-fastcgi/

    Is this worth pursuing perhaps?
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, July 05 2014, 11:37 PM - #Permalink
    Resolved
    0 votes
    Thanks for the link Marc.

    I have 6.5 running in Virtualbox, so will give this a try :)
    The reply is currently minimized Show
  • Accepted Answer

    Friday, July 04 2014, 01:58 PM - #Permalink
    Resolved
    0 votes
    Yes Malcolm, it will become easier to have multiple versions of PHP available:
    http://blog.famillecollet.com/post/2013/11/07/Various-PHP-versions-on-an-Apache-server

    Peter: having multiple versions available is more work. However, is there an easy way to get Apache to use the PHP 5.5 from SCL for all web requests?

    In php.conf, there is: "AddHandler php5-script .php"
    How can this use 5.5?

    Thanks!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 02 2014, 08:29 AM - #Permalink
    Resolved
    0 votes
    Am I right in assuming this could solve the issue of needing different versions of PHP for Zarafa and the Joomla 3.3?

    I read the documentation on Remi's site but it is way beyond my comprehension :(

    And the video of his presentation is in French which is another thing!!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 21 2014, 11:58 PM - #Permalink
    Resolved
    0 votes
    Hi Marc,

    I'll dig into this once the 6.6.0 Beta is further along.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 20 2014, 03:12 PM - #Permalink
    Resolved
    0 votes
    I have the CLI (Command Line) version of PHP 5.4 & 5.5 working on ClearOS 6.x

    # yum --enablerepo=clearos-core install scl-utils
    # yum install https://www.softwarecollections.org/en/scls/rhscl/php55/epel-6-x86_64/download/rhscl-php55-epel-6-x86_64-1-2.noarch.rpm
    # yum install php55
    # scl enable php55 'php -v'
    PHP 5.5.6 (cli) (built: Mar 12 2014 14:59:18)
    Copyright (c) 1997-2013 The PHP Group
    Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies

    And for Apache 2.4:
    # yum install https://www.softwarecollections.org/en/scls/rhscl/httpd24/epel-6-x86_64/download/rhscl-httpd24-epel-6-x86_64-1-2.noarch.rpm
    # yum --enablerepo=clearos-core install httpd24

    Inspired by: https://www.softwarecollections.org/en/docs/quick-start/
    See also http://blog.famillecollet.com/public/Docs/IntroSCL.pdf , especially page 17.

    Now, an Apache rule is needed to get all .php files to execute with PHP 5.5. What would be a future-proof way of dealing with this? Ideally, in the ClearOS admin panel, we could pick the PHP version in general, and override per directory or domain.

    Thanks!
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, May 08 2014, 10:56 PM - #Permalink
    Resolved
    0 votes
    Hi!

    Please see:

    " The goal of SoftwareCollections.org is to promote packaging and distribution of useful open source software outside the standard repositories for Red Hat Enterprise Linux, Fedora, CentOS, and other operating systems that utilize the RPM package format.

    As part of this mission, we provide hosting and distribution for Software Collections (SCLs) developed by the community. We do not review source or packages for suitability of purpose, quality, or licensing – but we reserve the right to refuse or delete any packages or source code that does not comply with our policies. "

    Source:
    https://www.softwarecollections.org/en/docs/licensing/

    See also:
    https://www.softwarecollections.org/en/scls/remi/php55more/
    https://www.softwarecollections.org/en/scls/rhscl/php55/

    Best regards,

    M ;-)
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, April 27 2014, 09:40 AM - #Permalink
    Resolved
    0 votes
    You need a valid subscription to use RHEL beta repository and the CentOS SCL repository has version PHP54 which of course is on SCL 1.0. Then is the question when is version 1.1 of CentOS SCL available.

    When i searched the net i found this http://webtatic.com...


    The Webtatic Yum repository is a CentOS/RHEL repository containing updated web-related packages. Its main goals are:

    to provide CentOS/RHEL administrators with the latest stable minor releases of web development/hosting software, which are not provided in CentOS/RHEL distribution minor releases.
    to serve as an additional installation option for some of Webtatic’s projects.
    All packages are signed using GnuPG, and are verified using the Webtatic GPG key
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, April 26 2014, 10:30 PM - #Permalink
    Resolved
    0 votes
    PHP 5.4 EoL is in March 2015 according to: http://en.wikipedia.org/wiki/PHP

    Less than a year away (!)

    So when RHEL 7 comes out, there may be only a few months left...

    I wish PHP had LTS versions like Ubuntu, and many others. Tiki has a 5-year LTS:
    http://info.tiki.org/Version+Lifecycle

    Best regards,

    M ;-)
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, April 24 2014, 06:26 PM - #Permalink
    Resolved
    0 votes
    Dave Loper wrote:
    Even the RHEL 7 beta is using 5.4 which is NOT good news (although that could change closer to release.)


    It's still PHP 5.4 in the RHEL7 Release Candidate too.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, April 24 2014, 06:25 PM - #Permalink
    Resolved
    0 votes
    Hi Marc, Tim and Dave.

    Red Hat released "Software Collections" as a remedy to dealing with older versions of some packages, including PHP.

    - Here's a place to start:
    http://wiki.centos.org/AdditionalResources/Repositories/SCL

    - Here's a glance at the current versions on CentOS (PHP 5.4):
    http://mirror.centos.org/centos-6/6/SCL/x86_64/

    - And here's a blog post about the next "Software Collections" release that is currently in beta (PHP 5.5):
    http://developerblog.redhat.com/2014/03/20/rhscl-1-1-beta-available-apache-mongodb/

    I'm a bit surprised that this has not received more attention in the Red Hat community/ecosystem :ohmy:
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, April 23 2014, 05:02 PM - #Permalink
    Resolved
    0 votes
    You are the expert.

    tikisuite.org is waiting for your signal to be upgraded to 5.5 We need it for the Jitsi Provisioning.

    Thanks!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, April 23 2014, 12:28 PM - #Permalink
    Resolved
    0 votes
    Hi Marc, yes I've been experimenting with the Remi PHP builds, and v5.5 doesn't quite work yet.

    Check out:-
    http://rpms.famillecollet.com/enterprise/6/remi/x86_64/

    PHP 5.5 has some other library dependancies which make a little trickier upgrade (newer versions of gd, libicu required and also php-pecl-jsonc)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, April 23 2014, 06:33 AM - #Permalink
    Resolved
    0 votes
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, April 17 2014, 08:48 PM - #Permalink
    Resolved
    0 votes
    Probably the best way to go about this is to make a repo related to php 5.5 or php 5.6 and then turn that on. Even the RHEL 7 beta is using 5.4 which is NOT good news (although that could change closer to release.)
    The reply is currently minimized Show
Your Reply