Nginx Error at testing stage

(Irwin Binamungu) #1

[kirizagroup00001@localhost nginx]$ nginx -t
nginx: [alert] could not open error log file: open() “/var/log/nginx/error.log” failed (13: Permission denied)
2018/03/04 14:29:21 [warn] 2495#0: the “user” directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:5
2018/03/04 14:29:21 [emerg] 2495#0: unknown directive “erver” in /etc/nginx/conf.d/discourse.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed

Am I getting this error because I haven’t yet obtained a domain name for my discourse or is it an internal error?

(Mittineague) #2

The “erver” directive? Should that be “server”?

(Irwin Binamungu) #3

Oh okay, thank you for noticing that. This is what it is saying now.
[root@localhost nginx]# nginx -t
nginx: [emerg] unknown directive “sl_session_timeout” in /etc/nginx/ssl.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed

(Jay Pfaffman) #4

What kind of install is this?

If you don’t have a domain name you can’t have https.

(Irwin Binamungu) #5

Test install…i wanted to know how to install it to a certain point (know possible errors among others) before getting a domain name. It is a long story with political involvement as to why i have chosen not to get a domain name yet…which of course has to be one similar to my forum.
I can’t elucidate more than that…

(Jay Pfaffman) #6

You can’t run discourse without a host name. You can’t have https anywhere without a host name.

You followed the install cloud document?

(Irwin Binamungu) #7

I am aware of that. I simply used details that will be registered later to see what errors will come up and the mentioned above is the only error. SSL certificate must have a registered domain…

(Andrew Schleifer) #8

You’re missing the first character again: ssl_session_timeout

(Irwin Binamungu) #9

Oh yeah…there is that. I actually saw the tutorial for Discourse testing and decided to take that route. I think I will fully install it on DO Droplets when i am ready to host, the many missing things that I have are causing all these errors and waiting for live hosting is a better decision.