Reputation: 317
I'm in the process of moving WordPress site from shared hosting to my new VPS. I've set everything up but when I try to open page all I get is a blank screen. Apache log says:
[Mon Apr 25 20:49:42.545498 2016] [:error] [pid 12379] [client 91.218.65.62:58115] PHP Fatal error: require_once(): Failed opening required '/var/www/site/public_html/blog/wp-config.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/site/public_html/blog/wp-load.php on line 37
but all files and dirs have correct permissions (640 and 750 respectively):
-rw-r----- 1 bazyli www-data 3602 Apr 25 20:43 wp-config.php
What's the cause of this problem?
EDIT:
In the log example I've originally posted there isn't anything about permissions but there are other like:
[Mon Apr 25 20:49:42.545437 2016] [:error] [pid 12379] [client 91.218.61.62:58115] PHP Warning: require_once(/var/www/site/public_html/blog/wp-config.php): failed to open stream: Permission denied in /var/www/site/public_html/blog/wp-load.php on line 37
Upvotes: 0
Views: 646
Reputation: 1967
The GROUP needs write/read permissions (www-data), not just the user (bazyli)
Upvotes: 1