Setup local installation of Magento 1.0.19870 WampServer

Prerequisites:-
WampServer2 installation http://andij.com/2008/05/15/installing-and-configuring-wampserver2/

Now to install Magento http://www.magentocommerce.com/ Including the Sample Data pack.

Note: Ensure to install the Sample Data pack before performing the installation of Magento itself.

Download both the ‘Sample Data’ pack and ‘Magento’, save these somewhere, decide where you want your new ecommerce shop to be installed, I’m going to install it here: http://www.project.dev/magento/

Unpack magento-1.0.19870.zip into D:\websites\project\htdocs seeing as the zip file contains the \magento\ folder, the path you’ll end up with is D:\websites\project\htdocs\magento

Unpack magento-sample-data-1.0.19870.zip into D:\websites\project\htdocs this will create a folder called D:\websites\project\htdocs\magento-sample-data-1.0.19870

Now is a good time to create your MySQL database, to do this open http://localhost/ where you should see the WampServer homepage, click ‘phpmyadmin’. Simply create a database by putting your database name ‘magento_sample’ (I decided to call it this so that I can create another called ‘magento_live’ for the real shop data) into the ‘Create new database’ field, leave all the defaults and click ‘Create’, you’ll notice the database name appear in the left column.

Installing Sample Data Archive for Magento 1.0.19870

Click ‘magento_sample’ in the left column then click the ‘Import’ tab at the top.

Browse for the sample data file, located D:\websites\project\htdocs\magento-sample-data-1.0.19870\magento_sample_data_for_1.0.19870.sql. Leave the defaults and click ‘Go’ at the bottom right. You’ll now be importing the sample data and it’ll take a little while. Once complete there’ll be a long list of database tables in the left column.

Configure WampServer Apache modules and PHP extensions

Before installing Magento ensure you complete the following:-

Click on the WampServer icon in the system tray

‘Apache’ -> ‘Apache Modules’ tick ‘rewrite_module’
‘PHP’ -> ‘PHP Extensions’ tick ‘php_curl’
‘PHP’ -> ‘PHP Extensions’ tick ‘php_mcrypt’

Now browse to http://www.project.dev/magento/ you should now see the first page of the Magento installation procedure.

Follow the installation procedure, changing the location, time zone, currency to your requirements. When you’re presented with the database configuration page, simply enter ‘magento_sample’ into the database field and proceed. (this is assuming that your MySQL user is ‘root’ and your password is blank).

Let me know how it goes.

2 Responses to Setup local installation of Magento 1.0.19870 WampServer