{"id":12509,"date":"2023-02-06T06:00:41","date_gmt":"2023-02-06T11:00:41","guid":{"rendered":"https:\/\/blog.litespeedtech.com\/?p=12509"},"modified":"2023-02-06T06:00:41","modified_gmt":"2023-02-06T11:00:41","slug":"wordpress-cloud-image-faq","status":"publish","type":"post","link":"https:\/\/lswp.store\/index.php\/2023\/02\/06\/wordpress-cloud-image-faq\/","title":{"rendered":"WordPress Cloud Image FAQ"},"content":{"rendered":"<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-12511\" src=\"https:\/\/lswp.store\/wp-content\/uploads\/2023\/02\/WPCloudFAQ-1.png\" alt=\"WordPress Cloud Image FAQ\" width=\"1000\" height=\"500\" srcset=\"https:\/\/lswp.store\/wp-content\/uploads\/2023\/02\/WPCloudFAQ-1.png 1000w, https:\/\/lswp.store\/wp-content\/uploads\/2023\/02\/WPCloudFAQ-1-300x150.png 300w, https:\/\/lswp.store\/wp-content\/uploads\/2023\/02\/WPCloudFAQ-1-768x384.png 768w, https:\/\/lswp.store\/wp-content\/uploads\/2023\/02\/WPCloudFAQ-1-600x300.png 600w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<p>LiteSpeed cloud images allow you to spin up a high performance web server and applications in three minutes or less! These images are available from several providers, including <a href=\"https:\/\/marketplace.digitalocean.com\/category\/blogs-and-forums\">DigitalOcean<\/a>, <a href=\"https:\/\/www.vultr.com\/marketplace\/\">Vultr<\/a>, <a href=\"https:\/\/console.cloud.google.com\/marketplace\/browse?q=litespeed\">Google Cloud Platform<\/a>, <a href=\"https:\/\/aws.amazon.com\/marketplace\/search\/results?x=0&amp;y=0&amp;searchTerms=litespeed\">AWS<\/a>, <a href=\"https:\/\/azuremarketplace.microsoft.com\/en-us\/marketplace\/apps?search=litespeed\">Azure<\/a> and <a href=\"https:\/\/marketplace.alibabacloud.com\/\">Alibaba Cloud<\/a>, and they come with a variety of web applications, the most popular of which is WordPress.<\/p>\n<p>So let\u2019s say that you\u2019ve chosen a provider, and installed an OpenLiteSpeed and WordPress cloud image. You\u2019re up and running, but maybe you have questions. Well, you are in the right place, because we have answers! Here are some of the common things that people like you want to know:<\/p>\n<h2>Where are the WordPress files stored?<\/h2>\n<p>After your cloud image installation is complete, the WordPress files can be found in the Document Root, which is set to <code>\/var\/www\/html<\/code>.<\/p>\n<h2>Can I complete the script later?<\/h2>\n<p>Sure. If you don\u2019t want to finish the setup script right now, you can press <code>CTRL-C<\/code> to exit the script. The next time you log in from the SSH console, the script will automatically pick up where you left off. You can <code>CTRL-C<\/code> as often as you need to. The script will prompt you at every future login until you complete the setup.<\/p>\n<h2>How do I secure phpMyAdmin?<\/h2>\n<p>There are three ways to secure phpMyAdmin: Change the URL, allow only specific IP addresses, and require a password. You can use any of these options, and you can use more than one of them, if you like.<\/p>\n<h3>Change your phpMyAdmin URL<\/h3>\n<p>In the WebAdmin Console:<\/p>\n<ul>\n<li>Navigate to <strong>WebAdmin &gt; Virtual Hosts &gt; Context<\/strong><\/li>\n<li>Change <strong>URI<\/strong> from <code>\/phpmyadmin<\/code> to the URI of your choice<\/li>\n<\/ul>\n<h3>Only allow specific IP addresses<\/h3>\n<p>In the WebAdmin Console:<\/p>\n<ul>\n<li>Navigate to <strong>WebAdmin &gt; Virtual Hosts &gt; Context &gt; phpmyadmin<\/strong><\/li>\n<li>Change <strong>Access Allowed<\/strong> from <code>*<\/code> to a comma-delimited list of allowed IP addresses and subnets<\/li>\n<li>Set <strong>Access Denied<\/strong> to <code>*<\/code><\/li>\n<\/ul>\n<h3>Require a password<\/h3>\n<p>Log into the SSH console and create a password file, like so:<\/p>\n<pre>$ sudo touch \/usr\/local\/lsws\/conf\/PASS\n$ sudo chown lsadm:lsadm \/usr\/local\/lsws\/conf\/PASS\n<\/pre>\n<p>In the WebAdmin Console:<\/p>\n<ul>\n<li>Navigate to <strong>WebAdmin &gt; Virtual Hosts &gt; Security<\/strong><\/li>\n<li>Click <strong>+<\/strong> under <strong>Realm List<\/strong> then set <strong>Realm Name<\/strong> to <code>example<\/code><\/li>\n<li>Set <strong>User DB Location<\/strong> to <code>\/usr\/local\/lsws\/conf\/PASS<\/code><\/li>\n<li>Click <code>\/usr\/local\/lsws\/conf\/PASS<\/code> to create a user and password<\/li>\n<li>Navigate to <strong>WebAdmin &gt; Virtual Hosts &gt; Context &gt; phpmyadmin<\/strong><\/li>\n<li>Set <strong>Realm<\/strong> to <code>example<\/code><\/li>\n<\/ul>\n<h2>How do I create additional virtual hosts?<\/h2>\n<p>OpenLiteSpeed comes with a single virtual host named <code>example<\/code>. There are two ways to create additional virtual hosts: with a script, and manually.<\/p>\n<h3>With a script<\/h3>\n<p>This method will automatically set up Listener, VirtualHost, Force SSL, Let&#8217;s Encrypt, and WordPress. You can run the script either in Interactive Mode, or from the CLI.<\/p>\n<h4>Interactive Mode<\/h4>\n<p>Use the following commands to download and run the script:<\/p>\n<pre>wget https:\/\/raw.githubusercontent.com\/litespeedtech\/ls-cloud-image\/master\/Setup\/vhsetup.sh\nchmod +x vhsetup.sh\nbash vhsetup.sh\n<\/pre>\n<p>Or just run the script without downloading it:<\/p>\n<pre>\/bin\/bash &lt;( curl -sk https:\/\/raw.githubusercontent.com\/litespeedtech\/ls-cloud-image\/master\/Setup\/vhsetup.sh )\n<\/pre>\n<h4>CLI Mode<\/h4>\n<p>Use the following commands to download and run the script:<\/p>\n<pre>wget https:\/\/raw.githubusercontent.com\/litespeedtech\/ls-cloud-image\/master\/Setup\/vhsetup.sh\nchmod +x vhsetup.sh\nbash vhsetup.sh -d www.example.com -le admin@example.com -f -w\n<\/pre>\n<p>Or just run the script without downloading it:<\/p>\n<pre>\/bin\/bash &lt;( curl -sk https:\/\/raw.githubusercontent.com\/litespeedtech\/ls-cloud-image\/master\/Setup\/vhsetup.sh ) -d www.example.com -le admin@example.com -f -w\n<\/pre>\n<p>Some tips:<\/p>\n<ul>\n<li>In the example, we use <code>-le admin@example.com<\/code>. When you do this, be sure that your domain is already pointing to the server, and to substitute your own email address.<\/li>\n<li>We also use <code>-w<\/code>. This requires that your environment has PHP, SQL service, and SQL root password.<\/li>\n<\/ul>\n<h3>Manually<\/h3>\n<p>Our OpenLiteSpeed knowledge base has full instructions for creating new virtual hosts manually. See <a href=\"https:\/\/openlitespeed.org\/kb\/setting-up-name-based-virtual-hosting-on-openlitespeed\/\">Create Virtual Hosts on OpenLiteSpeed<\/a>.<\/p>\n<h2>Can I use LiteSpeed Enterprise with the Cloud Image?<\/h2>\n<p>Sure. You can upgrade from OpenLiteSpeed to LiteSpeed Enterprise at any time. We have a script that will take care of this for you, though we do suggest that you try the script on a test server first. Also, you can get help by using the <code>-H<\/code> parameter when you run the script.<\/p>\n<p>Use this command:<\/p>\n<pre>\/bin\/bash &lt;( curl -sk https:\/\/raw.githubusercontent.com\/litespeedtech\/ls-cloud-image\/master\/Setup\/ols2ent-v2.sh )\n<\/pre>\n<p>The script will:<\/p>\n<ol>\n<li>Generate a LiteSpeed Enterprise configuration file from your OpenLiteSpeed config file<\/li>\n<li>Ask you for a valid license key (enter the word <code>Trial<\/code> if you would like to start with a 15-day trial license)<\/li>\n<li>Back up the OpenLiteSpeed config file and uninstall OpenLiteSpeed<\/li>\n<li>Install LiteSpeed Enterprise and load the config file<\/li>\n<\/ol>\n<h2>Conclusion<\/h2>\n<p>We hope we\u2019ve answered all of your burning questions, but if there\u2019s anything else you want to know, take a look at <a href=\"https:\/\/docs.litespeedtech.com\/cloud\/images\/wordpress\/\">our comprehensive documentation<\/a>. Or drop by our Slack community (first timers, <a href=\"https:\/\/www.litespeedtech.com\/slack\">click here for an invitation<\/a>) and ask your question in the <a href=\"https:\/\/golitespeed.slack.com\/archives\/C3RMQ3KGW\">#openlitespeed<\/a> or <a href=\"https:\/\/golitespeed.slack.com\/archives\/C3RJHNBTQ\">#wpcache<\/a> channel!<\/p>\n<p>&#8212;<\/p>\n<p><em>Thanks to <a href=\"https:\/\/lswp.store\/author\/eleu\/\">Eric Leu<\/a> for his contributions to this post.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This OpenLiteSpeed and WordPress Cloud Image FAQ answers all of the common questions surrounding one-click images.<\/p>\n","protected":false},"author":1,"featured_media":12511,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[28,29],"tags":[62],"class_list":["post-12509","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cache","category-openlitespeed","tag-cloud-images"],"jetpack_featured_media_url":"https:\/\/lswp.store\/wp-content\/uploads\/2023\/02\/WPCloudFAQ-1.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/posts\/12509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/comments?post=12509"}],"version-history":[{"count":0,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/posts\/12509\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/media\/12511"}],"wp:attachment":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/media?parent=12509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/categories?post=12509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/tags?post=12509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}