Roots Discourse

Blank page after migration

i am getting blank page after migration i tested by entering the wrong db pasword and it was showing the Error establishing a database connection so php is workig file

the nginx config : (the same config was used in production)

os : centos 8.1
database : maraidb 10.4
php : 7.4.7
cache : memcached / varnish / opcache (off for now)
webserver : nginx 19

server {
	    listen 80;
        server_name xxxxxx;
        root /home/html/web;
        index index.php;

        location = /favicon.ico {
                log_not_found off;
                access_log off;
        }

        location = /robots.txt {
                allow all;
                log_not_found off;
                access_log off;
        }

         location ~ /app/uploads/.*.php$ {
             deny all;
         }

        location / {
            try_files $uri $uri/ /index.php?$args;
          }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|wmv|3gp|avi|mpg|mpeg|mp4|flv|mp3|mid|wml|swf|pdf|doc|docx|ppt|pptx|zip)$ {
                expires max;
                log_not_found off;
                add_header Pragma public;
                add_header Cache-Control "public, must-revalidate, proxy-revalidate";
        }


        location ~ [^/]\.php(/|$) {
		fastcgi_split_path_info ^(.+?\.php)(.*)$;
                try_files $uri =404;
		fastcgi_pass unix:/var/run/php-fpm/www.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
                include fastcgi_params;
             
        }

}

You probably already have and know… but have you checked the error_log for that site?

i think its the db as i movied from percona 8 server for mysql to mariadb

  1. So there are no errors/warnings/notices logged by PHP in
    the site error_log and also not the in the php-fpm error log files?
  2. Does nginx log the request to that (blankly served) page?
  3. Does php-fpm log the request (access log)?
  4. Can you access static files of that WordPress site?
  5. Is this a bedrock / trellis site? Have you checked the .env file and the vault.yml?
  6. Can you connect to it using the WP-CLI?