Page 1 of 1

[SOLVED] Nginx error (postconf)

Published: October 26, 2022 - 2:15 PM
by SaupinD
Hello,

I'm installing Debian 11, I'm not yet sure of the version, I followed the documentation below.
I was configuring my WAPT server following this documentation: https://www.wapt.fr/fr/doc/wapt-server- ... based.html
When I got this error at the end of the script:
Picture
So I typed the command `systemctl status nginx.service` and it displayed this:
Picture
Looking more closely at the logs, the precise error is this:
Picture
I therefore understand that there is a missing line in dhparam.pem, as you can see here where my file is completely empty:
Picture

Do you know where I might have made a mistake and how I can fix it?

Re: Nginx error (postconf)

Published: October 26, 2022 - 3:21 PM
by sfonteneau
You can try to correct it with this:

Code: Select all

openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
chgrp nginx /etc/ssl/certs/dhparam.pem
chmod 640 /etc/ssl/certs/dhparam.pem

Re: Nginx error (postconf)

Published: October 27, 2022 - 08:23
by SaupinD
Hello, thank you for your reply.

I did install the WAPT and Nginx packages, but unfortunately the code you gave me doesn't allow me to fix the error. Indeed, when I execute the second command, the nginx group doesn't exist. Could I have missed something?

Re: Nginx error (postconf)

Published: October 27, 2022 - 09:56
by sfonteneau
Oh yes, sorry:

Code: Select all

chgrp www-data /etc/ssl/certs/dhparam.pem

Re: Nginx error (postconf)

Published: October 27, 2022 - 10:03 AM
by SaupinD
It works, thank you very much.