标签:erro rmi height star tps line open denied php版本
1、网站无法使用旧版本php解析?
原因分析:安装时使用了默认版本或版本过低。
解决方法:安装指定php版本(以php7.1.*为例);指令为如下所述。
yum -y remove php*
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum repolist all
yum -y install php71w php71w-pear php71w-devel #安装php7.1版本
php -v
systemctl restart httpd
2、网站不能正常解析?http error500?
原因分析:内部服务器错误。
解决方法:
sed -i ‘s/display_errors = Off/display_errors = On/‘ /etc/php.ini
sed -i ‘s/display_startup_errors = Off/display_startup_errors = On/‘ /etc/php.ini
systemctl restart httpd
3、网站无法访问install.php?
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Fatal error: Unknown: Failed opening required ‘/var/www/html/install.php‘ (include_path=‘.:/usr/share/pear:/usr/share/php‘) in Unknown on line 0
原因分析:install.php无可执行权限。
解决方法:chmod 777 install.php
标签:erro rmi height star tps line open denied php版本
原文地址:https://www.cnblogs.com/chalon/p/13283967.html