{"id":3497,"date":"2025-12-18T16:22:23","date_gmt":"2025-12-18T10:52:23","guid":{"rendered":"https:\/\/youstable.com\/blog\/?p=3497"},"modified":"2025-12-18T16:22:25","modified_gmt":"2025-12-18T10:52:25","slug":"setup-wordpress-on-ubuntu-openlitespeed","status":"publish","type":"post","link":"https:\/\/www.youstable.com\/blog\/setup-wordpress-on-ubuntu-openlitespeed","title":{"rendered":"How to Setup WordPress on Ubuntu &#8211; OpenLiteSpeed, Mysql, Phpmyadmin, and LetsEncrypt SSL"},"content":{"rendered":"\n<p>If you recently purchased <strong><a href=\"https:\/\/www.youstable.com\/hosting\/vps-hosting\" class=\"rank-math-link\">VPS Hosting <\/a><\/strong>from YouStable or any other company and willing to host WordPress blog\/Website without spending more $15 per month control panel cost which usually uses your server resources for no reason.<\/p>\n\n\n\n<p>You can <a href=\"https:\/\/youstable.com\/blog\/wordpress-staging-site\/\" class=\"rank-math-link\" target=\"_blank\" rel=\"noopener\"><strong>Install WordPress<\/strong><\/a> even without control panel all you have to do is Install all required dependencies like Apache, MySQL, Php etc. In this article we will be setting up WordPress website on <strong>Ubuntu 16.04<\/strong> with Open LiteSpeed for better performance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"steps-to-install-wordpress-on-ubuntu-vps\"><strong>Steps to Install WordPress on Ubuntu VPS<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Installing <strong>MySQL<\/strong><\/li><li>Setting Up <strong>PhpMyAdmin<\/strong><\/li><li>Installing <strong>Open LiteSpeed<\/strong><\/li><li>Install WordPress <\/li><li>Configure Your Domain Name with WordPress and update Open LiteSpeed<\/li><li>Installing Free SSL &#8211; <strong>LetsEncrypt<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Prepare tools<\/strong>: If you are using Windows system then you need to Download Putty to access your VPS and if you are a Macbook user then you can access thru <strong>Terminal <\/strong><\/p>\n\n\n\n<p>Login to your VPS with root user credentials with this command <strong><em>ssh root@xx.xxx.xx.xx <\/em><\/strong>replace XX with your server IP Address<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1102\" height=\"512\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.26.28-PM.png\" alt=\"\" class=\"wp-image-3498\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.26.28-PM.png 1102w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.26.28-PM-768x357.png 768w\" sizes=\"auto, (max-width: 1102px) 100vw, 1102px\" \/><\/figure>\n\n\n\n<p>I am using Macbook Pro and you can see I am logged in to my VPS with root user<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"installing-latest-mysql\">Installing Latest MySQL<\/h2>\n\n\n\n<p>You must install latest version of MySQL to avoid any kind of compatibility issue with other application to ensure the same visit <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;dev.mysql.com\/downloads\/repo\/apt\/<\/code><\/pre>\n\n\n\n<p>scroll to the bottom click the Download button. Scroll to the bottom again and right click &#8220;No thanks, just start my download.&#8221; and copy link.<\/p>\n\n\n\n<p>Save the link to your notepad because we will use this URL to download the mysql on the server<\/p>\n\n\n\n<p>Now we are going to move to a directory we can write in.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/tmp<\/code><\/pre>\n\n\n\n<p>Using Curl lets download MYSQL to \/tmp<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ curl -OL https:\/\/dev.mysql.com\/get\/mysql-apt-config_0.8.16-1_all.deb<\/code><\/pre>\n\n\n\n<p>Now use the following command just to verify the file was downloaded.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1270\" height=\"232\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.39.38-PM.png\" alt=\"\" class=\"wp-image-3500\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.39.38-PM.png 1270w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.39.38-PM-768x140.png 768w\" sizes=\"auto, (max-width: 1270px) 100vw, 1270px\" \/><\/figure>\n\n\n\n<p>You&#8217;ll that mysql file is downloaded in this directory with the name of <strong>mysql-apt-config_0.8.16-1_all.deb<\/strong> and to install the same follow these command lines<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dpkg -i mysql-apt-config*<\/code><\/pre>\n\n\n\n<p>After it installs we need to refresh our apt package cache.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1302\" height=\"510\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.45.49-PM.png\" alt=\"\" class=\"wp-image-3501\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.45.49-PM.png 1302w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.45.49-PM-768x301.png 768w\" sizes=\"auto, (max-width: 1302px) 100vw, 1302px\" \/><\/figure>\n\n\n\n<p>Lets go ahead and remove the downloaded package since we don&#8217;t need it anymore.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm mysql-apt-config*<\/code><\/pre>\n\n\n\n<p>Now we are going to install MYSQL. You will be asked to set a\u00a0<strong>root<\/strong>\u00a0password, make sure it is secure.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install mysql-server<\/code><\/pre>\n\n\n\n<p>With MYSQL installed lets verify it is running.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status mysql<\/code><\/pre>\n\n\n\n<p>You should see and output similar to below..keep in mind we want to see\u00a0<strong>Active: active (running)<\/strong>\u00a0as long as you see that we are get.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1506\" height=\"506\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.51.20-PM.png\" alt=\"\" class=\"wp-image-3502\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.51.20-PM.png 1506w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.51.20-PM-768x258.png 768w\" sizes=\"auto, (max-width: 1506px) 100vw, 1506px\" \/><\/figure>\n\n\n\n<p>Now with MYSQL running we need to secure it run the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql_secure_installation<\/code><\/pre>\n\n\n\n<p><br>This will ask you for the\u00a0<strong>root<\/strong>\u00a0password you setup during MYSQL installation. After you enter the password it is going to ask a series of yes or no questions. Aside from password strength everything else I answer\u00a0<strong>yes.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1418\" height=\"2196\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.57.31-PM.png\" alt=\"\" class=\"wp-image-3504\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.57.31-PM.png 1418w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.57.31-PM-768x1189.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.57.31-PM-992x1536.png 992w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-17-at-12.57.31-PM-1322x2048.png 1322w\" sizes=\"auto, (max-width: 1418px) 100vw, 1418px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>If you recently purchased VPS Hosting from YouStable or any other company and willing to host WordPress blog\/Website without spending [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":15102,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[350],"tags":[],"class_list":["post-3497","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledgebase"],"acf":[],"featured_image_src":"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2025\/11\/How-to-Setup-WordPress-on-Ubuntu.jpg","author_info":{"display_name":"YouStable","author_link":"https:\/\/www.youstable.com\/blog\/author\/youstable"},"_links":{"self":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/3497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/comments?post=3497"}],"version-history":[{"count":1,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/3497\/revisions"}],"predecessor-version":[{"id":11331,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/3497\/revisions\/11331"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media\/15102"}],"wp:attachment":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media?parent=3497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/categories?post=3497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/tags?post=3497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}