If you are facing problems on starting NGINX or CWPSRV
nginx: [emerg] bind() to xxx.yyy.zzz.kkk:443 failed (98: Address already in use)
or
cwpsrv: [emerg] ind() to 0.0.0.0:443 failed (98: Address already in use)
Probably you changed conf files from
/usr/local/cwpsrv
to avoid the warn messages fro nginx starting
like an example
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/vhosts/yourwebsite.conf
Just in case you change the
line with
ssl on;
to
listen 443 ssl;
example: the "listen 443 ssl" in /usr/local/cwpsrv/conf.d/api.conf
will cause one of the errors below avoiding one those services to starting
nginx: [emerg] bind() to xxx.yyy.zzz.ttt:443 failed (98: Address already in use)
cwpsrv: [emerg] ind() to 0.0.0.0:443 failed (98: Address already in use)
The solution is simple
edit
/usr/local/cwpsrv/conf.d/api.conf
and comment the "listen 443 ssl"
the resukt will looks like the example below
ssl on;
#listen 443 ssl;
in the following or der runs:
systemctl restart cwpsrv
systemctl restart nginx