Magento is one of best open source e-commerce systems at this time. So, I decide to install and play around with it to understand deeply its business concepts and the system architecture behind.
When install Magento on my Ubuntu, I met several problems. To save your time – if you want to play with magento, I share to you my experience to solve them here.
Problem 1: curl module loading error
You will meet this problem at beginning steps of installation. The root cause is: you haven’t installed curl module for php. To solve this, please install php curl module.
I am using PHP5, so the easiest way to solve this for my case is: install php5-curl by apt-get
sudo apt-get install php5-curl
Restart apache and try again.
Problem 2: Can not login to both backend and front end with localhost
The problem occurs because magneto could not store cookies. We run it as localhost and localhost is not true domain but to store cookies we need a domain. That’s why login stops without saying any word.
There are 2 solutions to solve this
1. Use 127.0.0.1 instead of localhost: you can choose this if you just want to play with Magento – not deploying on production. Actually, this error never happens on live site (because on live site, we use true domain)
2. Go to magento/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file within your magento directory.
-Find the code,
-Replace above code by,
Problem 3: Can not rewrite url
Solution: load rewrite module in apache2. You can do this by add this line into /etc/apache2/apache2.conf at the end of file
LoadModule rewrite_module modules/mod_rewrite.so
Hope this helps.