Skip to content

Commit af1fbfc

Browse files
authored
Default PHP 8.4
Certbot snap install Fix Nginx install issue
1 parent eea6b78 commit af1fbfc

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

UbuntuLinux-LAMP-server.yaml

+8-10
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ Parameters:
244244
- "php8.3"
245245
- "php8.4"
246246
- "none"
247-
Default: "php8.3"
247+
Default: "php8.4"
248248
s3BucketName:
249249
Type: String
250250
Description: "https://console.aws.amazon.com/s3/buckets"
@@ -1645,20 +1645,19 @@ Resources:
16451645
16461646
# Redis & Memcached
16471647
apt-get install -q -y redis-server memcached
1648-
systemctl enable --now redis-server memcached
1648+
systemctl enable redis-server memcached
16491649
1650+
# Certbot: https://eff-certbot.readthedocs.io/en/stable/install.html#snap-recommended
1651+
snap install --classic certbot
1652+
ln -s /snap/bin/certbot /usr/bin/certbot
16501653
1651-
# Certbot
1652-
apt-get install -q -y certbot
1653-
apt-get install -q -y python3-certbot-dns-route53 python-certbot-dns-route53-doc
1654-
systemctl daemon-reload
1655-
systemctl enable certbot.timer
1654+
snap set certbot trust-plugin-with-root=ok
1655+
snap install certbot-dns-route53
16561656
16571657
# Web server
16581658
export WEB="${webOption}"
16591659
case $WEB in
16601660
Apache)
1661-
apt-get install -q -y python3-certbot-apache
16621661
apt-get install -q -y apache2 libapache2-mod-fcgid
16631662
systemctl enable apache2
16641663
@@ -1693,8 +1692,7 @@ Resources:
16931692
Nginx)
16941693
apt-get remove -q -y apache2
16951694
apt-get purge -q -y apache2
1696-
apt-get install -q -y python3-certbot-nginx
1697-
apt-get install -q -y nginx-full
1695+
apt-get install -q -y nginx
16981696
systemctl enable nginx
16991697
17001698
cp /etc/nginx/sites-available/default /etc/nginx/sites-available/default."`date +"%Y-%m-%d"`"

0 commit comments

Comments
 (0)