I’m making an attempt to put in a second WP web site on an Ubuntu 16 server operating Nginx. I’ve efficiently put in WordPress in accordance with my server outcomes, however I nonetheless solely get the Nginx residence web page. I assumed it is perhaps the truth that the Group Proprietor was the Person, so I modified group proprietor on internet recordsdata to www-data:
microurb@vps148370:/var/www/dancortes.press/public_html$ ls -l
complete 192
-rw-r--r-- 1 microurb www-data 0 Oct 5 15:36 index.html
-rw-rw-r-- 1 microurb www-data 418 Oct 8 17:07 index.php
-rw-rw-r-- 1 microurb www-data 19935 Oct 8 17:07 license.txt
-rw-rw-r-- 1 microurb www-data 7413 Oct 8 17:07 readme.html
-rw-rw-r-- 1 microurb www-data 5447 Oct 8 17:07 wp-activate.php
drwxrwxr-x 9 microurb www-data 4096 Oct 8 17:07 wp-admin
-rw-rw-r-- 1 microurb www-data 364 Oct 8 17:07 wp-blog-header.php
-rw-rw-r-- 1 microurb www-data 1627 Oct 8 17:07 wp-comments-post.php
-rw-rw-r-- 1 microurb www-data 2599 Oct 8 17:17 wp-config.php
-rw-rw-r-- 1 microurb www-data 2853 Oct 8 17:07 wp-config-sample.php
drwxrwxr-x 5 microurb www-data 4096 Oct 8 17:19 wp-content
-rw-rw-r-- 1 microurb www-data 3286 Oct 8 17:07 wp-cron.php
drwxrwxr-x 18 microurb www-data 12288 Oct 8 17:07 wp-includes
-rw-rw-r-- 1 microurb www-data 2422 Oct 8 17:07 wp-links-opml.php
-rw-rw-r-- 1 microurb www-data 3301 Oct 8 17:07 wp-load.php
-rw-rw-r-- 1 microurb www-data 34327 Oct 8 17:07 wp-login.php
-rw-rw-r-- 1 microurb www-data 8048 Oct 8 17:07 wp-mail.php
-rw-rw-r-- 1 microurb www-data 16200 Oct 8 17:07 wp-settings.php
-rw-rw-r-- 1 microurb www-data 29924 Oct 8 17:07 wp-signup.php
-rw-rw-r-- 1 microurb www-data 4513 Oct 8 17:07 wp-trackback.php
-rw-rw-r-- 1 microurb www-data 3065 Oct 8 17:07 xmlrpc.php
Nonetheless, I get solely Nginx residence web page. I restarted Nginx a pair instances.
I checked entry and error logs and all I get is an error about code on the primary web site.
I checked the nginx entry logs:
73.197.81.232 - - [08/Oct/2017:19:10:55 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"
73.197.81.232 - - [08/Oct/2017:19:10:56 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"
The error logs have an error relating to code on my first web site:
PHP message: PHP Discover: Undefined index: success in /var/www/microurb.com/public_html/index.php on line 295" whereas studying upstream, consumer: 71.168.149.103, server: microurb.membership, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "microurb.membership"
2017/10/08 19:10:01 [alert] 22798#22798: *25 open socket #11 left in connection 3
2017/10/08 19:10:01 [alert] 22798#22798: aborting
2017/10/08 19:10:52 [alert] 23108#23108: *3 open socket #3 left in connection 3
2017/10/08 19:10:52 [alert] 23108#23108: aborting
I actually have no idea what to search for subsequent. Why can I not see the WP web site?
I made a decision to do an nginx -t and obtained this:
microurb@vps148370:/and so forth/nginx/sites-available$ nginx -t
nginx: [alert] couldn't open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2017/10/08 19:41:25 [warn] 23341#23341: the "person" directive is smart provided that the grasp course of runs with super-user privileges, ignored in /and so forth/nginx/nginx.conf:1
nginx: the configuration file /and so forth/nginx/nginx.conf syntax is okay
2017/10/08 19:41:25 [emerg] 23341#23341: open() "/run/nginx.pid" failed (13: Permission denied)
nginx: configuration file /and so forth/nginx/nginx.conf take a look at failed
I’m not that rather more enlightened now as to what’s going on.