Install WordPress in a subdirectory of an existing site – WordPress Sub-directory | WP Learning Lab
Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: http://vid.io/xqRL
Install WordPress in a subdirectory of an existing site – WordPress Sub-directory | WP Learning Lab
Download your exclusive 10-Point WP Security Checklist: http://bit.ly/10point-wordpress-hardening-checklist
A WordPress subdirectory install is done in a very similar way to installing WordPress in a domain root. We just install to a different folder.
First thing is to create the subdirectory. Inside cpanel, open the File Manager.
Open the root folder of the website where you want to add the subdirectory install. Inside that folder create a new folder that is the name of the subdirectory you want.
For example, if you wanted a new site at www.yourdomain.com/members
The folder you make needs to be called members.
Your subdirectory has been created. It’s that easy.
That is where we’ll upload fresh WordPress files in a few minutes.
But first, we’re going to create the database.
To do this, go back to your cPanel and open the MySQL databases page. Enter a name for a new database and create it. Make note of the database name because we’ll need in a minute.
Next, and on that same page, create a new user and give them a unique password or use the password generator.
Make note of the username and the password.
Now scroll to the bottom of the MySQL database page and link to the user to the database and give them all privileges.
The database is now created and ready.
Now we’ll upload new WordPress files.
Go to WordPress.org and download the latest WordPress installation package to your computer.
Next, log into the File Manager in hosting account and open the root of your website. Inside that root folder should be a folder with the same name as you chose for you subdirectory. Open that folder.
It should be empty.
Now, click on the Upload link in the menu system. It will open a new window or a new tab. Click the button to open the file browser and choose the WordPress files you just downloaded.
It should complete very quickly. Once complete, you can close the upload window/tab.
Now hit Reload in the File Manager. A zip file should appear. Click it to highlight it and then click on Extract in the top menu.
Click on Ok on the dialog box that pops up to begin extraction.
Click on Reload again so you can see all the files.
Click on the wp-config.php file and then click on Code Editor to open that file in the editor.
Find the section where the database credentials go and copy the info from your database in there. Click on Save Changes when you’re done.
Now, open your subdirectory in a new browser tab or window. You should be presented with the familiar WordPress installation screen.
Install WordPress as normal.
Once installed you can log in and now you have a WordPress site in a subdirectory. Pretty sweet!
Subscribe to this awesome channel here: http://www.youtube.com/subscription_center?add_user=wplearninglab
source