Before you can integrate WordPress into your Magento eCommerce website, you must first install WordPress. It's really easy to do yourself and if your hosting company has a 1-click WordPress installer, I would recommend not using this and doing it yourself. This will give you finer control over things and allow you to follow this tutorial.
Before starting this process, ensure that you have FTP access to your Magento website and are comfortable uploading files.
To download WordPress, head on over to https://wordpress.org/ and download the latest version to your computer. This will provide you with a ZIP file containing all of the WordPress application.
Uploading WordPress to your Server
To upload WordPress to your server, first double click the ZIP file and extract everything. This should produce a folder called 'wordpress' that contains all of the WordPress files and folders. Rename this folder to 'wp' and upload it to your server in the root of your Magento website. The root of your website is the base folder that contains the index.php file, app directory, skin directory and many more files and folders. Once this has uploaded fully you can test it by loading up your web browser and typing in your Magento URL and at the end, adding '/wp/'. As an example, if your Magento URL was http://www.example.com/, you would go to http://www.example.com/wp/ in your browser.
If everything has uploaded correctly you should see a WordPress installation page.
Why 'wp' and not 'blog'?
Before we actually install WordPress, I want to explain why we uploaded WordPress to the /wp/ directory, rather than something useful and usable, such as /blog/. When you request a page from Magento, almost all requests are sent through Magento's index.php file, which then routes the request to the correct module in Magento. This all happens transparently and the user never knows that this is happening. Of the few requests that aren't routed to Magento, one is requests that point to a file or folder that actually exists on the server. Because of this, if we installed WordPress at /blog/, any requests to /blog/ would go straight to WordPress, which wouldn't be integrated into Magento. To get around this, we install WordPress at /wp/ (this can be anything other than where you actually want your integrated blog to be) and then later on, we will configure the Magento WordPress Integration extension to display the integrated blog at /blog/. With this setup, requests to /blog/ will be routed through Magento's index.php file (as the /blog/ directory doesn't exist) and then passed to the Magento WordPress Integration extension to display the integrated blog.
Follow the steps outlined on the screen to install WordPress. When you get to the database section, either create a new database and enter those details or enter your Magento database details (recommended but not required). If you are unsure of your Magento database details, locate the app/etc/local.xml file via FTP and you will find the Magento database details here.
WordPress will use 'wp_' as a table prefix by default. This is really useful as it makes it easy to separate your Magento database table from your WordPress database tables if you are sharing a database between the two applications. While it's okay to change it (eg. wp_blog_'), ensure that you do enter something in this field.
You should now have a fully functioning WordPress installation on your Magento server. This installation of WordPress isn't integrated into Magento yet, but it's ready to be integrated. When you're ready, check out our installation guide for Magento WordPress Integration.