You can install OpenLiteSpeed, LSPHP, MariaDB, WordPress, and LiteSpeed Cache plugin for WordPress in 1-click!
ols1clk is a one-click installation script for OpenLiteSpeed. Using this script, you can quickly and easily install OpenLiteSpeed with its default settings, Using different parameters for example,
./ols1clk.sh -w you can install WordPress files and MySQL database associated with it, along with LiteSpeed Cache Plugin for WordPress at the same time.
Currently one-click installation only supports Centos(6-8), Debian(7-10) and Ubuntu(14,16,18,20) with 64 bits platforms
- User Permission:
ols1clkbe run with superuser access, You can either switch to the super user (root) with the
sucommand or (you may run it as root or use the
sudocommand). How you do this will depend upon which distribution you use. Some distributions enable the root user (such as CentOS), while some do not (such as Ubuntu and Debian).
- Run the following in the command line:
wget https://raw.githubusercontent.com/litespeedtech/ols1clk/master/ols1clk.sh && bash ols1clk.sh
- Run the following in the command line:
- The above methods will install OpenLiteSpeed and lsphp module.
- To install WordPress and (if not already present) along with MySQL database, along with LiteSpeed Cache Plugin for WordPress, run
bash <( curl -k https://raw.githubusercontent.com/litespeedtech/ols1clk/master/ols1clk.sh ) -w
- Answer any prompts within the script and you’re done!
./ols1clk.sh [options] [options] …
|To set the WebAdmin password for OpenLiteSpeed instead of using a random one.|
|To set the administrator email.|
|To set the LSPHP version, such as 80. We currently support versions ’56 70 71 72 73 74 80′.|
|To set MariaDB version, such as 10.5. We currently support versions ‘10.2 10.3 10.4 10.5’.|
|To install WordPress. You will still need to complete the WordPress setup by browser|
|To install, setup, and configure WordPress, also LSCache will be enabled|
|To specify a location for the new WordPress installation or use for an existing WordPress.|
|To set the database root password instead of using a random one.|
|To set the database name to be used by WordPress.|
|To set the WordPress username in the database.|
|To set the WordPress table password in MySQL instead of using a random one.|
|To set the WordPress table prefix.|
|To set the HTTP server listener port, default is 80.|
|To set the HTTPS server listener port, default is 443.|
|To set the WordPress admin user for WordPress dashboard login. Default value is wpuser.|
|To set the WordPress admin user password for WordPress dashboard login.|
|To set the WordPress language. Default value is “en_US” for English.|
|To set the WordPress site title. Default value is mySite.|
|To uninstall OpenLiteSpeed and remove installation directory.|
|To uninstall OpenLiteSpeed, remove installation directory, and purge all data in MySQL.|
|To use quiet mode, won’t prompt to input anything.|
|To display the script version information.|
|To display more messages during the installation.|
|To update ols1clk from github.|
|To display help messages.|
|To install OpenLiteSpeed with a random WebAdmin password.|
|To install OpenLiteSpeed with lsphp80.|
|To install OpenLiteSpeed with WebAdmin password “123456” and email firstname.lastname@example.org.|
|To install OpenLiteSpeed with WordPress and MySQL root password “123456”.|
|To install OpenLiteSpeed with a fully configured WordPress installation at “a.com”.|
Why should I use ols1clk (1-Click Install) Script?
If you are trying to install WordPress on your own machine and have no idea where to start, this is your one stop shop! This will install the web server, and optionally MySQL and WordPress as well, giving you a running start. After the script finishes, you can get straight to configuring the web server or jump right into setting up WordPress.
Do I need super user access?
Yes, you need root access to use the script. You may use a super user account, or you may use
sudo as well.
Where is OLS installed to?
Where is WordPress installed?
By default, WordPress is installed to:
What PHP version is installed?
The latest version from our repositories. Currently, it is version 8.1
I tried installing OLS once and it threw a bunch of text at me saying there was an error!
This one-click install script should automatically install any dependencies you are missing.
Can I use it for my existing WordPress installation?
Yes! All you need to do is point the script to the installation path using the
Will it break my existing WordPress installation?
Open LiteSpeed cannot read
.htaccess files. However, this script will parse your
.htaccess file and try to extract the relevant rewrite rules. Depending on how complex the file is, there may be issues in the conversion.
What happens when there is an OLS update?
The Web Admin says there is an update for OLS! The script installs using your OS’s package manager. Just run update in the package manager to update your installation. e.g.