Skip to content

Instantly share code, notes, and snippets.

@lasselehtinen
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lasselehtinen/1cb828fe8e405cb83fa5 to your computer and use it in GitHub Desktop.
Save lasselehtinen/1cb828fe8e405cb83fa5 to your computer and use it in GitHub Desktop.
Laravel 5.1 and require php>=5.5.9

Background

Laravel 5.1 will be the first LTS version of Laravel and it was just announced that the minimal requirement for PHP would be version >=5.5.9. So as I was checking my own environments, I thought it might be fun to list the default PHP versions for most popular Linux distributions. Please note that these the PHP versions installed out of the box without configuring external repositories. Some distros like the Amazon AMI do actually provide the packages for PHP 5.6 but you have to ask those specifically.

Results

Distro PHP version
Ubuntu 14.04.2 LTS 5.5.9
Red Hat Enterprise Linux Server release 7.1 (Maipo) 5.4.16
CentOS Linux release 7.1.1503 (Core) 5.4.16
Debian GNU/Linux 8.0 (jessie) 5.6.7-1
Amazon Linux AMI 2015.03 5.3.29
Fedora release 21 (Twenty One) 5.6.9

If there is some distro that you would like to see in this list, please let me know.

My distro has php < 5.5.9 so now what?

So here are links on how to upgrade your PHP version to a newer version on those distributions that ship too old PHP version by default.

CentOS and Red Hat

http://www.if-not-true-then-false.com/2011/install-nginx-php-fpm-on-fedora-centos-red-hat-rhel/

Amazon AMI

http://serverfault.com/questions/566527/update-php-with-yum-on-amazon-linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment