Hello...
I hate to be a pain, but I am hoping this may help with discussion involving nginx setups on CentOS 7.
It seems like a few people have had problems getting this working, but I haven't been able to find any real specific issues on this.
To give some background on me, I have followed the esoTalk/Flarum saga for some time, and I was quite excited to test the latest beta.
I was previously using shared hosting on a cPanel/Litespeed server for testing, but I have moved to a VPS for the purposes of testing since the latest betas must be built from composer.
I am using CentOS 7 with the latest NGINX + PHP 5.6 and MariaDB (LEMP)
I have fought pretty hard with the usual LEMP setup issues I know to deal with, but I have come across a problem I cannot trace the root of.
If I could, I would avoid writing here, as I do try and exhaust issues through my own work and by reading any documentation I can to understand better.
So, again I apologize for troubling anyone here.
The only similar discussions I have ran across here all seem to answer the problem by saying "use Debian or Ubuntu" or the like.
Of course, I don't think that is correct, nor will it suffice as an option for me.
Let's get to the meat of what I am dealing with...
Everything seems to set up just fine through the install... But then I get hung on a static page with a plain text that is just the 'forum title' I input on installation. Clicking it goes nowhere.
I worked out folder permissions and .conf settings for the site using flarum, and I have triple-checked the nginx configuration files.
I began looking through the error logs for nginx to try and see what the requests that failed were saying.
Interestingly enough - they are sending requests to the wrong root directory entirely:
2015/11/10 22:21:12 [error] 1481#0: *1 FastCGI sent in stderr: "Unable to open primary script: /etc/nginx/html/dnc/index.php (No such file or directory)" while reading response header from upstream, client: xx.xx.xx.xx
It is trying to read from the document root on nginx as if it should be in "/etc/nginx/html/dnc"
However, CentOS stores the default nginx document root in "/usr/share/nginx/html"
I have written the configuration file for nginx to look in "/usr/share/nginx/html/dnc"
I have installed flarum in to "/usr/share/nginx/html/dnc"
I have gone over all of the configuration files for nginx to the point i started looking through the flarum files trying to find an answer as to why it keeps trying to refer the requests to the "/etc/nginx" directory.
In all honesty I am much more of a webmaster than a coder, so it just succeeded in confusing me further trying to track it down.
That is why I am here. Sorry for the long-winded post here, but I truly have tried, and I am pleading for any help anyone might be able to offer me, or insights as to where this behavior is coming from.
I do have a github account, but I was afraid to file this as any kind of bug, because I am more afraid that is just my own stupidity.
Thank you for reading, and for your consideration. Again I apologize for my own lack of depth in understanding the problem.
Thank you again....