Welcome! Log In Create A New Profile

Advanced

Errors suggesting nginx isn't started as root

Palvelin Postmaster via nginx
September 19, 2018 05:02AM
Why am I getting these log warn/emerg? Running Nginx 1.14.0 on Ubuntu 18.04.

root@k2:~# whoami
root

root@k2:~# service nginx restart

root@k2:~# tail /var/log/nginx/error.log
2018/09/19 11:38:47 [warn] 22399#22399: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:21
2018/09/19 11:38:47 [emerg] 22399#22399: SSL_CTX_use_PrivateKey_file("/etc/ssl/private/nginx-selfsigned.key") failed (SSL: error:0200100D:system library:fopen:Permission denied:fopen('/etc/ssl/private/nginx-selfsigned.key','r') error:20074002:BIO routines:file_ctrl:system lib error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib)

root@k2:~# ls -lh /etc/ssl/private/ |grep nginx
-rw-r----- 1 root ssl-cert 1.7K Jul 8 17:12 nginx-selfsigned.key

root@k2:~# cat /etc/nginx/nginx.conf |grep ^user
user www-data;

root@k2:~# ps -auxw |grep nginx
root 22317 0.0 0.2 359680 9300 ? Ss 11:38 0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data 22322 0.0 0.3 361980 15356 ? S 11:38 0:00 nginx: worker process
www-data 22323 0.2 0.4 362244 18984 ? S 11:38 0:00 nginx: worker process
www-data 22326 0.0 0.3 361980 14760 ? S 11:38 0:00 nginx: cache manager process
www-data 22327 0.0 0.3 361980 14760 ? S 11:38 0:00 nginx: cache loader process


--
Palvelin.fi Hostmaster
postmaster@palvelin.fi

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Errors suggesting nginx isn't started as root

Palvelin Postmaster via nginx September 19, 2018 05:02AM

Re: Errors suggesting nginx isn't started as root

Palvelin Postmaster September 04, 2019 07:00PM

Re: Errors suggesting nginx isn't started as root

Maxim Dounin September 05, 2019 02:54PM

Re: Errors suggesting nginx isn't started as root

Palvelin Postmaster September 05, 2019 03:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 103
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready