In addition to checking permissions as noted above, please also note:
The syntax for using pear has changed with 1.5 (it’s not even called pear anymore).
See this thread for more information:
http://www.magentocommerce.com/boards/viewthread/219840/
Finally i figured out the way.
I upgraded to 1.5.0.1 using following set of SSH commands:
wget http://www.magentocommerce.com/downloads/assets/1.5.0.1/magento-1.5.0.1.tar.gz tar -zxvf magento-1.5.0.1.tar.gz cd magento cp -rf * /your-magento-root-dir
Note: Be sure you are running this command being on the root of the magento installation.
Also always backup the files n db using following set of commands:
Additionally:
Everything get working after upgrades. There was no any single db errors.
But got stuck at one issue: Product detail page is not working. Here is the error info:
Fatal error: Call to a member function getSource() on a non-object in app/code/core/Mage/Catalog/Model/Product.php on line 1258
The permission denied error occurs when we do ./mage upgrade-all because mage script is not executable. We can make it executable by the following command:-
chmod 700 mage
If it didn’t work with 700 permission, try giving it 777 permission:-