upgrading from 1.7 to 1.9 magento - magento

i need to upgrade my magento store form 1.7 to 1.9. I am very new to magento, SSH and mysql. I was just wondering what is the easiest way to upgrade with breaking my website.
Thank you

Upgrade Roadmap for CE 1.9.0.1 from 1.7
take a backup of current database and current 1.7 code.
download latest magento from the http://www.magentocommerce.com/download
remove all folders and files from your 1.7 code (but you should have backup somewhere) and place all folders and files from the 1.9.
now from your 1.7 merge your following folders into the 1.9
Community app/code/community
Local app/code/local
Media
your theme or package (app/design/frontend/default/<your theme> or app/design/frontend/<your package>)
custom folders from Skin (both for adminhtml and frontend).
copy your custom xml files from app/etc/modules/ to current app/etc/modules/
any custom admin theme folder from adminhtml/default/yourtheme.
copy your custom folders from adminhtml/default/default/ (1.7) to adminhtml/default/default/ (1.9).
custom js files if any from app/js/.
now go to app/etc/local.xml.Edit database details there. put your database username and password and database name.
now check the site. it's done.

Current Version Magento CE 1.7.0.2
Admin panel -> System -> Magento Connect -> Magento Connect Manager
Check for Upgrades
Mage_All_Latest -> select Upgrade to 1.9.0.1
You are done!
You should be able to upgrade directly.
As always, third-party extensions and local customizations need to be taken into account, make a proper backup, etc.

The other answer is dangerous and should be taken with care make sure you create a dev server the following article explains
http://www.magentocommerce.com/wiki/groups/227/moving_magento_to_another_server

Upgrade can be done by following these steps(if there are lot of custom modules and you want to ensure your code does not break)
1.Download the latest stable version of your Magento instance.
2.From your older copy, starting copying your custom modules from
app/etc/local.xml
app/etc/modules/
app/community/
app/local/
app/design/frontend/{{package}}/{{theme}}, any custom template files
in default/default/ theme or base/default/ theme needs to be copied.
adminhtml/default/{{custom theme}}
adminhtml/default/default/
skin/frontend/{[package}}/{{theme}}/{{css|js|images}}
same for adminhtml if added any
copy custom files from
js/
3.Make changes to your local.xml and connect it to your older magento database.
Once you run Magento'instance, any core set up updates will be made using the setup files in your core extensions.
PS:- This method runs when you have followed all standards possible i.e no core modifications, correct class rewrites, no changes in index.php,Mage.php etc
Also, if some of the third party extensions if give error, need to update them.
Hope it helps! And if you do try out..let me know how it goes!

Magento 1.x upgrade instruction using SSH or Command line:
1) Go to your Magento root directory
cd /path/to/your/magento/folder
2) Enable Maintenance mode for your Magento site
For this, you have to create an empty file named maintenance.flag in your Magento root directory.
touch maintenance.flag
3) Clear Cache & Sessions
rm -rf var/cache/* var/session/*
4) Check Compilation & Disable it if Enabled
Check Compiler Status
php -f shell/compiler.php -- state
If the Compiler Status is Disabled then you can skip this step and move on to the next step.
If the Compiler Status is Enabled then you have to disable it with the following command:
php -f shell/compiler.php -- disable
5) Give write permission to all Magento files and folders
chmod -R 777 .
6) Give 550 permission mage file which is a shell script file. With 550 permission, we are just making the file non-writable + readable & executable by user and group only.
chmod 550 ./mage
7) Change config settings to stable
./mage config-set preferred_state stable
8) Upgrade Magento
You can list all the installed packages with the following command:
./mage list-installed
You can list all the upgradable packages with the following command:
./mage list-upgrades
The following command will upgrade all the packages:
./mage upgrade-all --force
It will take some time to complete the upgrade.
9) After completing the upgrade, we should reindex all data.
php shell/indexer.php reindexall
10) Then, clear cache and session again.
rm -rf var/cache/* var/session/*
11) Enable Compilation only if it was Enabled before upgrade
Check step 4) above.
If Compilation was not enabled in step 4) then you can skip this step and go to next step.
If Compilation was enabled for your website and you had disabled it at step 4) then you have to Enable it with the following command:
php -f shell/compiler.php -- enable
12) Before the upgrade, we have changed the permission of all files and folders to 777. You should also give proper permission to all files and folders of your Magento site.
Convert files permission to 644 and folders permission to 755
find . -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \;
Give read-write full permission, i.e. 777 to var and media folders.
chmod -R 777 var media
Give 550 permission to mage shell script file
chmod 550 ./mage
13) Check the versions of the installed modules. The modules should show the latest version as they are already upgraded now.
./mage list-installed
14) List the upgradable modules (modules that need an upgrade). This should result in a message saying No upgrades available because all modules have been already upgraded to the latest version.
./mage list-upgrades
15) Disable Maintenance mode to make the site Live.
rm -f maintenance.flag
This will delete the file maintenance.flag and then the site will be live again.
You can now login to Magento admin and see the Magento version displayed in the footer section. It should show the latest version number.
Source: Magento 1.x – Update / Upgrade to Latest Version via both Browser & Command Line

Related

How to upgrade Magento from 1.7 to 1.9

I need to upgrade my magento store form 1.7 to 1.9. I am very new to magento, I was just wondering what is the easiest way to upgrade without breaking my website.
Thank you
Upgrade Roadmap for CE 1.9.0.1 from 1.7
take a backup of current database and current 1.7 code.
download latest magento from the http://www.magentocommerce.com/download
remove all folders and files from your 1.7 code (but you should have backup somewhere) and place all folders and files from the 1.9.
now from your 1.7 merge your following folders into the 1.9
• Community app/code/community
• Local app/code/local
• Media
• your theme or package (app/design/frontend/default/<your theme> or app/design/frontend/<your package>)
• custom folders from Skin (both for adminhtml and frontend).
• copy your custom xml files from app/etc/modules/ to current app/etc/modules/
• any custom admin theme folder from adminhtml/default/yourtheme.
• copy your custom folders from adminhtml/default/default/ (1.7) to adminhtml/default/default/ (1.9).
• custom js files if any from app/js/.
now go to app/etc/local.xml.Edit database details there. put your database username and password and database name.
now check the site. it's done.
Upgrade directly:
Admin panel -> System -> Magento Connect -> Magento Connect Manager
Check for Upgrades
Mage_All_Latest -> select Upgrade to 1.9
Uupgrade via ssh :
Commands :
1: ./mage list-upgrades
2: ./mage config-set preferred_state stable
3: ./mage upgrade-all --force (if not working thenuse 4)
4: ./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force
5: php -f ./index.php
For more info, check the below link:
https://astrio.net/blog/magento-upgrade-guide/

Akeeba Backup component copy failed error joomla 2.5

I am not able to install akeeba backup 3.9.2 version component in joomla 2.5.11 .I have tried it by increasing the upload_max_filesize and post_max_size.And also given directory permissions to the the folders needed. But it still its giving errors "Copy failed -1".Please let me know some solutions to install it.
Some things to try/check:
is there sufficient free space in your web hosting account?
check the permissions on the tmp folder
check the upload_max_filesize in Site -> System Information -> PHP
Information is sufficient for the installation file to be uploaded
try installing a different extension to check if it is issue with the
Akeeba install specifically rather than a permission or file size
issue
try updating to the latest version of Joomla
try installing the latest version of Akeeba Backup (3.10.0 as I write
this)
check the PHP file handler at Site -> System Information ->
System Information -> WebServer to PHP Interface - there could
be a file ownership issue if this is set to the default apache file handler
rather than suPHP or FCGI etc and you may need to escalate this issue to your hosting provider
You should probably update Joomla to the latest version in any case to keep it secure.

Joomla 1.7.5 to 2.5 Migration - When not showing any updates about 2.5

I tried to migrate my Joomla 1.7 website to Joomla 2.5.14 stable version. But when I look for updates in admin end, it shows there is not updates found for new release. I couldn't find any upgrade patch, so I simply follow the below steps.
Take backup of Joomla 1.7 website including DB for safety.
Download new Joomla 2.5.14 and extract the files.
Copy all the files from Joomla 2.5.14.
Paste all the files to Joomla 1.7 (it must overwrite with existing files, do not delete all of the files from Joomla 1.7).
No need to modify the database.
And finally check admin end by login and preview your site.
This is a good start.
After that sometimes I have found that going to extensions -> db -> fix had some work to do.
This will get Joomla up to date (although you will have some leftover files, not a big deal). But it will not install the new features such as Joomla update icon in the control panel.
In order to do that you need to repackage the extensions, remove the files from the installation, and reinstall. It may take a few tries (you need to remove the language files and any off-folder files as well, either from the disk - and putting them in the installation zip - or from the .xml manifest.
The three extensions I found I wanted most were com_joomlaupdate, and the extensionupdate and joomlaupdate plugins. You can download them from this page:
it also contains the list of files which you should delete:
rm -rf administrator/components/com_joomlaupdate
rm -rf plugins/quickicon/extensionupdate
rm -rf plugins/quickicon/joomlaupdate
rm administrator/language/en-GB/en-GB.com_joomlaupdate.ini
rm administrator/language/en-GB/en-GB.com_joomlaupdate.sys.ini
rm administrator/language/en-GB/en-GB.com_joomlaupdate.ini
rm administrator/language/en-GB/en-GB.com_joomlaupdate.sys.ini
rm administrator/language/en-GB/en-GB.plg_quickicon_extensionupdate.ini
rm administrator/language/en-GB/en-GB.plg_quickicon_extensionupdate.sys.ini
rm administrator/language/en-GB/en-GB.plg_quickicon_joomlaupdate.ini
rm administrator/language/en-GB/en-GB.plg_quickicon_joomlaupdate.sys.ini
I would recommend Admin Tools for updating Joomla: https://www.akeebabackup.com/downloads/admin-tools.html

failed upgrade magento 1.5x to 1.6x

i've tried upgrade my magento 1.5x to magento 1.6x in my cpanel, but i always find "failed..failed..and failed". i've tried this way..:
find . -type f -exec chmod 777 {} \;
find . -type d -exec chmod 777 {} \;
rm -rf var/cache/* var/session/*
chmod 550 ./mage
then after that when i tried this..:
./mage mage-setup .
the result is failed, this is the messages..:
Running initial setup...
XCache requires Zend Engine API version 220060519.
The Zend Engine API version 220090626 which is installed, is newer.
Contact mOo at http://xcache.lighttpd.net for a later version of XCache.
Failed loading /usr/lib/kloxophp/ioncube/ioncube_loader_lin_age.so: /usr/lib/kl oxophp/ioncube/ioncube_loader_lin_age.so: cannot open shared object file: No suc h file or directory
Cannot load Zend Extension Manager - it was built with configuration 1.2.0, wher eas running engine is API220090626,NTS
XCache requires Zend Engine API version 220060519.
The Zend Engine API version 220090626 which is installed, is newer.
Contact mOo at http://xcache.lighttpd.net for a later version of XCache.
Failed loading /usr/lib/kloxophp/ioncube/ioncube_loader_lin_age.so: /usr/lib/kl oxophp/ioncube/ioncube_loader_lin_age.so: cannot open shared object file: No suc h file or directory
Cannot load Zend Extension Manager - it was built with configuration 1.2.0, wher eas running engine is API220090626,NTS
XCache requires Zend Engine API version 220060519.
The Zend Engine API version 220090626 which is installed, is newer.
Contact mOo at http://xcache.lighttpd.net for a later version of XCache.
Failed loading /usr/lib/kloxophp/ioncube/ioncube_loader_lin_age.so: /usr/lib/kloxophp/ioncube/ioncube_loader_lin_age.so: cannot open shared object file: No such file or directory
Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220090626,NTS
what is it? can you help me guys to fix my problem? I really need your helps guys! thank's!
That's nothing to do with Magento, that's a server setup issue. Have you rebuilt apache/php using EasyApache by any chance?
It looks like you have incompatible version of PHP and XCache.
You should ask your host for assistance, it's not a Magento issue at all.
If your website works fine and you have got problem in the command line, it may be wrong php configuration. Try to update php.ini or edit the ./mage - enter valid php binary path.

What is the best way to upgrade Magento

So I need to upgrade Magento from 1.1~ to 1.6~
The main reason I need to do this is because all the order fullfillment extensions require a newer version. http://www.xtento.com/magento-extensions/magento-order-export-module.html
What is the best/most effective way to do this? Any recommended extensions that would work well?
I'm a complete n00b at Magento so the more detailed the help the better!
There are two main approaches for upgrading Magento:
Incremental upgrade
Implement again Magento and import data from older version
Incremental upgrade
You can upgrade from 1.1 to 1.2, then to 1.3 and so on... One thing to keep in mind is that from Magento 1.1 alot of things changed.
Deactivate all your extensions installed on Magento 1.1 (most likely will not be compatibile with later versions).
This is a long process and requires lot of time and attention because all kinds of errors will be triggered (data inconsistency, table alters that will not work and so on).
Migration from Magento 1.4.1.x to Magento 1.6 and then to Magento Professional took us couple of weeks. In this case steps were: Magento 1.4.1 - 1.4.2 - 1.6.
Implement again Magento and import data from older version
You can do a fresh Magento 1.6 implementation, implement again the theme and import data (products, customers, orders - you will need an extension for this).
More info:
Upgrading Magento - Magento wiki
Upgrade from 1.5 to 1.6 like the following ( SSH Based ):
First, take database backup then whole magento directory for restore process.
Go to magento directory.
chmod 550 .mage/ // Set permission to mage tool
rm -rf /var/cache/* var/session/*
./mage mage-setup .
./mage config-set preferred_state stable
./mage list-installed
./mage list-upgrades
./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force
php shell/indexer.php reindexall
find . -type f exec chmod 644 {} \;
find . -type d exec chmod 755 {} \;

Resources