安裝PHP 5.4,所以我需要在Ubuntu-16.04-服務器AMD64安裝PHP 5.4。一些其他線程建議在Ubuntu
- 須藤附加的apt-庫PPA:的Ondrej/PHP5-oldstable的
- sudo易於得到更新
- 命令和apt-get安裝PHP5 -y
但這些因爲更新發生錯誤,所以不起作用。
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu/dists/xenial/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
對此有何建議?
請參閱http://stackoverflow.com/questions/39824219/install-php-5-3-or-5-4-on-ubuntu-16-04-xenial-and-apache – markdwhite
如有疑問,從源代碼編譯。 – apokryfos
在這裏,你可以嘗試另一個鏈接https://www.dev-metal.com/how-to-install-latest-php-5-4-x-on-ubuntu-12-04-lts-precise-pangolin/ – Yolo