当前位置:首页 > PHP问题 > 正文内容

nginx无法访问php【php问题】,nginx,php

搜教程4年前 (2019-11-27)PHP问题175

nginx设置中,关于php的设置有错会致使nginx无法接见php。

找不到接见php找不到文件,修正下面设置

nginx.conf:

location ~ \.php$ {
        proxy_pass   http://127.0.0.1:80;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        #fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
        #fastcgi_param SCRIPT_FILENAME /$document_root$fastcgi_script_name;
        fastcgi_param  SCRIPT_FILENAME  /usr/share/nginx/html$fastcgi_script_name;
        include        fastcgi_params;
    }

以上就是nginx无法接见php的细致内容,更多请关注ki4网别的相干文章!

扫描二维码推送至手机访问。

版权声明:本文由搜教程网发布,如需转载请注明出处。

本文链接:https://www.sojiaocheng.cn/13510.html

标签: nginxphp
分享给朋友:

“nginx无法访问php【php问题】,nginx,php” 的相关文章

好用的头脑导图引荐:百度头脑脑图及使用方法【php问题】,百度思维脑图

好用的头脑导图引荐:百度头脑脑图及使用方法【php问题】,百度思维脑图

这篇文章重要引见了关于好用的头脑导图引荐:百度头脑脑图及运用方法,有着肯定的参考价值,如今分享给人人,有须要的朋侪能够参考一下 当我们开辟一个项目之前,项目许多功用,主意都在本身脑子里,要表达给他人,纯真的沟通,会使他人很难明白。这个时刻我们就须要在沟通之前,把头脑脑图做好。 如何写头脑...

php array_rand函数怎样用【php问题】,php array_rand

php array_rand函数怎样用【php问题】,php array_rand

php array_rand函数用于返回数组中的随机键名,或许假如您划定函数返回不只一个键名,则返回包括随机键名的数组。其语法是array_rand(array,number),参数array是必须,指划定数组。 php array_rand函数怎样用? 作用:返回数组中的随机键名,或许...

php connection_status函数怎样用【php问题】,php connection_status

php connection_status函数怎样用【php问题】,php connection_status

php connection_status函数用于返回当前的衔接状况,其语法是connection_status(),返回值是返回衔接状况位字段。 php connection_status函数怎样用? 定义和用法 connection_status() 函数返回当前的衔接状况。 可...

php mysqli_num_fields函数怎样用【php问题】,php,mysqli_num_fields

php mysqli_num_fields函数怎样用【php问题】,php,mysqli_num_fields

php mysqli_num_fields函数用于返回效果集合字段(列)的数目,其语法是mysqli_num_fields(result),参数result必须,指划定由 mysqli_query()、mysqli_store_result() 或 mysqli_use_result() 返回的效果...

php date_default_timezone_set函数怎样用【php问题】,php,date_default_timezone_set函数

php date_default_timezone_set函数怎样用【php问题】,php,date_default_timezone_set函数

date_default_timezone_set()函数是PHP中的内置函数,用于设置剧本中所有日期/时候函数运用的默许时区。假如时区无效,则此函数返回False,不然返回True。 php date_default_timezone_set()函数怎样用? php date_de...

php strip_whitespace函数怎样用【php问题】,php strip_whitespace

php strip_whitespace函数怎样用【php问题】,php strip_whitespace

php strip_whitespace函数用于返回已删除 PHP 解释以及空缺字符的源代码文件,其语法是strip_whitespace(filename),参数filename必须,划定文件名。 php strip_whitespace函数怎样用? 定义和用法 strip_whit...