Developers Documentation



301 error for file:

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

visit to check PHP version. You will be at 5.3.x

Adding Remi's key

cd /root
rpm --import RPM-GPG-KEY-remi

Getting RPMs from Remi

cd /root
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.



Check Web PHP

visit 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


Related links

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