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?

vinc-q
  • 91

2 Answers2

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.

oerdnj
  • 7,940
-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

  • 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 09:19
  • @Pilot6 What are you talking about? I answered about Ubuntu's plan's to support it. They are supporting it in the next LTS. – user1122069 Mar 21 '16 at 02:44
  • 1
    Please don't post screenshots of text. Copy the text here and apply code formatting. – muru Mar 21 '16 at 03:40
  • @muru The screenshot is for proof in case anyone asks where I got this from. The text is not relevant and should not be indexed. It is also not copiable, being from a virtual machine session. – user1122069 Mar 21 '16 at 03:47
  • 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 03: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 03:51
  • @muru The posted answer with 4 upvotes is outdated and incorrect, yet mine is down-voted. Why don't you format something useful yourself. – user1122069 Mar 21 '16 at 03:52
  • Take care, whoever finally votes to delete this post, to write a suitable answer so that there is at least one. – user1122069 Mar 21 '16 at 04:02
  • 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 04:09
  • I see, yes, the question was about 14.04. The OP did not even consider that Ubuntu was debating whether or not to include it in 16.04. This is a main result on Google search for the subject though, and none of the Google results tell about 16.04 having PHP 7, only guesswork. I don't know how I found it myself. I think I just ran the upgrade to the beta. – user1122069 Mar 21 '16 at 04:43
  • 1
    That's because questions about specific details in a future Ubuntu release are mostly off-topic and posting your half-baked answer here under the 14.04 tag just because your Google search results look inaccurate to you (mine have a result that links to packages.ubuntu.com/xenial/php7.0) doesn't rectify the situation it makes it worse. You only write that something exists and respond with a passive-aggressive attitude to constructive feedback. Don't expect that someone else writes the missing good parts of your answer for your benefit. Look at my top voted answer to see how it could be done. – LiveWireBT Mar 21 '16 at 09:47