amuck-landowner

WordPress Installation

Vikas Deore

New Member
I need help to install WordPress on a subfolder of my existing website. I would like to add the blog as a subfolder to the site.
 

Rex M

New Member
I need help to install WordPress on a subfolder of my existing website. I would like to add the blog as a subfolder to the site.
Hello Vikas Deore,

You can operate multiple WordPress instances within the same domain or on a subdomain by WordPress installed on a sub-directory.

In order to install and run WordPress on the sub-directory, you can follow the steps given below,

  • First, create a Sub-Directory Inside Your WordPress Installation
  • Now, you can connect your existing WordPress installation using cPanel File Manager or FTP.
  • Nextly, once connected, create a sub-directory.
  • Now, upload the WordPress zip into that sub-directory, then unzip and extract it.
  • Then, add the WordPress database details in wp-config.php.
  • Nextly, Install WordPress on the installation page.
  • Lastly, Access the WordPress admin installed within the sub-directory page.
If a separate WordPress is installed at the root directory, we will need to put the code in the .htaccess file of your sub-directory.

  • You will have to paste the following code into the .htaccess file of your subdirectory,

Code:
# BEGIN WordPress
RewriteEngine On
RewriteBase /subdirectory/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /subdirectory/index.php [L]
# END WordPress

Note: You will need to replace the /subdirectory with your sub-directory name.

Thus, you can install WordPress on a separate sub-directory by implementing the above steps.

Now, your subdirectory is a brand new WordPress instance that you can benefit from. Also, you can add the blog as a subfolder to the site.

-----------------------------
Regards,
Rex M
 

HifiveHost

New Member
I need help to install WordPress on a subfolder of my existing website. I would like to add the blog as a subfolder to the site.

Sure! Installing WordPress as a subdirectory of your current website is a popular method. Here is a step-by-step tutorial to assist you:

Step 1: Download WordPress

  1. Visit the official WordPress website and download the latest version of WordPress.
Step 2: Extract WordPress Files

  1. Extract the downloaded WordPress zip file to your computer.
Step 3: Create a Subfolder on Your Server

  1. Connect to your website's server using an FTP client (e.g., FileZilla) or use your hosting provider's file manager.
  2. Navigate to the root directory of your website.
  3. Create a new folder for your WordPress installation. For example, you can name it 'blog' or any other name you prefer.
Step 4: Upload WordPress Files

  1. Upload all the extracted WordPress files and folders to the subfolder you created in the previous step.
Step 5: Create a Database

  1. Log in to your web hosting control panel.
  2. Find the "Database" section and create a new MySQL database and a user with full privileges.
Step 6: Configure wp-config.php

  1. In the subfolder where you installed WordPress, find the wp-config-sample.php file.
  2. Rename it to wp-config.php.
  3. Open wp-config.php in a text editor and enter the database information (database name, username, password) you created in Step 5.
Step 7: Run the WordPress Installation

  1. Open your web browser and navigate to the subfolder where you installed WordPress (e.g., http://yourdomain.com/blog).
  2. Follow the on-screen instructions to complete the WordPress installation.
  3. Enter the site title, create an admin account, and provide an email address.
  4. Click "Install WordPress."
Step 8: Log in to Your WordPress Dashboard

  1. Once the installation is complete, log in to your WordPress dashboard using the admin credentials you set up.
Step 9: Configure Permalinks (Optional)

  1. In your WordPress dashboard, go to Settings > Permalinks.
  2. Choose a permalink structure that suits your needs and click "Save Changes."
That's it! Your WordPress installation is now set up in a subfolder on your existing website. You can start customizing your blog and publishing content.
 

James

New Member
Installing WordPress in a subdirectory of your website involves a few steps. Here’s a detailed guide:

Step 1: Create the Subdirectory

  1. Access Your Web Hosting Account: Use your hosting control panel (like cPanel) or an FTP client to access your website's files.
  2. Create a Subdirectory: Navigate to your website's root directory (often called public_html or www) and create a new folder for your WordPress installation. For example, name it blog.

Step 2: Download WordPress

  1. Download WordPress: Go to the WordPress.org website and download the latest version of WordPress.
  2. Extract the Files: Unzip the downloaded file on your computer.

Step 3: Upload WordPress Files

  1. Upload Files: Use an FTP client or your hosting control panel to upload the extracted WordPress files to the subdirectory you created (e.g., public_html/blog).

Step 4: Create a Database

  1. Access Database Management: Log in to your hosting control panel and navigate to the database management tool (like phpMyAdmin).
  2. Create a New Database: Create a new database for your WordPress installation and take note of the database name, username, and password.

Step 5: Run the WordPress Installation

  1. Open the Installer: In your web browser, navigate to the URL of your subdirectory (e.g., http://yourdomain.com/blog).
  2. Start the Installation: Follow the WordPress installation steps:
    • Choose your language.
    • Enter the database details (database name, username, password, and database host).
    • Run the installation.

Step 6: Configure WordPress

  1. Complete the Setup: After providing the database details, you'll be prompted to set up your WordPress site. Provide the necessary information like site title, admin username, password, and email.
  2. Finish Installation: Click "Install WordPress" to complete the setup.

Step 7: Access Your WordPress Site

Additional Configuration (Optional)

  • Permalinks: Go to Settings > Permalinks in your WordPress dashboard to configure your URL structure.
  • .htaccess File: If you encounter issues with permalinks, you might need to update your .htaccess file. WordPress usually handles this automatically, but sometimes manual adjustments are necessary.
By following these steps, you should have WordPress successfully installed in a subdirectory of your website.
 
Top
amuck-landowner