5

See the wiki which says the minimum level is 5.4+

But see this linked page from the wiki which recommends 5.6 with a bare minimum of 5.3.10.

See also the system status for release 4.7 which says the minimum recommendation is 5.5

Which is it?

2

2 Answers 2

6

CiviCRM PHP requirements recommends PHP5.5 or greater, and notes PHP5.3.10 is the bare minimum required. As well as this, you want to be sure your PHP version is actively getting security updates, and also consider what PHP versions CiviCRM is tested with.

As of Feb 2016, I recommend PHP5.6 -

  • Support ended for PHP5.3 in 2014, and for 5.4 in 2015.
  • PHP 5.5 is getting only security fixes until mid 2016.
  • PHP 5.6 is actively supported until Dec 2017, with security fixes until Dec 2019.
  • CiviCRM doesn't run on PHP7 yet ... (CRM-17789: Support PHP7).

NB: Distributions may backport security fixes for older versions after those dates; please do your own diligence on whether your PHP version is secure :)

5
  • Make sure that you say PHP 5.3.10 as a bare minimum. CentOS 6.7 has PHP 5.3.3, which it would not allow when I upgraded from 4.6.11 to 4.7.0. Hence the mess I'm trying to sort out now.
    – G H
    Feb 11, 2016 at 13:55
  • Done, thanks. If CentOS / RHEL still ship 5.3.x, I hope they are backporting security fixes for it! Feb 11, 2016 at 17:14
  • Backporting is what has made RHEL the standard for server installs and why CentOS/Scientific exist. In fact, from what I understand of their backporting process, even a number of the newer PHP functions get backported to their 5.3.3 branch. (As with many of their other packages.)
    – G H
    Feb 11, 2016 at 17:23
  • As of the 4.7 release we recommend 5.5+ with the bare minimum requirement still at 5.3.10. I've updated your answer and the wiki page to match.
    – Coleman
    May 27, 2016 at 22:14
  • If you've got Centos6 or RHEL6, then I recommend you use ius.io to update php to 5.6.
    – Alan Dixon
    Jun 7, 2016 at 18:58
1

Chris' answer is correct. However, a coworker reported at least one instance of an extension that did not run correctly on PHP 5.3 (I'm afraid I don't know which), so this answer applies to core CiviCRM only.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.