I was really surprised it could be that easy. For apache2 I used: A. sudo apt-get install certbot python3-certbot-apache B. sudo certbot -apache C. etc. Thanks a lot!
You explained this so well Tony. I would've never been able to do this without your clear, concise and easy to follow explanation. Well done and thank you. Edit: aaaand a few hours later I broke it somehow by adding cloudflare
Your videos are great man! Thank you! I noticed that the ssl encryption cert expires within only a few months so I was researching this and saw that there are ways to set "auto-renew" of the encryption. Would be awesome to see a video on how to do this with Nginx as most of the material I found was with Apache. Thanks and looking forward to more Videos!
Thanks Matthew! This blog post on my website will show you how to set up auto renew of your SSL cert on Nginx tonyteaches.tech/lets-encrypt-renew-cron/
Hi I feel like this is missing some steps. I've set up a google cloud vm instance with a domain and installed nginx. What do I do with the eab and hvac keys google provides me prior to these steps, it seems so unclear. Also I don't have any file like .conf in the sites available directory like you have, it just says "default". Anyways I followed your steps anyway and it worked but now my site simply re-directs to Welcome to nginx "further configuration is required." I have no idea what to do now, I can't even access the website. Any help would be great. Thanks
Thanks for this video! I have installed wordpress using docker on GCP (ubuntu 16.04 LTS)⁶. The mail function isn't working in the docker image and I couldn't reset my password and I'm not receiving any notification mail from wordpress. I saw your video of smtp mail video. I have 2 queries regarding it: 1. What are 'SMTP_USER', 'SMTP_PASS' variables and how 'SMTP_USER' is different from 'SMTP_FROM' variable? 2. Will the approach should in that video work for a wordpress docker image? If not, what should I change?
Hi Tony, I am using an Apache server on my Wordpress website, but the commands won’t work for me despite replacing nginx->apache, it says: no such file or directory… Not sure what I am doing wrong, do you have any idea?
Hi Tony: I've copied the first command cat /etc/... replacing your domain with mine, but I get this error: cat: /etc/nginx/sites-available/mmbhobbies.tk.conf: No such file or directory. What am I doing (or did) wrong? Thanks & greets from Argentina. Marcelo. PS: You mentioned you installed WP on Ubuntu. How can I find out my server OS?. I used WP certified by Bitnami on Google Cloud.
Please look at what configuration files exist under /etc/nginx/sites-available and reference the appropriate one in your commands. A way that I know of how to determine your OS is the following command: uname -a
Thank you very much! I need to use certbot with the same server but another name, how do I include another name? You for example have www and without www. I want to include a different name. DNS is already poiting to this server from both names.
Great tutorials! How would I do this if I have a SSL Certificate from Google Domains and my Wordpress VM runs Debian GNU/Linux 10 (buster) ? :D Thanks in advance!
That would require you to manually install the SSL that you got GoDaddy. Closest tutorial that I have to that is this th-cam.com/video/99zyfMObC98/w-d-xo.html
I'm curious why are are going with the paid SSL certificate and not the free one? To "delete", you'll have to modify the ngninx config file 3:33 (please see the output 'Deploying Certificate to VirtualHost ...')
after installing the certificates, my site looks all scrambled, I think is not taking the CSS configuration, so I only see the plain text, any reason for that?
This is most likely due to a mix of HTTP and HTTPS. First check in your WordPress admin dashboard under Settings > General that your Site Address and Site URL are using HTTPS. You can also watch this video to update HTTP references in the database th-cam.com/video/2bQTGFItwCA/w-d-xo.html
Hi Tony! thank you for your tutorial. Unfortunately the console shows an error while I am executing the last step. Any idea why? thank you in advance. nginx: [error] invalid PID number "" in "/run/nginx.pid" Cleaning up challenges nginx: [error] invalid PID number "" in "/run/nginx.pid" Encountered exception during recovery: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/certbot/auth_handler.py", line 75, in handle_authorizations resp = self._solve_challenges(aauthzrs) File "/usr/lib/python3/dist-packages/certbot/auth_handler.py", line 139, in _solve_challenges resp = self.auth.perform(all_achalls) File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 1071, in perform self.restart() File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 881, in restart nginx_restart(self.conf('ctl'), self.nginx_conf) File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 1141, in nginx_restart "nginx restart failed: %s %s" % (out.read(), err.read())) certbot.errors.MisconfigurationError: nginx restart failed: b'' b'' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/certbot/error_handler.py", line 108, in _call_registered self.funcs[-1]() File "/usr/lib/python3/dist-packages/certbot/auth_handler.py", line 323, in _cleanup_challenges self.auth.cleanup(achalls) File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 1090, in cleanup self.restart() File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 881, in restart nginx_restart(self.conf('ctl'), self.nginx_conf) File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 1141, in nginx_restart "nginx restart failed: %s %s" % (out.read(), err.read())) certbot.errors.MisconfigurationError: nginx restart failed:
hey, I installed ssl but then can't access my site. I get the error message 'This page isn’t workingwww.diselinix.com redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS. I cleared my cookies, still the same issue. How can I resolve this?
Tony I was looking everywhere for this exact info. Thanks mate - Subbed!
Thanks for the sub!
I was really surprised it could be that easy. For apache2 I used:
A. sudo apt-get install certbot python3-certbot-apache
B. sudo certbot -apache
C. etc.
Thanks a lot!
Nice work Nick
No one does it better, thanks. I spent hours trying to do this with other videos.
You explained this so well Tony. I would've never been able to do this without your clear, concise and easy to follow explanation. Well done and thank you.
Edit: aaaand a few hours later I broke it somehow by adding cloudflare
You're very welcome
after trying several times, i finally found your video and got it the first time!
I'm very happy to hear that :)
Awesome, this is exactly what I was looking for! Thank you for the quick & simple explanation.
Thanks for the help buddy. I was looking all around for this and your 5 mins saved a lot of time for me. Thanks once again!
No problem 👍
Definitely deservers a Subscriber. Thanks Subscribed to this channel.
Thank you very much!!
This is awesome you did a great job!
Thank you for this great info!
You are great and your solutions are really helpful and easy :)
Glad you like them and thanks for your support!
THANK TO HEAVENS....(been struggling for a minute) Thank you!
You're welcome!
Your videos are great man! Thank you!
I noticed that the ssl encryption cert expires within only a few months so I was researching this and saw that there are ways to set "auto-renew" of the encryption. Would be awesome to see a video on how to do this with Nginx as most of the material I found was with Apache. Thanks and looking forward to more Videos!
Thanks Matthew! This blog post on my website will show you how to set up auto renew of your SSL cert on Nginx tonyteaches.tech/lets-encrypt-renew-cron/
I watch most videos at 1.25x to 1.5x speed but I like that I don't need to do that for your videos haha
Man!!! you are the best!!!
you are my mentor!!!
Wow, thanks!
That made this so much easier than I'd have imagined. Thank you!
You're very welcome!
Hi I feel like this is missing some steps. I've set up a google cloud vm instance with a domain and installed nginx. What do I do with the eab and hvac keys google provides me prior to these steps, it seems so unclear. Also I don't have any file like .conf in the sites available directory like you have, it just says "default". Anyways I followed your steps anyway and it worked but now my site simply re-directs to Welcome to nginx "further configuration is required." I have no idea what to do now, I can't even access the website. Any help would be great. Thanks
Superb work. Did same. And it is done. Thanks man 👍
Great 👍
Your videos are great man! Thank you!
My pleasure!
Thank you very much. How do I set up auto-renewal of the SSL certificate?
tonyteaches.tech/lets-encrypt-renew-cron/
thank you mate, this is all I wanted, you're the best!
Glad I could help! Thanks for watching, and subscribe for more!
Hi Tony, can you do a video on how to renew the certificate?
omg i remember when I wanted to get SSL on AWS it was way to complicated... this is so simple
:)
Nice music at the end can u share link as well good video anywy
hey tony, is there any way to install ssl for an ip address, i.e I need the external ip to be secure when its accessed.
Excellent! Keep it going!
Thank you! Will do!
Thank you! Very useful!
Thanks for this video!
I have installed wordpress using docker on GCP (ubuntu 16.04 LTS)⁶. The mail function isn't working in the docker image and I couldn't reset my password and I'm not receiving any notification mail from wordpress. I saw your video of smtp mail video. I have 2 queries regarding it:
1. What are 'SMTP_USER', 'SMTP_PASS' variables and how 'SMTP_USER' is different from 'SMTP_FROM' variable?
2. Will the approach should in that video work for a wordpress docker image? If not, what should I change?
Please see my other reply on your other comment th-cam.com/video/eTqrw3bgfUE/w-d-xo.html&lc=Ugw1MlsqKIyfXTAmpJF4AaABAg
Very good explanation
Thanks Abdul
Your voice is too good
Hi Tony,
I am using an Apache server on my Wordpress website, but the commands won’t work for me despite replacing nginx->apache, it says: no such file or directory…
Not sure what I am doing wrong, do you have any idea?
It's usually in the apache2 directory
again.. thanks A lot tony
Sure thing!
Hi Tony:
I've copied the first command cat /etc/... replacing your domain with mine, but I get this error:
cat: /etc/nginx/sites-available/mmbhobbies.tk.conf: No such file or directory.
What am I doing (or did) wrong?
Thanks & greets from Argentina.
Marcelo.
PS: You mentioned you installed WP on Ubuntu. How can I find out my server OS?. I used WP certified by Bitnami on Google Cloud.
Please look at what configuration files exist under /etc/nginx/sites-available and reference the appropriate one in your commands.
A way that I know of how to determine your OS is the following command:
uname -a
Thank you very much! I need to use certbot with the same server but another name, how do I include another name? You for example have www and without www. I want to include a different name. DNS is already poiting to this server from both names.
You can run the certbot command again to install another cert
@@TonyTeachesTech Tryed but can't add another domain cert. I need to add domain to my apache before, with another command?
@@raphaelinkiri1923 Yes you'll need to either add or modify your Apache config files to first have a domain name at /etc/apache2/sites-available/
Thanks buddy 😍
You're welcome!
Thanks Tony!!!
You're welcome!
????I got locked out of my WP admin????? Help!!!!!!
Great tutorials! How would I do this if I have a SSL Certificate from Google Domains and my Wordpress VM runs Debian GNU/Linux 10 (buster)
? :D Thanks in advance!
That would require you to manually install the SSL that you got GoDaddy. Closest tutorial that I have to that is this th-cam.com/video/99zyfMObC98/w-d-xo.html
Hi, please tell me how do I delete this certificate as i am planning to buy godaddy ssl and how to delete cert bot
I'm curious why are are going with the paid SSL certificate and not the free one?
To "delete", you'll have to modify the ngninx config file 3:33 (please see the output 'Deploying Certificate to VirtualHost ...')
Thanks Tony. :D
You bet!
after installing the certificates, my site looks all scrambled, I think is not taking the CSS configuration, so I only see the plain text, any reason for that?
This is most likely due to a mix of HTTP and HTTPS.
First check in your WordPress admin dashboard under Settings > General that your Site Address and Site URL are using HTTPS.
You can also watch this video to update HTTP references in the database th-cam.com/video/2bQTGFItwCA/w-d-xo.html
@@TonyTeachesTech thanks mate, the redirection to https site made the trick, thanks
@@pablosalfate7614 Great!
hi, how do i know my website is in apache or nginx? thanks
If you're using WordPress, you can go into your admin dashboard and go to Tools > Site Health > Info > Server
Mais uma vez grato por este tutorial direto ao ponto e com um conteúdo 100% funcional.
I appreciate your kind words :)
Hi Tony! thank you for your tutorial. Unfortunately the console shows an error while I am executing the last step. Any idea why? thank you in advance.
nginx: [error] invalid PID number "" in "/run/nginx.pid"
Cleaning up challenges
nginx: [error] invalid PID number "" in "/run/nginx.pid"
Encountered exception during recovery:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/certbot/auth_handler.py", line 75, in handle_authorizations
resp = self._solve_challenges(aauthzrs)
File "/usr/lib/python3/dist-packages/certbot/auth_handler.py", line 139, in _solve_challenges
resp = self.auth.perform(all_achalls)
File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 1071, in perform
self.restart()
File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 881, in restart
nginx_restart(self.conf('ctl'), self.nginx_conf)
File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 1141, in nginx_restart
"nginx restart failed:
%s
%s" % (out.read(), err.read()))
certbot.errors.MisconfigurationError: nginx restart failed:
b''
b''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/certbot/error_handler.py", line 108, in _call_registered
self.funcs[-1]()
File "/usr/lib/python3/dist-packages/certbot/auth_handler.py", line 323, in _cleanup_challenges
self.auth.cleanup(achalls)
File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 1090, in cleanup
self.restart()
File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 881, in restart
nginx_restart(self.conf('ctl'), self.nginx_conf)
File "/usr/lib/python3/dist-packages/certbot_nginx/configurator.py", line 1141, in nginx_restart
"nginx restart failed:
%s
%s" % (out.read(), err.read()))
certbot.errors.MisconfigurationError: nginx restart failed:
Hey! I love your amazing tutorials. Make a video about how to host a php website with database in google cloud platform
Thanks, and thanks for the idea
@@TonyTeachesTech ❤
Showing 403 Forbidden error on webpage and wp-admin page.
My configuration on google cloud kindly advice.
Software
Operating system
Debian (10.12)
Software
Apache2 (2.4.38)
Google-Fluentd (1.9.7)
MySQL-Client (5.7.38)
MySQL-Server (5.7.38)
PHP (7.4.29)
Stackdriver-Agent (6.1.4)
WP-CLI (2.6.0)
WordPress (5.9.3)
phpMyAdmin (5.0.2)
Check out this vid for how to possibly fix th-cam.com/video/01T5JJGW4_c/w-d-xo.html
if i want to set SSL for my subdomain, how can I do?
You can specify the subdomain in the same way as this example
If you still reply, how do we install .crt files?
I’m not sure Jason
Thanks bro❤
You're welcome! Subscribe for more :)
After running those command get error on my website
What is the error?
Hi Tony, greetings from Brazil. This method still working?
Yes 100%
yep
Hi Tony, is this will work to renew the expired ssl certificate?
Yes, the SSL is renewable
It can be use for Apache server??
Yep! Just change nginx to apache in the commands
amazing thank you so much
You're very welcome!
Windows IIS developers: "wheres the GUI"
hey, I installed ssl but then can't access my site. I get the error message 'This page isn’t workingwww.diselinix.com redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS. I cleared my cookies, still the same issue. How can I resolve this?
I'm not sure, but Kinsta has a pretty in-depth article on this topic kinsta.com/blog/err_too_many_redirects/
Great work
Thank you so much 😀
Life saver!
:)
thank you
You're welcome
Can you send me the codes that i should write please .. thanks for awesome content
Here is a link to code snippets certbot.eff.org/lets-encrypt/ubuntufocal-nginx
is it lifetime free or 1 year only?
The SSL is free for life
Now What I do
I'm not sure
Thank you
You're welcome