Wordpress deployment on openlitespeed
Wordpress deployment on openlitespeed
Creating the virtual machine
Create a virtual machine
Select Web Server Type
openlitespeedSelect programming language
PHPSelect Database
MySQLSelect Location - the one closest to your users
FrankfurtSelect the operating system
UbuntuSelect Plan
1 cpu / 1gbCreate 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 MigrationOn 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.iniEdit the file
sudo nano /usr/local/lsws/lsphp74/etc/php/7.4/litespeed/php.iniUpdate 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 -1Restart openlitespeed
sudo /usr/local/lsws/bin/lswsctrl restartUpload 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 lswsLet's encrypt auto renewal
Edit /etc/letsencrypt/cli.ini
renew-hook systemctl restart lswsLast updated
Was this helpful?