Answer the question
In order to leave comments, you need to log in
Why can I get 404 when logging into the WP+NGINX admin panel?
Transferred the site from the hosting to my VPSku (DO)
Everything went smoothly, but the problem arose when logging into the admin area
at https://www.global-homes.co.uk/wp-login.php or https://www.global -homes.co.uk/wp-admin/index.php
does not redirect - always gives 404 error
Didn't work tightly with wordpress, can you tell me what's the catch?
server logs (wp-login.php) writes this
*1 FastCGI sent in stderr: "PHP message: PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/global-homes.co.uk/html/wp-content/themes/customtheme/framework/lib/qode.framework.php on line 92
PHP message: PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/global-homes.co.uk/html/wp-content/themes/customtheme/framework/lib/qode.framework.php on line 92
PHP message: PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/global-homes.co.uk/html/wp-content/themes/customtheme/framework/lib/qode.framework.php on line 92
PHP message: PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/global-homes.co.uk/html/wp-content/themes/customtheme/framework/lib/qode.framework.php on line 92" while reading response header from upstream, client: 85.101.203.63, server: glob$
server {
listen 80;
listen [::]:80;
server_name global-homes.co.uk www.global-homes.co.uk;
return 301 https://global-homes.co.uk$request_uri;
root /var/www/global-homes.co.uk/html;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
#SSL сертификаты от let's encrypt
ssl_certificate /etc/letsencrypt/live/global-homes.co.uk/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/global-homes.co.uk/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/global-homes.co.uk/chain.pem;
include /etc/nginx/snippets/ssl.conf;
access_log /var/log/nginx/global-homes.access_log;
error_log /var/log/nginx/global-homes.error_log info;
root /var/www/global-homes.co.uk/html;
server_name global-homes.co.uk www.global-homes.co.uk;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$args;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
}
Answer the question
In order to leave comments, you need to log in
Hello Alexander!
As a solution, you can look at this page , also there is information on this problem on the
official website in this article
. the error itself means that this admin page does not exist as such. In your case, there is no such path to this page.
Warm and sunny summer!
I have one project, more precisely the server on which it is spinning, issues 404 and does not start PHP until you change the access settings to 644 (Permissions: rw-r--r--). On another server, only 755 starts and only with the condition that the directories are set to 777.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question