安装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