{"id":19247922,"url":"https://github.com/litespeedtech/ols1clk","last_synced_at":"2025-04-04T19:07:49.849Z","repository":{"id":8418902,"uuid":"56544149","full_name":"litespeedtech/ols1clk","owner":"litespeedtech","description":"One click installation of Open LiteSpeed","archived":false,"fork":false,"pushed_at":"2025-02-25T03:24:50.000Z","size":396,"stargazers_count":151,"open_issues_count":0,"forks_count":61,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-28T18:07:19.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/litespeedtech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-18T21:40:29.000Z","updated_at":"2025-03-08T01:57:08.000Z","dependencies_parsed_at":"2024-05-07T03:25:58.563Z","dependency_job_id":"1c974b03-4f65-4f8a-930b-0fc00cabf7eb","html_url":"https://github.com/litespeedtech/ols1clk","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litespeedtech%2Fols1clk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litespeedtech%2Fols1clk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litespeedtech%2Fols1clk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litespeedtech%2Fols1clk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litespeedtech","download_url":"https://codeload.github.com/litespeedtech/ols1clk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234921,"owners_count":20905854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T18:05:40.188Z","updated_at":"2025-04-04T19:07:49.821Z","avatar_url":"https://github.com/litespeedtech.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ols1clk\n[![Build Status](https://github.com/litespeedtech/ols1clk/workflows/ols1clk/badge.svg)](https://github.com/litespeedtech/ols1clk/actions/)\n[\u003cimg src=\"https://img.shields.io/badge/slack-LiteSpeed-blue.svg?logo=slack\"\u003e](litespeedtech.com/slack) \n[\u003cimg src=\"https://img.shields.io/twitter/follow/litespeedtech.svg?label=Follow\u0026style=social\"\u003e](https://twitter.com/litespeedtech)\n## Description\n\nols1clk is a one-click installation script for OpenLiteSpeed. Using this script, you can quickly and easily install OpenLiteSpeed with it’s default settings. We also provide a **-W** parameter that will install WordPress at the same time but it must still be configured through the wp-config.php page. By default, a MariaDB database will be set up using this script, you can also specify other DB if needed. If you already have a WordPress installation running on another server, it can be imported into OpenLiteSpeed with no hassle using the **--wordpresspath** parameter. To completely install WordPress with your OpenLiteSpeed installation, skipping the need for the wp-config.php page, use the **--wordpressplus** flag. This can be used with **--wpuser**, **--wppassword**, **--wplang**, and **--sitetitle** to configure each of the settings normally set by wp-config.php.\n\n## Installation\n\nOur One-Click script comes with several options. Here are two commmon usages.\n\nInstall OpenLiteSpeed, LSPHP, MariaDB, WordPress, and LiteSpeed Cache plugin:\n```\nbash \u003c( curl -k https://raw.githubusercontent.com/litespeedtech/ols1clk/master/ols1clk.sh ) -w\n```\n\nInstall OpenLiteSpeed and LSPHP only:\n```\nbash \u003c( curl -k https://raw.githubusercontent.com/litespeedtech/ols1clk/master/ols1clk.sh )\n```\n\nSee below for additional options and usage examples.\n\n### Options:\n```\n./ols1clk.sh [option] [option] …\n```\n\n|  Opt |    Options    | Description|\n| :---: | ---------  | ---  |\n|      |`--adminuser [USERNAME]`|          To set the WebAdmin username for OpenLiteSpeed instead of admin.|\n| `-A` |`--adminpassword [PASSWORD]`|      To set the WebAdmin password for OpenLiteSpeed instead of using a random one.|\n|      |`--adminport [PORTNUMBER]`|          To set the WebAdmin console port number instead of 7080.|\n| `-E` |`--email [EMAIL]`|                 To set the administrator email.|\n|      |`--lsphp [VERSION]`    |           To set the LSPHP version, such as 83. We currently support versions '74 80 81 82 83'.|\n|      |`--mariadbver [VERSION]`  |        To set MariaDB version, such as 11.4. We currently support versions '10.6 10.11 11.4 11.6'.|\n| `-W` |`--wordpress`|                     To install WordPress. You will still need to complete the WordPress setup by browser|\n|      |  `--wordpressplus [SITEDOMAIN]`|  To install, set up, and configure WordPress, also LSCache will be enabled|\n|      |  `--wordpresspath [WP_PATH]`|     To specify a location for the new WordPress installation or use for an existing WordPress.|\n| `-R` | `--dbrootpassword [PASSWORD]` |   To set the database root password instead of using a random one.|\n|      |  `--dbname [DATABASENAME]` |      To set the database name to be used by WordPress.|\n|      |  `--dbuser [DBUSERNAME]`   |      To set the WordPress username in the database.|\n|      |  `--dbpassword [PASSWORD]` |      To set the WordPress table password in MySQL instead of using a random one.|\n|      |  `--prefix [PREFIXNAME]`   |      To set the WordPress table prefix.|\n|      |  `--listenport [PORT]`  |         To set the HTTP server listener port, default is 80.|\n|      |  `--ssllistenport [PORT]` |       To set the HTTPS server listener port, default is 443.|\n|      |  `--wpuser [WP_USER]`   |         To set the WordPress admin user for WordPress dashboard login. Default value is wpuser.|\n|      |   `--wppassword [PASSWORD]`    |  To set the WordPress admin user password for WordPress dashboard login.|\n|      |   `--wplang [WP_LANGUAGE]` |      To set the WordPress language. Default value is \"en_US\" for English.|\n|      |   `--sitetitle [WP_TITLE]` |      To set the WordPress site title. Default value is mySite.|\n|      |   `--pure-mariadb`|               To install OpenLiteSpeed and MariaDB.|\n|      |   `--pure-mysql`|                 To install OpenLiteSpeed and MySQL.|\n|      |   `--pure-percona`|               To install OpenLiteSpeed and Percona.|\n|      |   `--with-mysql`  |               To install OpenLiteSpeed/App with MySQL.|\n|      |   `--with-percona`  |             To install OpenLiteSpeed/App with Percona.|\n|      |   `--owasp-enable`  |             To enable mod_security with OWASP rules. If OLS is installed, then enable the owasp directly|\n|      |   `--owasp-disable`  |            To disable mod_security with OWASP rules.|    \n|      |   `--proxy-r`  |                  To set a proxy with rewrite type.|\n|      |   `--proxy-c`  |                  To set a proxy with config type.|\n| `-U` |   `--uninstall`  |                To uninstall OpenLiteSpeed and remove installation directory.|\n| `-P` |   `--purgeall`   |                To uninstall OpenLiteSpeed, remove installation directory, and purge all data in MySQL.|\n| `-Q` |   `--quiet`      |                To use quiet mode, won't prompt to input anything.|\n| `-V` |   `--version`    |                To display the script version information.|\n| `-v` |   `--verbose`    |                To display more messages during the installation.|\n|      |   `--update`      |               To update ols1clk from github.|\n| `-H` |    `--help`       |               To display help messages.|\n\n### Examples\n|    Examples    | Description|\n|---|---|\n|      `./ols1clk.sh`                       |To install OpenLiteSpeed with a random WebAdmin password.|\n|      `./ols1clk.sh --lsphp 81 `           |To install OpenLiteSpeed with lsphp80.|\n|      `./ols1clk.sh -A 123456 -e a@cc.com` |To install OpenLiteSpeed with WebAdmin password  \"123456\" and email a@cc.com.|\n|      `./ols1clk.sh -R 123456 -W `         |To install OpenLiteSpeed with WordPress and MySQL root password \"123456\".|\n|      `./ols1clk.sh --wordpressplus a.com` |To install OpenLiteSpeed with a fully configured WordPress installation at \"a.com\".|\n\n## FAQ\n\n### How do I create additional Virtual Hosts from the console?\nRun the following command to create an additional virtual host in a few seconds. The example document root will be **/var/www/www.example.com**. Be sure to substitute your own domain. \n```\n/bin/bash \u003c( curl -sk https://raw.githubusercontent.com/litespeedtech/ls-cloud-image/master/Setup/vhsetup.sh ) -d www.example.com\n```\n\n### How do I create additional Virtual Hosts with WordPress from the console?\nThe first time you create an additional Virtual Host, the script will need to get your database root password from **/usr/local/lsws/password**. If you have custom value, please update **/usr/local/lsws/password** or echo the password to the specified location: **/root/.db_password**. \n```\necho 'root_mysql_pass=\"DB_ROOT_PASSWORD\"' \u003e /root/.db_password\n```\n\nThen run the following command to create an additional virtual host with the WordPress.\n```\n/bin/bash \u003c( curl -sk https://raw.githubusercontent.com/litespeedtech/ls-cloud-image/master/Setup/vhsetup.sh ) -d www.example.com -w\n```\n\n### How to I create additional Virtual Hosts and LE certificates from the console?\nPlease be sure that your domain is already pointing to the server.\n\nThen run the following command to create an additional virtual host with a Let's Encrypt certificate applied. Be sure to substitute your own domain and your email address. \n```\n/bin/bash \u003c( curl -sk https://raw.githubusercontent.com/litespeedtech/ls-cloud-image/master/Setup/vhsetup.sh ) -d www.example.com -le admin@example.com -f\n```\nNote: The `-f` option is to force https redirection \n\n## Support \u0026 Feedback\nIf you still have a question after reading these instructions, you have a few options:\n* Join [the GoLiteSpeed Slack community](https://litespeedtech.com/slack) for real-time discussion\n* Report any issue on the [Github ols1clk](https://github.com/litespeedtech/ols1clk/issues) project\n* Report any issue or discuss any OpenLiteSpeed topic on the [OLS Google Group](https://groups.google.com/forum/#!forum/openlitespeed-development)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitespeedtech%2Fols1clk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitespeedtech%2Fols1clk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitespeedtech%2Fols1clk/lists"}