# Nginx Error at testing stage

**URL:** <https://meta.discourse.org/t/nginx-error-at-testing-stage/82102>\
**Category:** Self-hosting\
**Created:** [March 3, 2018, 7:11am UTC](https://meta.discourse.org/t/nginx-error-at-testing-stage/82102 "2018-03-03T07:11:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Irwin\_Binamungu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/irwin_binamungu/32/88422_2.png) [@Irwin\_Binamungu](https://meta.discourse.org/u/Irwin_Binamungu)\
**Post date:** [March 3, 2018, 7:11am UTC](https://meta.discourse.org/t/nginx-error-at-testing-stage/82102/1 "2018-03-03T07:11:07Z")

</div>

[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?

> **[How to Install Discourse Forum with Nginx on CentOS 7](https://www.howtoforge.com/tutorial/how-to-install-and-configure-discourse-forum-with-nginx-on-centos-7/)**
>
> Discourse is a free and open source software for creating Internet forum community and mailing list. In this tutorial, we will show you step-by-step, ...

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [March 3, 2018, 7:18am UTC](https://meta.discourse.org/t/nginx-error-at-testing-stage/82102/2 "2018-03-03T07:18:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Irwin\_Binamungu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/irwin_binamungu/32/88422_2.png) [@Irwin\_Binamungu](https://meta.discourse.org/u/Irwin_Binamungu)\
**Post date:** [March 3, 2018, 7:20am UTC](https://meta.discourse.org/t/nginx-error-at-testing-stage/82102/3 "2018-03-03T07:20:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [March 3, 2018, 1:23pm UTC](https://meta.discourse.org/t/nginx-error-at-testing-stage/82102/4 "2018-03-03T13:23:45Z")

</div>

What kind of install is this?

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

---

<div class="post-metadata">

**Author:** ![Irwin\_Binamungu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/irwin_binamungu/32/88422_2.png) [@Irwin\_Binamungu](https://meta.discourse.org/u/Irwin_Binamungu)\
**Post date:** [March 3, 2018, 1:39pm UTC](https://meta.discourse.org/t/nginx-error-at-testing-stage/82102/5 "2018-03-03T13:39:09Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [March 3, 2018, 3:08pm UTC](https://meta.discourse.org/t/nginx-error-at-testing-stage/82102/6 "2018-03-03T15:08:46Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Irwin\_Binamungu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/irwin_binamungu/32/88422_2.png) [@Irwin\_Binamungu](https://meta.discourse.org/u/Irwin_Binamungu)\
**Post date:** [March 3, 2018, 3:26pm UTC](https://meta.discourse.org/t/nginx-error-at-testing-stage/82102/7 "2018-03-03T15:26:51Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)\
**Post date:** [March 9, 2018, 7:41pm UTC](https://meta.discourse.org/t/nginx-error-at-testing-stage/82102/8 "2018-03-09T19:41:33Z")

</div>

> [@Irwin\_Binamungu](#):
>
> nginx: [emerg] unknown directive “sl\_session\_timeout” in /etc/nginx/ssl.conf:1

You’re missing the first character again: `ssl_session_timeout`

---

<div class="post-metadata">

**Author:** ![Irwin\_Binamungu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/irwin_binamungu/32/88422_2.png) [@Irwin\_Binamungu](https://meta.discourse.org/u/Irwin_Binamungu)\
**Post date:** [March 10, 2018, 5:37am UTC](https://meta.discourse.org/t/nginx-error-at-testing-stage/82102/9 "2018-03-10T05:37:51Z")

</div>

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.
