We Need Website

Blog

  • Home
  • How to
  • Hosting
  • Server
  • WordPress
  • Applications

Step by Step Guide How to Install WordPress on Subdirectory on Cloudways

Posted by Praan Kumar 11 Comments

Share this

First of all, I would like to thank you for choosing Cloudways for your business, freelance or blog. But why? Because in today’s world no one has time, every piece of time is important to all of us. Cloud hosting is the platform where you don’t have to take a headache or know too much knowledge about running a server. It’s an application based hosting where servers are provided by many web hosting providers and Cloudways manage to optimize it to run smoothly. Cloudways solve every problem by live chat within a few minutes. Cloudways removes all these hassles from server management and takes care of all the technical aspects and server-side issues for its users. By the way today I am not going to tell more about its review if you want a Cloudways review please read it here. (Article coming soon.)

Installation of WordPress on a Subfolder on Cloudways

Though there are many ways like install via ssh command or wp-config.php edit methods, Today in this blog post, I am here I am going to show you the easiest method and explain step by step how to install WordPress application on sub-directory(folder) on Cloudways hosting. Note that this tutorial is for those who already know how to install a WordPress application on Cloudways.com but don’t know how to install it on a subfolder like http://example.com/blog where the  /blog is a different directory having separate WordPress application.

There are two easy methods you can Install a WordPress application on the Cloudways server. They are-

  1. Backend Method or FTP Access
  2. Frontend Method or Direct Installation

Method 1: Using SFTP /FTP (Backend Method)

We will install the WordPress application using the backend method and use apps like FileZilla. So, before proceeding, kindly install the FileZilla app or any client-side FTP access.

Step 1: Access Remote FTP Server via FileZilla

Access to your Server root domain Application by your credentials.

Install WordPress on Cloudways

 

Step 2: Creating the folder name

Now heads to the public_html folder name and right-click on create the directory. Say name it /blog. Now We will install a fresh WordPress Application on this folder/directory.

Step 3: Install a Normal WordPress Application on your server

I assumed that you already know how to install a WordPress application on Cloudways. If you forgot kindly read the article How to Install a fresh WordPress application on Cloud Hosting. Now we need to move the files on the application we have just created to the newly created /blog folder so that it can be accessed via example.com/blog.

Step 4: Move the Files to the Newly Created Folder/Sub-Directory

Now access the newly created application via FTP login credentials and enter the public_html folder.

Now you can select CTRL+A to select all the files on the application and right-click on that to see the download option.

Kindly note that anything you download from FTP Server or upload on Remote Server can be seen on the left side of your desktop. I suggest you create a folder on your local server, i.e. Laptop/Desktop so that you later don’t get confused with the downloaded files on the PC.

Note: Downloading files from FTP Remote Server requires too much time due to the file processing is done one by one on the remote server. If you want to download the files at once within a few seconds creating an archive of the files on FTP, then read here to How to Archive Files on FileZilla or FTP Server.

Step 5: Upload the Files on the Sub-Directory/Folder

Now disconnect the recently created applications and access the root domain application. Goto the public_html folder & the name of the folder you have created. I have created as /blog here.

Upload all the files just you have downloaded on the example.com/blog folder. Again uploading multiple files at once on the Remote Server takes time. So We have written another article How to Upload files at once and extract them. (Remember that FTP Server don’t allow you to unzip a zip file directly on FileZilla. That can be done via SSH command. )

After the file uploads, let’s forward to the next step.

Step 6: Change Application Site URL & Home Address (Domain Management)

Cloudways application dashboard

Go to the newly created application dashboard and launch the database manager. You can see the below options-

Cloudways WordPress phpmyadmin

From the above lists click on wp-options. After that click on Select-Data. Now you will see the below options –

Now click on edit under the wp-options both for site URL and home. Enter your main root domain and folder name. For example http://example.com/blog and save it. Repeat the procedure for the home wp-options column also. But do not change the website URL in the domain management from the application dashboard for the subfolder installation.

Edit siteurl & home address in cloudways

Step 6 ends here after editing the site URL & home address.

Now load your website address and followed by the folder name, your sub-directory installation is complete. You can log in access details in the application dashboard which has been created recently. See how it looks like.


Method 2: Frontend Method or Direct Installation

This is the easiest method to Install a WordPress application on Cloudways or even on any web server. Personally, I use this method to install WordPress blogs for my other sites.

Step 1: Create an application

Again create an application from your Cloudways dashboard. For this method, you can either Install a WordPress version app or select a Custom App or create a PHP application database. Here, I have selected a PHP application.

Note: In this case, you can always use the database of the root domain. For security reasons, we suggest you use a separate application and not install the subfolder WordPress alongside the main database. If there is no application was created for the root or primary domain, then creating an application is compulsory.

Using different table_prefix on a single database you can install an unlimited number of WordPress if you want.

app cloudways application

Step 2: Create a folder or subfolder

Here, for example, I am going to install a WordPress on my folder weneedwebsite.com/review/

To create a folder you can either use again the FTP access method or use a plugin called File Manager. You need to install this plugin on the main website under which website you want to install a separate WordPress installation. Say, your website is example.com and going to install the WordPress app on a subdirectory called /blog, install it on example.com. If example.com isn’t built with WordPress, then use the FTP Access method instead.

Using this plugin, you can create any file, folder, delete, and modify any files. The file manager handles everything like creating zip files, extracting files, downloading files, etc. This is a great plugin to manage everything from the front-end side of your website.

I have created the folder name kw-finder under the root domain weneedwebsite.com

Step 3: Download the WordPress Software

Now Download the WordPress application from the wordpress.org repository and upload it to the subfolder you want to install your new blog. Extract the application if it is in zip format.

Step 4: Installation Process

Now access the complete URL i.e. example.com/blog on your browser.  This should look like below-

wordpress install config

Now, continue to complete the installation process. After clicking on Continue, you should see the below scene on the next window.

wordpress databse configuration

You will need to know the following items before proceeding.

  1. Database name
  2. Database username
  3. Database password
  4. Database host
  5. Table prefix (if you want to run more than one WordPress in a single database)

Now click on Let’s go! Then you can see the following screen. The following information is available in the Cloudways application dashboard in the Access Details under the MYSQL ACCESS tab.

.

wordpress config

Enter the database credentials.

Don’t use the default Table Prefix wp_ for security reasons. Give it any name. Using a different table prefix, you can run more than one WordPress installation in a single database. Also, if you use the same table prefix, it will overwrite the previous WordPress installation and break your old site. So, always use a different Table Prefix. You can use it as your folder name or anything else.

Step 5: Run The Installation

After entering the Mysql Access Credentials, in the next window, you can see like below-

wordpress databse run

Click on Run the Installation. After that, you should see like below-

welcome wordpress installation

The Above information is for Admin and Site title. Enter the details as your wish. It is the admin username and password you will use when logging into your website. Click on Install WordPress.

When the Installation is Complete, it should be like this-

successful wordpress installation complete

Step 6: Change Application Site URL & Home Address ( Also called “Domain Management”)

For this step follow step number 6 from method 1 mentioned above called Backend Method or FTP Access. After step 6 is done your Installation is complete.


If you want to install two or more different WordPress installations, follow Method 2 (Frontend Method) for any blogs or any web hosting provider.

Note: We have created a wp-config.php file using the above method. If for any reason this automatic file creation doesn’t work, don’t worry. All this does is fill in the database information to a configuration file. You may also simply open wp-config-sample.php in a text editor, fill in your information, and save it as wp-config.php. Read here how to edit a wp-config.php file (edit only if the automatic installation fails).

This was how you can Install a Separate WordPress Application on a subfolder in Cloudways. If you have any trouble let us know below-

Filed Under: applications, Server

About Praan Kumar

Co-founder of weneedwebsite.com
Marketing Advisor, Software Tester, Webmaster, & SEO Professional.

Comments

  1. Nilay says

    October 12, 2018 at 5:16 am

    Thanks. I setup my first subdirectory wordpress website on cloudways using your guide. Useful article.

    Reply
  2. Daniel says

    December 30, 2018 at 8:19 pm

    Thank you so much for helping me with your article!
    Please, I want to ask me a question
    if I have the Cloudways CDN enabled in my primary domain and create a new installation as per your tutorial:

    Will this new manual installation keep the CDN active? will the CDN work in this subdirectory?

    Reply
    • Praan Kumar says

      December 31, 2018 at 4:31 am

      Yes, it will also in Subdirectory if you active your CDN in the primary domain. I recommend to active CDN for both of the application as * You will be charged $1 for 25GB per application. Additional consumption will cost $0.04 per GB. Just make sure that you have installed the subfolder in the same 25GB server droplet.

      Reply
  3. Aleksandr Samokhin says

    July 26, 2019 at 2:21 am

    Can’t pass the first step. You can’t create new directory in your applications folder via FTP – Error: mkdir /applications/wp_docs: permission denied.

    Reply
  4. Jonathan Rashad says

    August 20, 2019 at 4:48 pm

    This is the most simple method on how to Install WordPress on Sub-directory on Cloudways. I’ve been searching around for a while but this guide is the quickest and simple method I’ve learned so far and I’ve tried it and success, no problem at all. Thanks, bro Praan Kumar.

    Reply
  5. Mary says

    May 2, 2020 at 3:23 pm

    this is very helpful! thank you- the only issue I am having so far is the access panel doesn’t change the admin panel link address to the new location I have moved it to
    also
    is it possible to have 2 installations of WordPress in two different subdomains
    /blog
    /shop
    look forward to hearing from you!

    Reply
    • Praan Kumar says

      May 2, 2020 at 3:34 pm

      Yes, It’s possible to install 2 installations of WordPress in two different subdomains or subfolder. Here /blog or /shop refers to a subfolder or directory. You can install it on two different applications. If you want to install multiple WordPress on a single database, the installation method is little different and must change the table name prefix in the wpconfig.php file. Also, the complete installation process of multiple WordPress on a single application is different. Soon, I will publish an article on it. Stay Updated.

      Reply
  6. mary says

    May 5, 2020 at 1:26 pm

    yes please i would like to know! or is it possible to get you to install it for me? i can pay a fee?

    Reply
  7. Faiz Alias says

    October 6, 2020 at 11:15 pm

    Hi..thanks for tutorial…but you do not mention to add domain or not on domain management… Need to create domain for subfolder or not?

    For example I have create root domain http://www.example.com

    So, do I need to create http://www.example.com/blog on domain management?

    Thanks again 🙂

    Reply
    • Praan Kumar says

      October 11, 2020 at 3:14 pm

      From your database manager locate the “database_options” tables name and change to site URL and home URL as http://www.example.com/blog/
      Or Follow step number 6 from any methods above.

      Reply
  8. CHINWENDU IGBAJI says

    October 19, 2021 at 10:35 pm

    Thank you for this great tutorial, it was helpful

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Technologies We Use

  • Hosting: Cloudways
  • Theme: Genesis Framework
  • Keyword Research: Semrush

Recent Posts

  • Learn How to Do Keywords Research Properly and Generate Traffic for Blogs
  • How to redirect subfolder to a new domain [No plugin required]
  • List of Instagram Photos & Videos Downloader Tools & Website
  • How To Create A WordPress Website: Step-by-Step Guide
  • Top 5 Best Push Notifications Services for Growth of Your Business & Blogging

Recent Comments

  • Ashish on Javascript code to Reduce Bounce Rate by 50% using Force redirects method
  • edward on How to Embed Tik Tok Videos Inside a html Web Page / WordPress / CMS
  • CHINWENDU IGBAJI on Step by Step Guide How to Install WordPress on Subdirectory on Cloudways
  • Yusuf Khan on How to Install Viral Festival Wishing Script on WordPress Blogs
  • dipenkumar on How to Install Viral Festival Wishing Script on WordPress Blogs

Copyright © 2023 We Need Website | Privacy Policy . About Us . Contact Us