Some Basic things which a magento developer should know..
How to install magento ?
Installation errors ?
Installation error in version 1.5 ?
Unable to login in admin panel after installation?
CSS not working on frontend ?
How to migrate magento from one server to another server?
How to upgrade
magento?
Linux command to take magento backup?
Multi lingual magento store?
Show Multi currency ?
How to show product on home page ?
How to show new product on home page?
How to show featured product on home page ?
Migrate mageto store from localhost to server ?
How to install magento ?
1) here are some steps to install a fresh magento :
2)download magento zip file from magento ecommerce website
3) unzip this file and place it under your root directory (public_html/magemto or www/magento)
4)create databse for your website and notedown username, password and database name
5)enter url in web browser and follow steps
6)enter database details and admin username password in next steps
7)Now finally click on frontend and backend buttons to access your frontend and admin panel.
Installation Error
1) Curl error : enable curl extension in php php ini file. open your php.ini file and find for curl extension and uncomment it. after that restart your XAMPP and flush magento cache from var/cache dir and restart installation process
Installation error in version 1.5 ?
Validation error : To get rid of this error go to js-->prototypr then find and open validation.js file in editor. now find " ['validate-url', 'Please enter a valid URL. Protocol is required (http://, https:// or ftp://)', function (v) {
return Validation.get('IsEmpty').test(v) || /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i.test(v)
}], " and comment it. then flush your magento cache and restart installation process
Unable to login in admin panel after installation?
If you are unable to login in admin panel after fresh installation and also not getting any error on admin page . go to app->code-->core-->mage-->core-->model-->session-->abstract and open varien.php file then
find
$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath(),
'domain' => $cookie->getConfigDomain(),
'secure' => $cookie->isSecure(),
'httponly' => $cookie->getHttponly()
);
and replace with
$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath()/*,
'domain' => $cookie->getConfigDomain(),
'secure' => $cookie->isSecure(),
'httponly' => $cookie->getHttponly()*/
);
CSS not working on frontend ?
After installation or migration some times css stop working on frontend, to solve this open your database and find core_config_data table and open it. now look for secure and non-secure url and confirm whether it contains "/" at end or not, if not then put " /" at end save flush magento cache and check
How to migrate magento from one server to another server?
Here are steps to migrate magento from one server to another
1) check whether you have SSH access on your server or not, if you have then you can use putty otherwise use phpshell
2) first of all take complete backup of your website (coding+database)
2) If not then download phpshell from HERE , and extract this folder in root directory
3) now enter www.yourdomainname.com/phpshell/pwhash.php in url and run
4) create password and enter it in config.php( you can find config.php file in phpshell folder)
5) now run www.yourdomainname.com/phpshell/phpshell.php and use cd .. command to come at root directory
6) now create tar file of your website. to do this run
tar -cvzf backup.tgz rootfoldername
it will create a tar file of your website and place it in root directory
7) now download and upload this file on your target server and repeat steps 3,4,5
8) now run following command
tar -xvzf backup.tgz
it will extract website in root directory
9) import database and change database entries in local.xml file placed in app/etc folder
10) flush cache and run your website.
How to install magento ?
1) here are some steps to install a fresh magento :
2)download magento zip file from magento ecommerce website
3) unzip this file and place it under your root directory (public_html/magemto or www/magento)
4)create databse for your website and notedown username, password and database name
5)enter url in web browser and follow steps
6)enter database details and admin username password in next steps
7)Now finally click on frontend and backend buttons to access your frontend and admin panel.
Installation Error
1) Curl error : enable curl extension in php php ini file. open your php.ini file and find for curl extension and uncomment it. after that restart your XAMPP and flush magento cache from var/cache dir and restart installation process
Installation error in version 1.5 ?
Validation error : To get rid of this error go to js-->prototypr then find and open validation.js file in editor. now find " ['validate-url', 'Please enter a valid URL. Protocol is required (http://, https:// or ftp://)', function (v) {
return Validation.get('IsEmpty').test(v) || /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i.test(v)
}], " and comment it. then flush your magento cache and restart installation process
Unable to login in admin panel after installation?
If you are unable to login in admin panel after fresh installation and also not getting any error on admin page . go to app->code-->core-->mage-->core-->model-->session-->abstract and open varien.php file then
find
$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath(),
'domain' => $cookie->getConfigDomain(),
'secure' => $cookie->isSecure(),
'httponly' => $cookie->getHttponly()
);
and replace with
$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath()/*,
'domain' => $cookie->getConfigDomain(),
'secure' => $cookie->isSecure(),
'httponly' => $cookie->getHttponly()*/
);
CSS not working on frontend ?
After installation or migration some times css stop working on frontend, to solve this open your database and find core_config_data table and open it. now look for secure and non-secure url and confirm whether it contains "/" at end or not, if not then put " /" at end save flush magento cache and check
How to migrate magento from one server to another server?
Here are steps to migrate magento from one server to another
1) check whether you have SSH access on your server or not, if you have then you can use putty otherwise use phpshell
2) first of all take complete backup of your website (coding+database)
2) If not then download phpshell from HERE , and extract this folder in root directory
3) now enter www.yourdomainname.com/phpshell/pwhash.php in url and run
4) create password and enter it in config.php( you can find config.php file in phpshell folder)
5) now run www.yourdomainname.com/phpshell/phpshell.php and use cd .. command to come at root directory
6) now create tar file of your website. to do this run
tar -cvzf backup.tgz rootfoldername
it will create a tar file of your website and place it in root directory
7) now download and upload this file on your target server and repeat steps 3,4,5
8) now run following command
tar -xvzf backup.tgz
it will extract website in root directory
9) import database and change database entries in local.xml file placed in app/etc folder
10) flush cache and run your website.
Linux command to take magento backup?
ReplyDelete