Home  >  Article  >  Backend Development  >  php7 php-fpm 显示空白页原因一例

php7 php-fpm 显示空白页原因一例

WBOY
WBOYOriginal
2016-06-23 13:15:301425browse

配置nginx php 7  mariadb过程中出现,php页面显示空白页,其原因在于/etc/nginx/conf.d/default.conf中php小结,需要有如下语句:

fastcgi_param  SCRIPT_FILENAME  /var/www/htdocs/$fastcgi_script_name;

其中/var/www/htdocs可以根据自己实际情况定义。

另外,php7安装包有php_fpm.server可以为centos 7 systemctl配置系统服务。在 sapi/fpm下。

该文件里${prefix}, ${exec_prefix}要改成相应实际的目录。


另外,除php7外用tar包,configure make ;make install安装外,nginx,mariadb均通过通过yum rpm来简单安装。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn