Sorry for being a pain and opening so many threads.
So I finally got it up and running and I can access the main index.php. However Every link on the page comes up 404
9, request: "GET /forums HTTP/1.1", host: "192.168.1.109", referrer: "http://192.168.1.109/"
2018/02/08 20:56:48 [error] 17836#17836: *20 open() "/Postmill/public/login" failed (2: No such file or directory), client: 192.168.1.100, server: 192.168.1.109, request: "GET /login HTTP/1.1", host: "192.168.1.109", referrer: "http://192.168.1.109/"
2018/02/08 20:56:54 [error] 17836#17836: *20 open() "/Postmill/public/forums" failed (2: No such file or directory), client: 192.168.1.100, server: 192.168.1.109, request: "GET /forums HTTP/1.1", host: "192.168.1.109", referrer: "http://192.168.1.109/"
2018/02/08 20:56:56 [error] 17836#17836: *20 open() "/Postmill/public/wiki" failed (2: No such file or directory), client: 192.168.1.100, server: 192.168.1.109, request: "GET /wiki HTTP/1.1", host: "192.168.1.109", referrer: "http://192.168.1.109/"
2018/02/08 20:56:58 [error] 17836#17836: *20 open() "/Postmill/public/new" failed (2: No such file or directory), client: 192.168.1.100, server: 192.168.1.109, request: "GET /new HTTP/1.1", host: "192.168.1.109", referrer: "http://192.168.1.109/"
None of those files exist in the directory:
drwxr-xr-x 6 postmill postmill 4.0K Feb 8 20:12 .
drwxr-xr-x 15 postmill postmill 4.0K Feb 8 20:18 ..
-rw-r--r-- 1 postmill postmill 3.3K Feb 8 20:03 apple-touch-icon-precomposed.png
drwxr-xr-x 3 postmill postmill 20K Feb 8 20:10 build
drwxrwxrwx 2 postmill postmill 4.0K Feb 8 20:12 bundles
-rw-r--r-- 1 postmill postmill 21K Feb 8 20:03 check.php
-rw-r--r-- 1 postmill postmill 5.4K Feb 8 20:03 favicon.ico
-rw-r--r-- 1 postmill postmill 1.4K Feb 8 20:03 index.php
drwxrwxrwx 3 postmill postmill 4.0K Feb 8 20:12 js
-rw-r--r-- 1 postmill postmill 116 Feb 8 20:03 robots.txt
drwxr-xr-x 2 postmill postmill 4.0K Feb 8 20:12 submission_images
WindTalk wrote (edited )
ok, so I did a complete setup of PHP 7.2, PostgreSQL 10.1, nginx/1.10.3 and managed to get Postmill runing via nginx.
I notice something, you are using Ubuntu 17.10? To run a server in public, I think most would go with 16.04 - as it's LTS and there is more documentation out there on it. (I saw your "7.2.2-3+ubuntu17.10.1+deb.sury.org+1" vs mine "7.2.2-3+ubuntu16.04.1+deb.sury.org+1")
I suspect that puts you on a different, newer version, of nginx/1.10.3 - and maybe some alternate configs?
Here is the config I used that was a non-default site. nginx/1.10.3 is providing a simple static file for my default, using what Ubuntu 16.04 setup. http://server4.plasticirony.com - will show that default site.
Now, to wire up PHP and Postmill, I added a second site (same IP Address, same port):
/etc/nginx/sites-available/forum.plasticirony.com
And, it's working fine off of http://forum.PlasticIrony.com - and responding correctly. I did waste 30 minutes figuring out that the proper PHP 7.2 path for /var/run/php/php7.2-fpm.sock - but once I solved that issue, Postmill started working file via nginx.
My Ubuntu 16.04 server has only 1GB of RAM, so I'm running Postmill on Nginx off of less than what you are attempting.
cat /proc/meminfo