PHP未加载

问题描述

我使用Nginx将Web服务器安装为Debian 10,并使用MariaDB安装了PHP7.3。 没有在浏览器中加载info.PHP,并且浏览器显示空白屏幕。我已经检查了错误日志,下面有几行: 错误是:

    - 2020/08/14 05:28:31 [info] 2782#2782: Using 32768KiB of shared memory for nchan in 
    /etc/Nginx/Nginx.conf:63
    - 2020/08/14 05:45:38 [info] 14940#14940: Using 32768KiB of shared memory for nchan in 
    /etc/Nginx/Nginx.conf:63
    - 2020/08/14 05:45:51 [info] 14949#14949: Using 32768KiB of shared memory for nchan in 
    /etc/Nginx/Nginx.conf:63
    - 2020/08/14 06:01:27 [info] 15179#15179: Using 32768KiB of shared memory for nchan in 
    /etc/Nginx/Nginx.conf:63
    - 2020/08/14 06:01:35 [info] 15188#15188: Using 32768KiB of shared memory for nchan in 
    /etc/Nginx/Nginx.conf:63
    - 2020/08/14 06:11:10 [info] 15370#15370: Using 32768KiB of shared memory for nchan in 
    /etc/Nginx/Nginx.conf:63

================================================ ========================

有人可以帮我解决问题吗?这也是服务器块的认配置:

server {
        listen 80 default_server;
        listen [::]:80 default_server;

        # SSL configuration
        #
        # listen 443 ssl default_server;
        # listen [::]:443 ssl default_server;
        #
        # Note: You should disable gzip for SSL traffic.
        # See: https://bugs.debian.org/773332
        #
        # Read up on ssl_ciphers to ensure a secure configuration.
        # See: https://bugs.debian.org/765782
        #
        # Self signed certs generated by the ssl-cert package
        # Don't use them in a production server!
        #
        # include snippets/snakeoil.conf;

        root /var/www/rs/html;

        # Add index.PHP to the list if you are using PHP
        index index.PHP index.html index.htm index.Nginx-debian.html;

        server_name _;

        location / {
                # First attempt to serve request as file,then
                # as directory,then fall back to displaying a 404.
                try_files $uri $uri/ =404;
        }

        # pass PHP scripts to FastCGI server
        #
        location ~ \.PHP$ {
               include snippets/fastcgi-PHP.conf;
        #
        #       # With PHP-fpm (or other unix sockets):
                fastcgi_pass unix:/run/PHP/PHP7.3-fpm.sock;
        #       # With php-cgi (or other tcp sockets):
        #       fastcgi_pass 127.0.0.1:9000;
        }
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)