ClearOS Documentation

×

Warning

301 error for file:https://clearos.com/dokuwiki2/lib/exe/css.php?t=dokuwiki&tseed=82873f9c9a1f5784b951644363f20ef8

User Tools

Site Tools


Upgrading to PHP 5.5.x in ClearOS 6

This is experimental and assumes you are already familiar with ClearOS. This will upgrade all your server, so only use if all your PHP apps support PHP 5.5 You should test this on a backup, as there is no rollback to PHP 5.3

This will break your Zarafa instance and you will get the following error message: “Not Found: PHP mapi extension not found”. In a quick test, WordPress, Joomla! and Tiki worked fine.

Special thanks to Rémi Collet

General steps to get PHP 5.3 and MySQL working

You can skip some of these steps if you are deploying on an existing system which already has PHP & MySQL.

  • You'll want to set a real domain name (subdomain is fine)
  • Get PHP (Web server) and MySQL from the marketplace
  • Initialize OpenLDAP with visiting PHP (Web server)
  • Incoming Firewall: Open HTTP & HTTPS
  • Start MySQL and set root password
  • Set default site

Get up to date

  • Activate the software repository app to make it easy to track
  • Activate the clearos-updates-testing repo to get latest code, with revamped webserver in 6.6 Beta 1 & Beta 2
  • Launch software updates (about 40 updates happen)

Check current version of PHP

cd /var/www/html
wget --output-document=tiki-check.php https://svn.code.sf.net/p/tikiwiki/code/trunk/tiki-check.php

visit example.org/tiki-check.php to check PHP version. You will be at 5.3.x

Adding Remi's key

cd /root
wget http://rpms.famillecollet.com/RPM-GPG-KEY-remi
rpm --import RPM-GPG-KEY-remi

Getting RPMs from Remi

cd /root
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

Updating to PHP 5.5

yum --enablerepo=remi-php55,remi,clearos-core update php*

You will see a lot of warnings. At this point, PHP 5.5 is installed but you need to reboot server. Just restarting Apache is not enough.

Reboot

reboot

Check Web PHP

visit example.org/tiki-check.php to confirm you are now at PHP 5.5.x

Check CLI

# php -v
PHP 5.5.14 (cli) (built: Jul 16 2014 11:10:19)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies

Get OPcache

yum install --enablerepo=remi,remi-php55 install php-opcache
service httpd restart

Todo

Related links

content/en_us/kb_howtos_upgrading_to_php_5.5.x.txt · Last modified: 2015/02/06 08:50 by dloper

https://clearos.com/dokuwiki2/lib/exe/indexer.php?id=content%3Aen_us%3Akb_howtos_upgrading_to_php_5.5.x&1575897209