Comments (4)
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.
from ols1clk.
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.
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
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.
from ols1clk.
- 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
from ols1clk.
Related Issues (20)
- instructions ols1clk HOT 1
- One Click Install fails HOT 2
- Installion of MariaDB fails HOT 4
- --wordpresspath missing on vhsetup.sh HOT 3
- Add support for Percona Server for MySQL HOT 3
- Add SSL to ols1clk HOT 1
- Make DB packages optional or skippable HOT 4
- Allow different "admin" user HOT 2
- add missing php packages HOT 5
- [Feature Request] Support for MariaDB 10.11 HOT 1
- Multiple issues and requests HOT 3
- login page error after ssl install HOT 4
- Database create is failing HOT 1
- Script fails due to repo script no longer working HOT 2
- Option to Enable ModSec and apply OWASP ModSecurity Core Rule Set HOT 3
- Additional flags and settings for vhost? HOT 3
- Forcing HTTPS rule, breaks Let's Encrypt HOT 3
- Domain Aliases/Administrator Email on new vhosts HOT 1
- can i upgrade php version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ols1clk.