PHP versions and updates on DirectAdmin servers

Post added: September 18, 2014.
Post updated:
January 8, 2015
September 13, 2016
April 24, 2018 – This post/article applies only for DirectAdmin servers!
(This post will be auto-updated upon new info)

Starting September 12, 2016 – PHP7 is available on all our servers and user-accounts!
NB! PHP7 still lacks Zend and ionCube support!
Also all of our servers have 3 PHP versions:
* PHP5.6 and PHP7 (that users can change/set automatically)
* PHP5.3 Legacy version (Users must contact customer support to downgrade/upgrade PHP versions from/to PHP5.3)

– Due to the fact that PHP version 5.3 is no longer being officially supported by the developers and on August 14 the official support has ended also PHP 5.5 official support has ended on July 21, 2016. All servers PHP versions have been updated to include latest (does not apply to those accounts, still using PHP5.3).

Starting September 12th it is already possible to use PHP 7 on all of our servers. To use PHP version 7 it must be activated in DirectAdmin. Newest stable version of PHP is 5.6 – We recommend that you switch to PHP 5.6 as soon as possible.

Starting September 13th, 2015 it is already possible to use PHP 5.5 on all of our servers. To use PHP version 5.5 it must be activated in DirectAdmin. We recommend that you switch to PHP 5.5 as soon as possible.

Starting January, 8th of 2016 – 12.00 default version of PHP on servers is 5.5. (More info on PHP versions and their change can be found from electronic newsletter sent by us in December or from our KnowledgeBase under category PHP here) Unoficially PHP 5.3 will be left as secondary PHP on our servers until March 2015 (NB! Given info/version usage may change earlier/later depending on releasing of Zend engine on PHP 5.5)

PHP default path is:
PHP 7: /usr/local/php70/bin/php
PHP 5.6: /usr/local/php56/bin/php or /usr/local/bin/php ( <- we recommend to use the last/always updated one!
PHP 5.3: /usr/local/php53/bin/php)

PEAR default path is:
/usr/local/php56/lib or /usr/local/php70/lib <- depending of PHP version number!
Important Information to ZEND/ionCube users!
If your PHP scripts is encoded with Zend, use of PHP 7 is not possible yet. Zend Guard/ionCube Loader does not support version 7 yet.
In most cases all PHP scripts should work as usual after the update, however, it might be possible that some scripts will fail to work. If you are using popular generally available software (like Joomla, WordPress, Drupal, Gallery, etc.), it is sufficient if you update the software to the newest version. If you use a self-made script, you must modify the script yourself or have someone else do it.

How to use different PHP versions:

– PHP version change instruction available here: http://kb.radicenter.ee/KB843

– If you want to test the performance of different versions of php, the file extension must be changed – .phpXX, where XX is the version number of PHP

(For example: PHP 5.6 testing should be with .php56 file extension)

Radicenter servers and PHP versions support:

7.012.09.2016 – …
5.615.08.2016 – …
5.513.09.2014 until 26.08.2016
5.4 – Not added to servers
5.3 – 01.01.2014 until 31.12.2015 (Unofficially until the end of 2nd half of 2018 <- NB! Timeline/deadline may change without prior notice!

PHP 7
PHP 5.6
PHP 5.5
PHP 5.3
PHP 5.2 -> 5.3 (Mandatory update)

PHP 7

NB! As PHP7 currently lacks support for Zend and ionCube – some functionality may not work correctly when customer upgrades PHP version on account!
5.6 > 7.0https://secure.php.net/manual/en/migration70.php
(If You are currently using older version of PHP than 5.5/5.6 on Your user-account, migrating Your website software/CMS/script to newer version can not be done easily – there may be need for replacing entire code on Your website or upgrading/migrating also websites software due to old functionality not beeing compatible with new PHP versions!)
Examples of major changes:
– EREG, MSSQL and MYSQL support is fully removed!
– PHP4 styled constructors and non-static functions are deprecated (additional errors are produced)
– More info, changelog and additional examples can be found on:
https://secure.php.net/manual/en/migration70.incompatible.php
https://secure.php.net/manual/en/migration70.deprecated.php
https://secure.php.net/manual/en/migration70.changed-functions.php
https://secure.php.net/manual/en/migration70.removed-exts-sapis.php

PHP 5.6

PHP 5.6 is beeing added to our servers starting 15.08.2016.
NB! Starting from 26.08.2016 – Newest PHP version on all our servers is PHP5.6
NB! As PHP5.6 is “minor update” from PHP5.5 – PHP’s functionality does not change much and all code should work as is/was – no additional notifications were sent to end-users. All scripts that were functioning properly under version 5.5 will function same under version 5.6 (depending on code and functionality used, some “custom scripts” may show additional error messages!)
5.5 > 5.6https://secure.php.net/manual/en/migration56.php
(If You are currently using older version of PHP than 5.5 on Your user-account, migrating Your website software/CMS/script to newer version can not be done easily – there may be need for replacing entire code on Your website or upgrading/migrating also websites software due to old functionality not beeing compatible with new PHP versions!)
Examples of major changes:
– CURL’s @File functionality changed
– unserialize() will produce errormessages upon code manipulation
– OpenSSL allows now for selecting SSL/TLS version
– More info, changelog and additional examples can be found on:
https://secure.php.net/manual/en/migration56.incompatible.php
https://secure.php.net/manual/en/migration56.deprecated.php
https://secure.php.net/manual/en/migration56.openssl.php
NB! Quick-fixes to common problems/errors upon 5.5 -> 5.6 minor update on websites can be found HERE (NB! Article is in Estonian)

PHP 5.5

Available from September 13th 2014 on all servers.
5.4 > 5.5http://ee1.php.net/migration55
It is possible to choose on a domain basis (Instructions can be found http://kb.radicenter.ee/KB843 )
NB! Starting from PHP 5.5 – mysql_query and mysql_pcconnect functions are deprecated and will not work properly!
PHP.NET recommends to use instead: MySQLi or PDO_MySQL
More info can be found on:
New: MySQLi Query
Old: MySQL Query
(NB! MySQLi also works in PHP versions 5.3 and 5.4!)

PHP 5.4

All PHP 5.4 updates are included in PHP 5.5
PHP 5.4 is not added to servers!
5.3> 5.4 – http://ee1.php.net/migration54

PHP 5.3

– PHP 5.3 official support has ended August 14th 2014 (http://php.net/eol.php).
– Our servers have the un-official support available up to the end of the year 2018. We have installed the latest security patch available for the PHP 5.3 version.

PHP functionality changes are described in following pages:

5.3> 5.4http://ee1.php.net/migration54
5.4> 5.5http://ee1.php.net/migration55

Why it is not possible to test PHP 5.3> PHP 5.4 migrate immediately?

1. Many users have asked for PHP 5.5 functionality / support
2. Why we are skipping PHP 5.4 support: “the official scheduled end” is year 2015 – this is not sustainable enough. PHP 5.5 is official support is planned till the end of 2016
3. All PHP 5.4 updates are included in PHP 5.5

PHP 5.2 -> 5.3 (Mandatory update)

This update was mandatory as to that moment there were no PHP 5.2 security updates nor patches. Also PHP 5.2 support had ended already 3 years ago!
More info can be found on: HERE

Comments are currently closed.