snap install certbot.

main
Robert 2 years ago
parent 4e32805b0f
commit a98d477c06
  1. 26
      protected/README.MD

@ -151,11 +151,7 @@ $ sudo a2ensite 000-default.conf
$ sudo a2enmod rewrite
# after php deps are installed come back and run this:
$ sudo a2enmod php8.3
# Install Certbot to get SSL certs for Apache2
$ sudo apt-get update
$ sudo apt-get install certbot
$ sudo certbot --apache
$ sudo systemctl restart apache2
---------------------------OR--------------------------------
@ -192,15 +188,25 @@ $ sudo ln -s /etc/nginx/sites-available/cms /etc/nginx/sites-enabled/
$ sudo nginx -t
# if test is ok, then run:
$ sudo systemctl reload nginx
# Install Certbot to get SSL certs for nginx
$ sudo apt-get update
$ sudo apt-get install certbot
$ sudo certbot --nginx
$ sudo systemctl reload nginx
```
## PHP deps
```
PHP gd and mysql must be installed:
$ sudo apt-get install php8.3 php8.3-gd php8.3-mysql
```
## Make site use SSL certs to enable https
```
# Install Certbot to get SSL certs
$ sudo snap install --classic certbot
$ sudo ln -s /snap/bin/certbot /usr/bin/certbot
If installed Apache2:
$ sudo certbot --apache
$ sudo systemctl restart apache2
----OR----
If installed nginx:
$ sudo certbot --nginx
$ sudo systemctl reload nginx
```
Loading…
Cancel
Save