访问报错:Sorry, the page you are looking for is currently unavailable. Please try again later. 解决方法

An error occurred.

访问网页之后,突然报错
报错如图:
访问报错:Sorry, the page you are looking for is currently unavailable. Please try again later. 解决方法_第1张图片
经分析,发现是php-rpm未安装好。
安装PHP。
1、依次执行以下命令,安装PHP 7和一些所需的PHP扩展

rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

yum -y install php70w-tidy php70w-common php70w-devel php70w-pdo php70w-mysql php70w-gd php70w-ldap php70w-mbstring php70w-mcrypt php70w-fpm

2、执行以下命令,验证PHP的安装版本。

php -v

3、执行以下命令,启动PHP服务并设置开机自启动。

systemctl start php-fpm
systemctl enable php-fpm

再次访问,正常

你可能感兴趣的:(Php,Linux,Nginx)