{"id":2119,"date":"2020-09-30T09:33:21","date_gmt":"2020-09-30T06:33:21","guid":{"rendered":"https:\/\/upcloud.com\/global\/us\/resources\/tutorials\/install-wordpress-openlitespeed\/"},"modified":"2020-09-30T09:33:21","modified_gmt":"2020-09-30T06:33:21","slug":"install-wordpress-openlitespeed","status":"publish","type":"tutorial","link":"https:\/\/upcloud.com\/global\/resources\/tutorials\/install-wordpress-openlitespeed\/","title":{"rendered":"How to install WordPress on OpenLiteSpeed"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">WordPress flies like a skyrocket when installed with the perfect speed-optimised OpenLiteSpeed server stack. Over 30% of the websites in the world use WordPress as CMS which defines how powerful is it to design, develop and manage a business website, blog or portal.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OpenLiteSpeed offers a fast and secure environment for running WordPress. OpenLiteSpeed understands Apache rewrite tools and you can install multiple PHP processors for different sites as well.<\/p>\n\n\n\n\n\n<p class=\"wp-block-paragraph\">In this tutorial, we will optimise the OpenLiteSpeed server to host a WordPress site and then install the latest WordPress on the server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Pre-requisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before installing WordPress, you need to have an OpenLiteSpeed server up and running. If you are new to OpenLiteSpeed, check out our tutorial on how to deploy the <a href=\"https:\/\/upcloud.com\/global\/resources\/tutorials\/install-openlitespeed-fast-secure-web-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">OpenLiteSpeed server<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once your OpenLiteSpeed server is set up, you can start installing WordPress. In this guide, we\u2019ll go over the process for:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Installing MariaDB database<\/li>\n\n\n\n<li>Creating a database and the database user<\/li>\n\n\n\n<li>Installing the required PHP extensions<\/li>\n\n\n\n<li>Configuring OpenLiteSpeed<\/li>\n\n\n\n<li>Downloading and extracting WordPress<\/li>\n\n\n\n<li>Setting the right file ownership and permissions<\/li>\n\n\n\n<li>Installing WordPress itself<\/li>\n\n\n\n<li>Setting up SSL certificates to enable HTTPS<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Begin by following the instructions in the next section to install MariaDB.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/signup.upcloud.com\/\">Test hosting on UpCloud!<\/a><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Installing MariaDB server<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">MariaDB is a popular open-source alternative to MySQL database and is conveniently available in the standard repositories. First, update the packages list on the server with the command below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt update<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once the packages list has been updated, run the following command to install the MariaDB server and MariaDB client on your server. You\u2019ll be prompted to confirm whether you want to use storage space. Type Y and press Enter to continue with the installation.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install mariadb-server<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Next, perform the secure installation of MySQL on your server with the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo mysql_secure_installation<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The command prompt will take you through the wizard containing the questions below. Answer each of them below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Change the root password: N\nRemove anonymous user: Y\nDisallow root login remotely: Y\nRemove test database and access to it: Y\nReload Privilege Table Now: Y<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now that MariaDB is installed and configured, we can create the first database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enter the MySQL client by running the next command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo mysql<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then, use the following commands to create a database and grant all permissions on that database to a new database user account.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql &gt; CREATE DATABASE wordpress;\nmysql &gt; GRANT ALL ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'password';<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Flush the privilege table and exit from the mysql shell.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql &gt; flush privileges;\nmysql &gt; exit;<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Your database is then set to install WordPress at a later step.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing required PHP extensions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress works on top of PHP and SQL. To run WordPress on a server seamlessly, install the following required PHP extensions.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install lsphp74-common lsphp74-curl lsphp74-imap lsphp74-json \nlsphp74-mysql lsphp74-opcache lsphp74-imagick lsphp74-memcached lsphp74-redis<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Configuring OpenLiteSpeed<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Next, you need to configure the OpenLiteSpeed server to host your WordPress site. It requires you to set the right version of the PHP processor, enable the rewrite module and several other features.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Configure your server to use lsphp74 as a PHP processor instead of the default PHP processor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Go to <em>Server Configuration<\/em> &gt; <em>External App<\/em>&nbsp;and click the edit icon as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/11-openlitespeed-sapi-app.png\" alt=\"OpenLiteSpeed SAPI app\" class=\"wp-image-17397\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here, you can configure your server to use any specific PHP processor. For this tutorial, we will use lsphp74.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Replace <em>lsphp<\/em>&nbsp;with <em>lsphp74<\/em><\/li>\n\n\n\n<li>Replace <em>uds:\/\/tmp\/lshttpd\/lsphp.sock<\/em>&nbsp;with <em>uds:\/\/tmp\/lshttpd\/lsphp74.sock<\/em><\/li>\n\n\n\n<li>Replace <em>lsphp73\/bin\/lsphp<\/em>&nbsp;with <em>$SERVER_ROOT\/lsphp74\/bin\/lsphp<\/em><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/17-openlitespeed-configure-php.png\" alt=\"Configuring OpenLiteSpeed PHP\" class=\"wp-image-17403\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After you make the changes, click the save icon&nbsp;in the top right corner of the panel, as shown in the screenshot above.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Moving next to configure the rewrite module which is an essential requirement for the WordPress features. Go to the <em>Virtual Hosts<\/em> and click on the view icon.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/15-openlitespeed-edit-virtual-host.png\" alt=\"Editing OpenLiteSpeed virtual host\" class=\"wp-image-17401\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Click on the <em>General<\/em> tab and edit the <em>General options<\/em> with the edit icon at the top right corner.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/19-openlitespeed-edit-virtual-host-general.png\" alt=\"Editing OpenLiteSpeed general virtual host\" class=\"wp-image-17405\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the <em>Document Root<\/em> field, type <em>$VH_ROOT\/html\/wordpress<\/em> and click the save button at the top right corner.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/2-openlitespeed-virtual-host-general.png\" alt=\"OpenLiteSpeed general virtual host\" class=\"wp-image-17388\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Then again on the <em>General<\/em> tab of <em>Virtual Hosts<\/em> configuration, click the edit icon next to the <em>Index Files<\/em> section.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/18-openlitespeed-virtual-host-general.png\" alt=\"OpenLiteSpeed general virtual host\" class=\"wp-image-17404\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the <em>Index Files<\/em> field, add <em>index.php<\/em> at the beginning of the section. Then click the save button at the top right corner.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/4-openlitespeed-virtual-host-index.png\" alt=\"Setting OpenLiteSpeed virtual host index\" class=\"wp-image-17390\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Next, go to the <em>Rewrite<\/em> tab of the <em>Virtual Hosts<\/em> configuration view and edit the <em>Rewrite Control<\/em> options.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/13-openlitespeed-virtual-host-rewrites.png\" alt=\"Enabling OpenLiteSpeed virtual host rewrites\" class=\"wp-image-17399\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Set <em>Enable Rewrite<\/em>&nbsp;and <em>Auto Load from .htaccess<\/em>&nbsp;to <em>Yes<\/em> and click the save icon at the top right corner.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/1-openlitespeed-rewrite-control.png\" alt=\"OpenLiteSpeed rewrite controls\" class=\"wp-image-17387\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once you\u2019ve configured the OpenLiteSpeed server, Click the gracefully restart icon to apply the changes.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/23-openlitespeed-restart-web-server.png\" alt=\"Restarting OpenLiteSpeed web server\" class=\"wp-image-17409\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Downloading and extracting WordPress<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now that our server is configured to host WordPress, you should download and install WordPress.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Navigate to the virtual host root which is <em>\/usr\/local\/lsws\/Example\/html<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/usr\/local\/lsws\/Example\/html\/<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then download the latest version of WordPress using the wget command below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wget https:\/\/wordpress.org\/latest.tar.gz<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Lastly, extract the zipped file. This will create a directory called \u2018wordpress\u2019 in <tt>\/usr\/local\/lsws\/Example\/html<\/tt><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tar xvfz latest.tar.gz<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Setting up file ownership and permissions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Setting up the right ownership of files and folders will make sure that you do not encounter problems while installing or downloading new themes or plugins.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, remove ownership from the wordpress directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo chown -R nobody:nogroup \/usr\/local\/lsws\/Example\/html\/wordpress<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then, 750 permissions were set for the directories and 640 for the files. You can do this with the following commands.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo find \/usr\/local\/lsws\/Example\/html\/wordpress\/ -type d -exec chmod 750 {} \\;\nsudo find \/usr\/local\/lsws\/Example\/html\/wordpress\/ -type f -exec chmod 640 {} \\;<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once you configure the right permissions, you\u2019re all set to open your website and install WordPress in your browser.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing WordPress<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">At this stage, you can open the WordPress installation wizard in your web browser by going to your domain if set or the IP address of your OpenLiteSpeed server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The very first screen will ask you to choose your preferred language. Choose your language and click the <em>Continue<\/em> button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/20-openlitespeed-wordpress-select-language.png\" alt=\"Selecting WordPress language\" class=\"wp-image-17406\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the second screen, WordPress prompts you to keep the database server information and credentials ready. Then just click the <em>Let\u2019s go!<\/em> button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/8-openlitespeed-start-wordpress.png\" alt=\"Starting WordPress install\" class=\"wp-image-17394\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the next screen, fill up the fields as follows:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Database name: the database you created through the MySQL shell, <em>wordpress<\/em> in this example.<\/li>\n\n\n\n<li>Username: Here you need to input the database user<\/li>\n\n\n\n<li>Password: Type in the password of your database user<\/li>\n\n\n\n<li>Database Host: localhost<\/li>\n\n\n\n<li>Table Prefix:&nbsp;wp_&nbsp;is the default table prefix. However, you can type something else to enhance the security of your website.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Once you fill up all the information, click the Submit button to confirm.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/22-openlitespeed-wordpress-database-settings.png\" alt=\"WordPress database settings\" class=\"wp-image-17408\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">At this stage, you\u2019ve configured the database connection for the WordPress installation. Next, you need to click the <em>Run the Installation<\/em> button to set up your WordPress site.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/21-openlitespeed-wordpress-run-install.png\" alt=\"Running WordPress install\" class=\"wp-image-17407\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Next, you\u2019ll be prompted to input the details of your website, create an administrator account and set a password.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Select the name of your website and choose an administrator username. It is recommended not to use a generic username such as \u201cadmin\u201d or \u201cadministrator\u201d. &nbsp;A strong password will be generated automatically. Type in your email address and choose whether you want search engines to index your site or not.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/12-openlitespeed-install-wordpress.png\" alt=\"Installing WordPress\" class=\"wp-image-17398\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once you\u2019ve filled up everything and ready, click the <em>Install WordPress<\/em> button. On successful installation, you will be prompted to log in.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Log in using the username and password you just created in the installation wizard. You\u2019ll then see your very own WordPress website\u2019s admin dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/10-openlitespeed-wordpress-dashboard.png\" alt=\"WordPress dashboard\" class=\"wp-image-17396\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Creating and configuring SSL certificates<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">At this stage, you should have successfully installed WordPress on your web server using one of the most powerful server packages. Next, we can obtain and install SSL certificates to add a security layer between your website server and your audience.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you have already used Certbot to obtain SSL certificates for your OpenLiteSpeed server, you can use the Certbot client that has already been installed. In that case, you can skip the installation step here and go ahead to obtain certificates for your WordPress site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you do not yet have the Certbot installed, use the steps here to get the client.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, update the packages installed on the server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt update<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then, install the Certbot client using the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install certbot<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once you\u2019ve installed the Certbot, go ahead and obtain the SSL certificates for your server using the command below. Note that before you can obtain SSL certificates, you need to have a domain name A record pointing to your OpenLiteSpeed server\u2019s public IP address. You can find out more about\u00a0<a href=\"https:\/\/upcloud.com\/global\/docs\/guides\/domain-name-system\/\" target=\"_blank\" rel=\"noreferrer noopener\">how to create domain name records<\/a>\u00a0in its guide.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo certbot certonly --webroot<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You will then be prompted to answer the following questions.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enter Email address: Type in your email address<\/li>\n\n\n\n<li>Accept the terms of service: A<\/li>\n\n\n\n<li>Share your Email Address with EFF: Type Y for yes and N for No.<\/li>\n\n\n\n<li>Enter Domain name: Type your FQDN (fully qualified domain name) here<\/li>\n\n\n\n<li>Input the Web root: \/usr\/local\/lsws\/Example\/html\/wordpress\/<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Once you have answered all the questions and validation process is complete, the certificate files will be saved in <em>\/etc\/letsencrypt\/live\/&lt;your-domain&gt;\/<\/em> directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, configure the WordPress site on your OpenLiteSpeed server to use the SSL certificate. Navigate to the Virtual Host configuration and open the SSL tab. Edit the SSL Private Key &amp; Certificate.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/16-openlitespeed-add-ssl-keys.png\" alt=\"Adding OpenLiteSpeed SSL keys\" class=\"wp-image-17402\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Type the fields as follows:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Private Key File: \/etc\/letsencrypt\/live\/&lt;your-domain&gt;\/privkey.pem\nCertificate File: \/etc\/letsencrypt\/live\/&lt;your-domain&gt;\/fullchain.pem\nChained Certificate: Yes\nCA Certificate Path: \/etc\/letsencrypt\/live\/&lt;your-domain&gt;\/fullchain.pem\nCA Certificate File: \/etc\/letsencrypt\/live\/&lt;your-domain&gt;\/fullchain.pem<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/6-openlitespeed-ssl-keys.png\" alt=\"Saving OpenLiteSpeed SSL keys\" class=\"wp-image-17392\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once completed, go to <em>Listeners<\/em> and add a new listener.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/14-openlitespeed-add-listener.png\" alt=\"Adding OpenLiteSpeed listener\" class=\"wp-image-17400\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Fill in the fields as follows:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Listener Name: SSL\nIP Address: ANY\nPost: 443\nBinding:\nEnable REUSEPORT: Not Set\nSecure: Yes<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once all set, apply the new settings by clicking the save icon on the right.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/9-openlitespeed-listener-enable-secure.png\" alt=\"Enabling OpenLiteSpeed secure listener\" class=\"wp-image-17395\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Next, view the SSL listener to configure the Virtual host mapping.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/5-openlitespeed-ssl-listener.png\" alt=\"OpenLiteSpeed SSL listener\" class=\"wp-image-17391\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Add a row in Virtual Host Mappings.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/3-openlitespeed-add-virtual-host.png\" alt=\"Adding OpenLiteSpeed virtual host\" class=\"wp-image-17389\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Choose the virtual host and type in your domain name. Save the settings using the save button in the top right corner.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/7-openlitespeed-virtual-host-domains.png\" alt=\"Setting OpenLiteSpeed virtual host domains\" class=\"wp-image-17393\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once you\u2019ve configured the SSL with your OpenLiteSpeed server, click the gracefully restart icon to apply the changes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You should now be able to visit your website on https protocol as well.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion and next steps<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Congratulations, you should now have a brand new WordPress site set up and secured with SSL certificates. WordPress runs lightning quick on the top of the OpenLiteSpeed web server with little left to be desired.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can install the LiteSpeed Cache Plugin to enable server-optimized caching for your WordPress website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also enable Memcached caching on your server with the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get install memcached<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Lastly, you might wish to install some of the must-have WordPress plugins and choose a WordPress Theme. To get started, head over to your WordPress dashboard.<\/p>\n","protected":false},"author":47,"featured_media":17420,"comment_status":"open","ping_status":"closed","template":"","community-category":[250,277],"class_list":["post-2119","tutorial","type-tutorial","status-publish","has-post-thumbnail","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/tutorial\/2119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/tutorial"}],"about":[{"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/types\/tutorial"}],"author":[{"embeddable":true,"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/comments?post=2119"}],"version-history":[{"count":0,"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/tutorial\/2119\/revisions"}],"wp:attachment":[{"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/media?parent=2119"}],"wp:term":[{"taxonomy":"community-category","embeddable":true,"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/community-category?post=2119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}