wordpress blank page after move

February 11, 2015 1.5k views

after move wordpress blank page. other pages are working fine.

Troubleshoot:
chown -Rf www-data:www-data /var/www/richmondgardens.ie
chown -Rf www-data:www-data /var/www/

my configuration file:
server {
listen 80;

root /var/www/richmondgardens.ie;
index index.php index.html index.htm;

server_name www.richmondgardens.ie richmondgardens.ie;

location / {
        # try_files $uri $uri/ =404;
        try_files $uri $uri/ /index.php?q=$uri&$args;
}

error_page 404 /404.html;

error_page 500 502 503 504 /50x.html;
location = /50x.html {
        root /usr/share/nginx/html;
}

location ~ \.php$ {
        try_files $uri =404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
}

}

nginx log file:
2015/02/10 17:27:29 [error] 23124#0: *137 directory index of "/var/www/" is forbidden, client: 201.150.36.119, server: 95.85.39.84, request: "HEAD / HTTP/1.0"
2015/02/10 18:10:09 [error] 23124#0: *138 directory index of "/var/www/" is forbidden, client: 180.76.4.12, server: 95.85.39.84, request: "GET / HTTP/1.1", host: "95.85.39.84"
2015/02/10 20:12:32 [error] 23124#0: *150 directory index of "/var/www/" is forbidden, client: 180.76.4.154, server: 95.85.39.84, request: "GET / HTTP/1.1", host: "95.85.39.84"
2015/02/11 00:06:38 [error] 23124#0: *167 directory index of "/var/www/" is forbidden, client: 180.76.4.139, server: 95.85.39.84, request: "GET / HTTP/1.1", host: "95.85.39.84"
2015/02/11 02:05:31 [error] 23124#0: *175 directory index of "/var/www/" is forbidden, client: 180.76.4.210, server: 95.85.39.84, request: "GET / HTTP/1.1", host: "95.85.39.84"
2015/02/11 02:56:18 [error] 23124#0: *178 directory index of "/var/www/" is forbidden, client: 61.240.144.65, server: 95.85.39.84, request: "GET / HTTP/1.0"
2015/02/11 03:27:16 [error] 23124#0: *184 directory index of "/var/www/" is forbidden, client: 180.76.6.20, server: 95.85.39.84, request: "GET / HTTP/1.1", host: "95.85.39.84"
2015/02/11 04:00:36 [error] 23124#0: *185 directory index of "/var/www/" is forbidden, client: 202.46.63.164, server: 95.85.39.84, request: "GET / HTTP/1.1", host: "95.85.39.84"
2015/02/11 04:02:21 [error] 23124#0: *186 directory index of "/var/www/" is forbidden, client: 180.76.4.160, server: 95.85.39.84, request: "GET / HTTP/1.1", host: "95.85.39.84"
2015/02/11 04:11:55 [error] 23124#0: *190 directory index of "/var/www/" is forbidden, client: 66.249.93.167, server: 95.85.39.84, request: "GET / HTTP/1.1", host: "95.85.39.84

4 comments
  • There is permission problem. First check who is own user. I mean do that >>

    chown -R current-user:current-user /var/www/*

    You have to change "current-user" with own user. If you are using root, you have to use it or accordingly.

  • thanks RinkuY but still blank page .
    i used sudo chown -R quickbrownfox:quickbrownfox /var/www/*
    but other blocks in /www are working fine
    really strange

  • You might try enabling php errors. Find your php.ini file (probably in /etc/php5/nginx or close by)

    find the line:

    display_errors = off
    

    should be changed to

    display_errors = STDOUT
    

    then restart nginx. Browse to the page and see if php gives some errors on the page now.

  • i cant find this in etc/nginx/ at all. Can somebody give me some working solution. I trying to solve this for a week

Be the first one to answer this question.