Configuring Subsites on WordPress !

wordpress-multisite

WordPress supports creation and configuration of subsites within the main site. These subsites work as completely new and independent sites with their own wordpress theme, plugins and database. These subsites will not be impacted by any error or downtime on the main site. Lets take example of Techmanyu.com.

Main site– www.techmanyu.com

Now, if you want to create a subsite like demo.techmanyu.com, then follow the below steps-

  • Login to your hosting cpanel and open File Manager. (We will be using Bluehost cpanel in this post. Most hosting providers have similar cpanel and features)
  • Inside public_html, create a new folder ex – demo.

filemanager_folder

  • Download latest version of wordpress.org and upload it inside the newly created demo folder-

Upload_wordpressorg

  • Extract the zip file –

extract_zip

  • Once the zip is extracted, a folder named wordpress will get created with all the files and folders inside it. Select all the files/folders and move them to the root of demo folder.

movefiles

  • Delete the earlier copied zip file. The demo folder will look like this-

demofolder

  • Rename the file wp-config-sample.php to wp-config.php.

rename-wp-config

  • Now, open Domain Manager from your cpanel and go to subdomains. Create a subdomain and assign it to the newly created subfolder. This will act as the home/root of your subsite.

subdomain– demo.techmanyu.com

configure_subdomain

  • Create a new database for this wordpress site and then configure it. Open, MYSQL Databases from cpanel-

mysqldatabases

  • Create a new database-

createdatabase

  • Create a new user for the database- (any existing user can also be used)

createdbuser

  • Add user to the database and assign previleges-

assignusertodb

db_privileges

  • Now the new db and user should be configured in wp-config.php. Edit the wp-config.php and add the details of db and save it-

configure_db

  • Open the subdomain in browser and verify that the wordpress setup is up and running-

subdomain_setup

  • The subsite can be configured as an independent site with theme and plugins. The site is ready to use.

Note – If you want to configure a new domain with this subsite like www.techdemo.com then it can be configured using the addon domain. Check your domain provider for options.

Let us know in case of any issues.

Thanks for checking out.

 

Categories
Comments
All comments.
Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  1. Mohd Riz

    Great solution ! Will this effect the load time/performance of the main site?