所以我需要在ubuntu-16.04-server-amd64上安装PHP 5.4 . 其他一些线索暗示
-
sudo add-apt-repository ppa:ondrej / php5-oldstable
-
sudo apt-get update
-
sudo apt-get install -y php5
但这些不起作用,因为更新时会出现错误 .
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.
建议的行动方案是什么?
1 回答
你可以使用docker吗?另一种方法只能从源代码编译php
/host/to/path/app
- 您的应用的路径和/host/to/path/config_apache
- 您的apache配置的路径(通过此链接进行配置的基本文件https://github.com/romeOz/docker-apache-php/blob/master/5.4/configs/app.conf)然后up容器为mysql
当
/host/to/path/data
- 您的数据库数据的路径现在您可以使用http://localhost:8080上的主机
db
App使用数据库