Giter Site home page Giter Site logo

Comments (4)

Code-Egg avatar Code-Egg commented on July 19, 2024 1

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.

from ols1clk.

Code-Egg avatar Code-Egg commented on July 19, 2024 1

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.

from ols1clk.

K-E-N-W-A-Y avatar K-E-N-W-A-Y commented on July 19, 2024

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 [email protected] -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

from ols1clk.

K-E-N-W-A-Y avatar K-E-N-W-A-Y commented on July 19, 2024
  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

from ols1clk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.