Hi guys!
Magento is a truly amazing ecommerce storefront package. Built upon Zend Framework, it offers many features that make managing an ecommerce store very easy. But magento is built with primary platform in mind as Linux, but we can also install it in Windows. In this blog, i will show you how to instal
l Magento in windows using
XAMPP.
- First download and install the latest version of XAMPP from Apache Friends.
- After installation of XAMPP, open up your php.ini located inside the XAMPP installation directory (e.g. C:\xampp\php\php.ini), and edit the following directives to the respective values given below:
max_execution_time = 300 max_input_time = 300 error_reporting = E_ALL & ~E_NOTICE |
extension=php_curl.dll extension=php_mbstring.dll extension=php_mcrypt.dll extension=php_mhash.dll extension=php_openssl.dll extension=php_pdo.dll
|
- Now Download the latest version of Magento. Since i am installing it on XAMPP 1.7.3, the latest version of Magento is 1.4.0.1.
- Unzip the archive into your webroot folder. In XAMPP, it is the htdocs folder (e.g., C:\xampp\htdocs\). Now you will see a sub folder magento inside your htdocs folder.
- Now point your browser to http://localhost/magento/. It will now start the installation wizard:

- Select the checkbox and click Continue
- Set your locale settings, otherwise leave it as default. Now click Continue to go to the next page:

- Here change the database and other configurations according to your own requirements. Now click Continue. This will start installing Magento
- After successful installation, the following screen will be shown:

Fill out the form accordingly except for the Encryption Key which will be generated automatically in the next step.
- When this screen shows:

It means you have successfully installed Magento.
- Click the link named Go to Backend to access the magento admin panel. Enter your username and password to login in to the admin panel. Now if the login is not successful, do the following.
- Access the following file in the magento installation:
C:\wamp\www\magento\app\code\core\Mage\Core\Model\Session\Abstract\Varien.php and edit the lines 81 to 83 from:
'domain' => $cookie->getConfigDomain(),
'secure' => $cookie->isSecure(),
'httponly' => $cookie->getHttponly()
to
'domain' => '',
'secure' => '',
'httponly' => ''
Now login into admin panel. This will now work.