简体   繁体   中英

PHP 5.6 Repository URL for Ubuntu 14.04 Trusty

I have PHP 5.6.18-1+deb.sury.org~trusty+1 and am trying to update to 5.6.19. However, when I do apt-get update && apt-get upgrade, PHP does not get updated.

I have tried add-apt-repository ppa:ondrej/php5-5.6 as well as manually adding in deb http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu trusty main to my sources.list file to no avail.

How can I update PHP to 5.6.19 and make sure I don't run into this problem again in the future?

The ppa:ondrej/php5-5.6 repository is discontinued in favour of just ppa:ondrej/php . At the time of writing, this gives me an up-to-date version of PHP 5.6:

php --version
PHP 5.6.27-1+deb.sury.org~trusty+1

Note that, once you've added the repository, you'll need to uninstall any packages beginning php5* and reinstall php5.6* equivalents; also, you will probably have to switch Apache modules. More information on some of the steps required on this blogpost .

Note that, because of the quirk of the package maintainer's name containing a non-ASCII character, you might also need to install eg language-pack-en to fix all your server locales first. There's some other suggestions of what to do on this ServerFault question but for me it was trivial to install the language pack and let that take care of all locale settings.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM