当我尝试打开theme.editor.php时出错

mo49yndu  于 2022-12-10  发布在  PHP
关注(0)|答案(1)|浏览(178)

我试图打开https://isin.ir/wp-admin/theme-editor.php和自定义我的主题我得到错误

Request Timeout
This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase 'Connection Timeout'.

这件事我做了增加max_execution_time在php.ini添加define( 'DISALLOW_FILE_EDIT', false );到wp-config.php当我改变主题这个问题被解决了

rkue9o1l

rkue9o1l1#

嗨,在我看来,如果你使用这个代码,你的问题修复

server {
        listen 4050;
        listen [::]:4050;

        # 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/deltatechco.ir;

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

        server_name deltatechco.ir www.deltatechco.ir;

        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:/var/run/php/php7.4-fpm.sock;
        #       # With php-cgi (or other tcp sockets):
        #       fastcgi_pass 127.0.0.1:9000;
        }

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        location ~ /\.ht {
               deny all;
        }
}

相关问题