{"id":13027,"date":"2025-03-10T06:00:04","date_gmt":"2025-03-10T10:00:04","guid":{"rendered":"https:\/\/blog.litespeedtech.com\/?p=13027"},"modified":"2025-03-24T19:00:19","modified_gmt":"2025-03-24T23:00:19","slug":"litespeed-web-server-one-click-installation","status":"publish","type":"post","link":"https:\/\/blog.litespeedtech.com\/2025\/03\/10\/litespeed-web-server-one-click-installation\/","title":{"rendered":"Introducing LSWS One-Click Installation"},"content":{"rendered":"
The script includes a 15-day LiteSpeed Web Server trial license by default. After the trial period, you can apply your own license or enter your serial number using the The default use for the one-click script sets a random admin password and installs only two pieces of software:<\/p>\n If you want to host WordPress, the A few tips to keep in mind when using the script to install WordPress:<\/p>\n Here are a few more usage examples that you might find helpful:<\/p>\n Please see the documentation<\/a> to learn how to use these and other options.<\/p>\n Any time you want to create an additional virtual host, we have another script for that. Create a vhost in seconds using The document root in the example above would be Want to use Let\u2019s Encrypt to get an SSL certificate? You can do that with the This example creates a If you want a WordPress virtual host, you can combine the This will create the NOTE: <\/strong>The first time you create an additional WordPress virtual host, you need to make sure the script can fetch your database root password. If you have a custom password, you can update The LiteSpeed Web Server one-click installation script has flexible options that allow you to make installation as simple or complex as you wish. Check out our documentation<\/a> for more options, or watch our brief video<\/a> to see
\nIntroducing a new way to install LiteSpeed Web Server with just one click!<\/strong>\u00a0LiteSpeed Web Server One-Click Installation (lsws1clk.sh<\/code>) comes with several options and can be used with any supported operating system<\/a>. Using this versatile script, you can quickly and easily install our enterprise web server with its default settings, and you can choose to include other useful applications, including WordPress and the LiteSpeed Cache plugin.<\/p>\n
--license [LICENSE_NO]<\/code> parameter during installation. Don\u2019t know what license is best for you? You can browse our licenses here<\/a>. There\u2019s a LiteSpeed Web Server license for every budget, starting at zero dollars!<\/p>\n
Install LSWS and LSPHP<\/h2>\n
\n
bash <( curl -sk https:\/\/raw.githubusercontent.com\/litespeedtech\/lsws1clk\/master\/lsws1clk.sh )\r\n<\/pre>\n
Install LSWS and WordPress<\/h2>\n
-W<\/code> parameter installs all of the following:<\/p>\n
\n
bash <( curl -sk https:\/\/raw.githubusercontent.com\/litespeedtech\/lsws1clk\/master\/lsws1clk.sh ) -W\r\n<\/pre>\n
\n
-W<\/code> parameter will install WordPress as shown above, but you will still need to configure the WordPress installation through the browser.<\/li>\n
--with-mysql<\/code> or
--with-percona<\/code> flags.<\/li>\n
--wordpresspath<\/code> parameter.<\/li>\n
--wordpressplus [SITEDOMAIN]<\/code>. The
--wpuser<\/code>,
--wppassword<\/code>,
--wplang<\/code>, and
--sitetitle<\/code> flags allow you to further customize the settings.<\/li>\n<\/ul>\n
Other Examples<\/h2>\n
\n
.\/lsws1clk.sh --lsphp 83<\/code>: install LSWS with LSPHP v8.3 (also known as lsphp83)<\/li>\n
.\/lsws1clk.sh -A 123456 -E admin@example.com<\/code>: install LSWS with WebAdmin password
123456<\/code> and email
admin@example.com<\/code><\/li>\n
.\/lsws1clk.sh -R 123456 -W<\/code>: install LSWS with WordPress and MariaDB root password
123456<\/code><\/li>\n
.\/lsws1clk.sh --wordpressplus example.com<\/code>: install LSWS with a fully configured WordPress installation at
example.com<\/code><\/li>\n<\/ul>\n
Additional Virtual Hosts<\/h2>\n
vhsetup.sh<\/code> with the
-d<\/code> option, like so:<\/p>\n
\/bin\/bash <( curl -sk https:\/\/raw.githubusercontent.com\/litespeedtech\/ls-cloud-image\/master\/Setup\/vhsetup.sh ) -d www.example.com\r\n<\/pre>\n
\/var\/www\/www.example.com<\/code>. Be sure to substitute your own domain when you use the
-d<\/code> option.<\/p>\n
Add Let\u2019s Encrypt<\/h3>\n
-le<\/code> option, as long as you already have your domain configured to point to the server.<\/p>\n
www.example.com<\/code> virtual host with the admin email address of
admin@example.com<\/code>. We used the
-f<\/code> option to force an HTTPS redirection:<\/p>\n
\/bin\/bash <( curl -sk https:\/\/raw.githubusercontent.com\/litespeedtech\/ls-cloud-image\/master\/Setup\/vhsetup.sh ) -d www.example.com -le admin@example.com -f\r\n<\/pre>\n
Make a WordPress vhost<\/h3>\n
-d<\/code> and
-w<\/code> options, like so:<\/p>\n
\/bin\/bash <( curl -sk https:\/\/raw.githubusercontent.com\/litespeedtech\/ls-cloud-image\/master\/Setup\/vhsetup.sh ) -d www.example.com -w\r\n<\/pre>\n
www.example.com<\/code> virtual host, and install all of the applications needed for WordPress.<\/p>\n
\/usr\/local\/lsws\/password<\/code>, or you can echo the password to
\/root\/.db_password<\/code>, like so:<\/p>\n
echo 'root_mysql_pass=\"DB_ROOT_PASSWORD\"' > \/root\/.db_password\r\n<\/pre>\n
Conclusion<\/h2>\n
lsws1clc<\/code> in action.<\/p>\n