|
The problem is connected with localhost installation on Windows.
I solved this problem by reinstalling magento following closely these steps:
http://www.jvfconsulting.com/blog/117/How_To_Install_Magento_Locally_On_Windows_XP.html
NOTE: Because Magento does not work with PHP 5.3, the best is to use WAMP server, not XAMPP. In Wamp you can easily configure which PHP version to use.
Unpack MAGENTO to for example
C:\wamp\www\yourdomain (or C:\xampp\htdocs\yourdomain)
Most important to solve this issue is to configure these files:
C:\wamp\bin\apache\conf\httpd.conf
remove the “#” hash character in front of the following line:
LoadModule rewrite_module modules/mod_rewrite.so
set DocumentRoot path to the directory where your installation of magento is, e.g.:
DocumentRoot “C:/wamp/www/yourdomain/”
C:\WINDOWS\system32\drivers\etc\hosts
add the following domain entry to point to your localhost IP address:
127.0.0.1 www.yourdomain.com
Restart Apache !
Start the magento installation by opening up the www.yourdomain.com website in your browser, and if you did all the above setup correctly, you’ll see the first part of the Magento installation screen.
Without this step, the cookies of the Magento install will not work properly and the database will not properly install when going through the Magento setup. This solved the issue magento connect now can return to admin without problems. Also, this way I\’ve solved another issue that after installation login to magento admin redirect back to the login without displaying an error message.
Note: check version of PHP, which you will use. Magento not work with PHP 5.3 (for XAMPP, use XAMPP for Windows Version 1.7.1 ). In Wamp, download and use PHP 5.2.11 instead.
ALTERNATIVE:
Unpack MAGENTO to for example to C:/wamp/www/magento
Now updade the followin files accordingly:
C:\wamp\bin\apache\conf\httpd.conf
set DocumentRoot path to the basic WAMP directory:
DocumentRoot “C:/wamp/www/”
C:\WINDOWS\system32\drivers\etc\hosts
add the following domain entry to point to your localhost IP address:
127.0.0.1 www.localhost.com
Restart Apache !
Now start the magento installation by opening up the www.localhost.com/magento website in your browser, and if you did all the above setup correctly, you’ll see the first part of the Magento installation screen…
I hope this helps.
|