When adding an addon domain name under LNMP, we may get the following error messages:
Redirect http://www.glassesshops.com to https://www.glassesshops.com
–2025-02-17 16:39:11– https://soft.vpser.net/lib/acme.sh/latest.tar.gz
Resolving soft.vpser.net (soft.vpser.net)… failed: Name or service not known.
wget: unable to resolve host address ‘soft.vpser.net’
tar (child): latest.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
/usr/bin/lnmp: line 1186: cd: acme.sh-*: No such file or directory
/usr/bin/lnmp: line 1187: ./acme.sh: No such file or directory
sed: can’t read /usr/local/acme.sh/acme.sh: No such file or directory
/usr/bin/lnmp: line 1192: /usr/local/acme.sh/upgrade.sh: No such file or directory
chmod: cannot access ‘/usr/local/acme.sh/upgrade.sh’: No such file or directory
Restarting cron (via systemctl): cron.service.
/usr/bin/lnmp: line 1220: /usr/local/acme.sh/acme.sh.env: No such file or directory
Generate ssl certificate using Let’s Encrypt…
/usr/bin/lnmp: line 1336: /usr/local/acme.sh/acme.sh: No such file or directory
Generate SSL Certificate failed!
How to solve this issue?
Edit file: lnmp, which is under
/usr/bin/
Change
wget https://soft.vpser.net/lib/acme.sh/latest.tar.gz –prefer-family=IPv4 –no-check-certificate
to
wget https://softs.vpser.net/lib/acme.sh/latest.tar.gz –prefer-family=IPv4 –no-check-certificate
Restart lnmp:
lnmp restart
Done