Wordpress deployment on openlitespeed
Wordpress deployment on openlitespeed
Creating the virtual machine
Create a virtual machine
Select Web Server Type
openlitespeed
Select programming language
PHP
Select Database
MySQL
Select Location - the one closest to your users
Frankfurt
Select the operating system
Ubuntu
Select Plan
1 cpu / 1gb
Create application and choose the virtual machine you have previously created
Choose the Wordpress application from the list
Deploy
Login into the wordpress admin
Install All-in-One WP Migration
Plugins > Add New > Search: All-in-One WP Migration
On the origin website go to Export and download the archive
On the bunnyshell wordpress instance go to Import
Change the php settings to increase the maximum upload size
SSH into the machine
Locate the php.ini file
find /usr/local/lsws -type f -name php.ini
Edit the file
sudo nano /usr/local/lsws/lsphp74/etc/php/7.4/litespeed/php.ini
Update the following properties
php_value upload_max_filesize 2048M
php_value post_max_size 2048M
php_value max_execution_time 6000
php_value max_input_time -1
Restart openlitespeed
sudo /usr/local/lsws/bin/lswsctrl restart
Upload the wordpress archive
Make sure you enable the ListSpeed Cache plugin
SSL Checks
Test redirect on http2
curl --http2 -vI http://
Test https
curl --http2 -vI https://
HTTPS Redirect
Add a .htaccess file with the following content
rewriteCond %{HTTPS} !on
rewriteCond %{HTTP:X-Forwarded-Proto} !https
rewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
Restart OpenLiteSpeed
sudo systemctl restart lsws
Let's encrypt auto renewal
Edit /etc/letsencrypt/cli.ini
renew-hook systemctl restart lsws
Last updated
Was this helpful?