How to Install a Second WordPress Site in the Same public_html Folder

A 3D illustration showing how to install a second WordPress site in the same public_html folder using separate directories.

Many website owners want to run multiple websites without buying separate hosting plans. You can actually host multiple websites under one account by learning how to install a second WordPress site in the same public_html folder. This process is straightforward if you follow the right steps. By creating a specific subdirectory, you keep your files organized and ensure that your first website remains unaffected by the new one.

Why Use Subdirectories for Your Second Site?

When you decide to install a second WordPress site in the same public_html folder, you must avoid mixing files. The public_html folder is the main garage for your website files. If you just dump all the files for a second site into the main area, they will overwrite your first site’s files.

Therefore, you create a new “room” or folder inside the main garage. For instance, if your main site is in the root folder, your second site could live in a folder named site2. This separation ensures that each WordPress installation has its own space to function correctly.

Preparing Your Domain and Database

Before you move files, you need to prepare your domain. You must have a second domain name or a subdomain ready. In your cPanel, navigate to the “Domains” section. Here, you should point your second domain to the specific path, such as public_html/site2. This tells the internet exactly where to look when someone types your new web address.

Additionally, every WordPress site needs a database to store posts and settings. When you install a second WordPress site in the same public_html folder, you must create a fresh database. Use the “MySQL Database Wizard” in your hosting panel. Most importantly, use a unique table prefix like wp2_ instead of the default wp_. This prevents the two sites from trying to talk to the same data tables.

Uploading WordPress Files Manually

First, download the latest version of WordPress from the official website. Once you have the ZIP file, extract it on your computer. Next, use an FTP tool or the File Manager in your cPanel to create the site2 folder inside public_html.

After creating the folder, upload all the extracted files into public_html/site2. This step is crucial because it physically separates the core code of both websites. Consequently, you can update one site later without worrying about breaking the other one.

Using Softaculous for a Faster Setup

If you prefer a simpler method to install a second WordPress site in the same public_html folder, use an auto-installer like Softaculous. Find Softaculous in your cPanel and click on WordPress. When the installation screen appears, look for the “In Directory” field.

Type “site2” or your preferred folder name in that box. Select the correct domain from the dropdown menu. The software will automatically create the folder, set up the database, and install the files for you. This saves time and reduces the chance of making technical mistakes during the manual setup.

Managing Permalinks and Plugins

After the installation, log in to your new dashboard. You should check your permalink settings immediately. It is wise to use different structures or ensure they do not conflict with the main site. While you might want the same look for both sites, keep your plugins separate.

Each site should have its own set of active plugins. This practice prevents a buggy plugin on one site from crashing your entire hosting environment. If you follow these organized habits, your server will run much more smoothly.

Final Checks and Success

Testing is the final stage of the process. Visit your new domain to see if the site loads correctly. Check the original site as well to ensure it is still working perfectly. By following these rules, you have successfully learned to install a second WordPress site in the same public_html folder. For more technical details on managing multiple installations, you can read this guide on WordPress optimization.

References

  • WordPress.org. (2024). Giving WordPress Its Own Directory.
  • cPanel Documentation. (2025). How to Manage Addon Domains.
  • Softaculous Ltd. (2023). Installing WordPress in a Subdirectory.

Leave a Reply