litespeedtech / ols1clk

One click installation of Open LiteSpeed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

script doesn't install memcached package

K-E-N-W-A-Y opened this issue · comments

commented

script only install memcached php extension and it doesn't install memcached package.

Screenshot 2023-09-02 180030

Screenshot 2023-09-02 180200

it can be simply fixed by manually installing and enabling memcached package

yum install memcached -y

systemctl start memcached

systemctl enable memcached

Screenshot 2023-09-02 180302

image

commented

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

image

also i had to add www.mydomain.com to Listener wordpressssl > General > Virtual Host Mappings. it only had mydomain.com without www by default.

image

then site started working correctly with SSL.

image

commented

Hi @K-E-N-W-A-Y
To answer your question.

  1. Please consider using this script, which covers the object cache and config unix socket for you. Read more
  2. 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
  3. 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.
commented
  1. 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.

image

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.

  1. i see, thank you @Code-Egg
commented

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.