8

Tomorrow will be release PHP 7, how Ubuntu plans to support it? It will be available at least in official LTS repository or we need to wait the next Ubuntu release?

  • The folks at Zend might release their own repositories the same way they've done with the beta version (of course this is just a guess). But even if they don't, someone else probably will. – Sledge Hammer Dec 2 '15 at 11:55
  • @SledgeHammer yes I know, I'm curious about Ubuntu repository... – vinc-q Dec 2 '15 at 11:57
  • I reported a "bug" on launchpad to include php7. I hope to see soon a php7 package in supporting Ubuntu versions. – vinc-q Dec 4 '15 at 8:04
  • 1
    Possible duplicate of How to install PHP 7? – thomasrutter Mar 21 '16 at 3:57
5

The new upstream PHP 7.0 won't be supported in existing releases. The policy on bringing new stuff to existing releases is very clear on that -> only security releases go in. You can read about the Ubuntu policy here: https://wiki.ubuntu.com/StableReleaseUpdates

The good news is that Ubuntu 16.04 LTS will be released with PHP 7.0 packages. Nish from Canonical made an heroic effort to push my Debian packaging into Ubuntu 16.04 and he has also updated many packages that depend on PHP and cleaned up the rest that doesn't support PHP 7.0 (yet or never will).

If you want to use PHP 7.0 on older Ubuntu releases, the only way is to use some external means, like my ppa:ondrej/php PPA that carry co-installable PHP 5.6 and PHP 7.0 for Ubuntu 14.04 and later.

|improve this answer|||||
  • Thank you, but I would never use a PPA in a production system. – vinc-q Dec 3 '15 at 9:34
  • Then you are out of luck for existing Ubuntu releases, because wiki.ubuntu.com/StableReleaseUpdates – oerdnj Dec 9 '15 at 9:41
  • I trust in your PPA, maybe this time I'll make an exception. Do you think that will be included in Ubuntu 16.04? – vinc-q Dec 9 '15 at 10:02
  • I spoke to Ubuntu PHP maintainer and PHP 7.0 might make it to Ubuntu 16.04. But no promises, that's yet to be decided. – oerdnj Dec 22 '15 at 21:36
  • 3
    @Andrew It's there: packages.ubuntu.com/xenial/php/php7.0 – DigNative Jan 11 '16 at 18:52
-1

PHP 7.0 is currently available in Ubuntu 16.04 LTS BETA. I run it myself and it works.

Additionally, PHP 7 appears as package "php" and php5 as "php5".

enter image description here

|improve this answer|||||
  • 1
    This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review – Pilot6 Mar 19 '16 at 9:19
  • 1
    Please don't post screenshots of text. Copy the text here and apply code formatting. – muru Mar 21 '16 at 3:40
  • 1
    You don't need a screenshot for that. Install SSH on your VM, SSH to it from your local system, and copy away to your heart's desire. – muru Mar 21 '16 at 3:48
  • 1
    Why should I bother about an answer that's no better than a comment? And no, the PHP 7 packages are named php7.0 etc. php depends on php7.0 as the first option. – muru Mar 21 '16 at 3:51
  • 1
    FYI: the other answer is still true: Ubuntu 12.04 and 14.04 don't and won't get PHP 7. – muru Mar 21 '16 at 4:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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