Good evening,
I have just spun up a new Ubuntu 16.04 VM with wordpress installed on it.
I was trying to add an ssl cert to my newly created site. I was following the guide provided by by VPS provider here. https://www.vultr.com/docs/install-l...-wordpress-app
I followed the instructions to the letter. However at this stage:
Code:
certbot --nginx --redirect
I get the following error halfway through the configuration.
Code:
Deploying Certificate to VirtualHost /etc/nginx/conf.d/wordpress_https.conf
nginx: [error] invalid PID number "" in "/var/run/nginx.pid"
I figured I stopped the nginx service at the start so surely it wouldn't be running?
I then ran the following and could see there was multiple processes running for it?
Code:
netstat -tulpn |grep 80
nginx 1244 1228 0 20:05 ? 00:00:00 php-fpm: pool www
nginx 1245 1228 0 20:05 ? 00:00:01 php-fpm: pool www
root 2151 1 0 20:06 ? 00:00:00 nginx: master process nginx -c /etc/nginx/nginx.conf
nginx 2787 2151 0 20:13 ? 00:00:00 nginx: worker process
nginx 2993 1228 0 20:22 ? 00:00:00 php-fpm: pool www
root 3198 2940 0 20:38 pts/0 00:00:00 grep --color=auto nginx
I figured I'd kill the process using the below and try again.
Code:
kill -9 2151
kill -9 2787
I get the exact same. I've checked and my website is not using a ssl cert at the moment. I'm very new to Linux so hopefully I have posted enough information for someone to be able to advise me on what I am doing wrong or where I can look for further information. Some log files maybe or something that might prove helpful.
Kind regards, Joe.
Bookmarks