index.php blank page NGINX

Posted December 29, 2021 161 views
NginxCentOS 8

index.php blank page NGINX please tell me step by step how to solve it

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hello, @Thinklatest

Have you checked our tutorials on How To Install Linux, Nginx, MySQL, PHP (LEMP) stack On CentOS server? Please find the links to the articles bellow

If you haven’t checked those tutorials then make sure to check them out because they cover the whole process pretty well.

If you’ve already completed the tutorial on your CentOS droplet then check if the Nginx and the PHP-FPM services are running and double-check the virtual host of your domain name (or the main block if you try to access the index.php page using the droplet IP address).

Hope that this helps!

by Mitchell Anicas
by Erika Heidi
In this guide, we'll get a LEMP stack installed on an CentOS 7 server. A LEMP software stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the Linux operating system, with the ENginx web server (which replaces the Apache component of a LAMP stack). The site data is stored in a MySQL database (using MariaDB), and dynamic content is processed by PHP.
  • i am using ubuntu 18
    installing Yiimp
    this is my config

    Source Generated by

    Updated by for crypto use…

    NGINX Simple DDoS Defense

    limitconnzone $binaryremoteaddr zone=connlimitperip:10m;
    conn connlimitperip 80;
    req zone=reqlimitperip burst=80 nodelay;
    reqzone $binaryremoteaddr zone=reqlimitperip:40m rate=5r/s;

    server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;

    set $base "/var/www/";
    root $base/web;
    # SSL
    ssl_certificate /etc/letsencrypt/live/;
    ssl_certificate_key /etc/letsencrypt/live/;
    ssl_trusted_certificate /etc/letsencrypt/live/;
    # security
    # logging
    access_log /home/crypto-data/yiimp/site/log/;
    error_log /home/crypto-data/yiimp/site/log/ warn;
    # index.php
    index index.php;
    # index.php fallback
    location / {
        try_files $uri $uri/ /index.php?$args;
    location @rewrite {
        rewrite ^/(.*)$ /index.php?r=$1;
    # handle .php
    location ~ \.php$ {
    # additional config


    HTTP redirect

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

    location / {
        return 301$request_uri;


  • After installation its showing Blank pages only