1. Take the back of backup of old database (backup/data.sql).
2. Take the backup of your Themes/Templates (app/design/frontend), Skins, Images (media), local.xml (app/etc/loca.xml) and Custom Modules folders.
3. Change your current directory to magento ((/var/www/html/magento).
4. Change permissions for some of the directories of magento folder.
i. mv php.ini.sample php.ini
ii. chmod o+w var var/.htaccess app/etc
iii. chmod -R o+w media
5. Place the backup of old database (backup/data.sql).
6. mysql -hDBHOST -uDBUSER -pDBPASS DBNAME < backup/data.sql
7. Run magento installer and follow the installation steps.
8. Replace the backup of Themes/Templates (app/design/frontend), Skins, Images (media) and Custom Modules folders.
9. Update
You need to edit a few things in the database if your changing domain names or if you’re using a test server that’s just an IP address. Using PHPMyAdmin, Navicat or something similar, connect to the database. Table core_config_data has rows that need to be changed and updated with the new url. For a single store installation you need to just update:
path: value:
web/unsecure/base_url http://[you_domain_here]/
web/secure/base_url https://[your_secure_domain_here]/
With multiple stores you need also change:
path: value:
web/unsecure/base_url http://[you_domain_here]/
web/secure/base_url https://[your_secure_domain_here]/
web/unsecure/base_link_url http://[your_domain_here]/
web/unsecure/base_skin_url http://[your_domain_here]/skin/
web/unsecure/base_media_url http://[your_domain_here]/media/
web/unsecure/base_js_url http://[your_domain_here]/js/
web/secure/base_link_url https://[your_secure_domain_here]/
web/secure/base_skin_url https://[your_secure_domain_here]/skin/
web/secure/base_media_url https://[your_secure_domain_here]/media/
web/secure/base_js_url https://[your_secure_domain_here]/js/
Enjoy Programming!!
Friday, March 26, 2010
Wednesday, March 17, 2010
WAP Redirect
Recently I add a new class for WAP redirection in php classes . It's link is http://www.phpclasses.org/browse/package/6060.html.
This class can be used to redirect mobile phone users.
It can check the user agent string sent by the user browser and redirect to different URLs depending on the type of device that is use to access the current page.
Currently it can redirect to different URLs depending on whether the user device is an iPhone, a PlayStation or another device that supports WML.
Enjoy Programming!!!
This class can be used to redirect mobile phone users.
It can check the user agent string sent by the user browser and redirect to different URLs depending on the type of device that is use to access the current page.
Currently it can redirect to different URLs depending on whether the user device is an iPhone, a PlayStation or another device that supports WML.
Enjoy Programming!!!
Subscribe to:
Posts (Atom)