script doesn't install memcached package
K-E-N-W-A-Y opened this issue · comments
i also noticed another strange behavior (maybe i did something wrong way)
first i installed wordpress to a custom path using this command
bash <( curl -sk https://raw.githubusercontent.com/litespeedtech/ols1clk/master/ols1clk.sh ) --wordpressplus mydomain.com --wordpresspath '/var/www/www.mydomain.com' --lsphp 81
then i installed LE using this.
sudo yum install certbot -y
/bin/bash <( curl -sk https://raw.githubusercontent.com/litespeedtech/ls-cloud-image/master/Setup/vhsetup.sh ) -d www.mydomain.com -le admin@mydomain.com -f
it issued SSL successfully but it didn't update Web Admin → Configuration → Listeners → wordpressssl correctly
i had to manually add these to Listener wordpressssl > SSL > SSL Private Key & Certificate
Private Key File: /etc/letsencrypt/live/www.mydomain.com/privkey.pem
Certificate File: /etc/letsencrypt/live/www.mydomain.com/fullchain.pem
Chained Certificate: yes
also i had to add www.mydomain.com
to Listener wordpressssl > General > Virtual Host Mappings. it only had mydomain.com
without www by default.
then site started working correctly with SSL.
Hi @K-E-N-W-A-Y
To answer your question.
- Please consider using this script, which covers the object cache and config unix socket for you. Read more
- The vhost script will auto-apply the certificate and set it at the virtual host level, you don't need to manually update it on the listener level. More
- The current
--wordpressplus
option does not cover both the root domain and the www domain automatically. If you want to have www covered, please install OLS without WordPress, then use the vhost script to create the domain and WordPress for you, this way should cover both the root domain and www domain for you. You can also use this script, which will add both the root domain and www domain for you.
- i'll check that but if you can please consider adding memcached package to install list. if script already install memcached php extension why not install memcached package to make it complete 😀
2, i didn't touch vHost trying to fix it. just checked it to confirm it's empty.
after i ran LE script website post links started to give me 403s. adding www domain & ssl keys to listener fixed it. BTW i only use non www domain.
- i see, thank you @Code-Egg
For 2, i didn't touch vHost trying to fix it. just checked it to confirm it's empty. I checked the script, you should see a warning like sed: can't read xxxx/vhconf: No such file or directory. Because you did not use the vhost script to generate the vhconf, so it may look into the wrong path, and that's why it did not set the SSL certificate path for you.
It will be too heavy if we have object cache services installed by default. Feel free to try this script in the future, it has both Memcached and Redis installed and pre-configured, so you can switch in between.