Phone: +65-8585-1750

Address: 30 Holland Close, Singapore

Magento install on OpenVZ

Sun, Jul 12, 2009 mdda OSS Blog Comments

Magento install on OpenVZ

This one is a little embarrassing.

Just trying to install Magento on a new (fresh) container. Running across the following style of error (when executing ./pear install magento-core/Mage_All_Latest-stable) :

Starting to download Lib_ZF_Locale- (1,279,370 bytes)
...done: 1,279,370 bytes
install ok: channel://

Notice: Undefined variable: php_errormsg in Installer.php on line 566
PHP Notice:  Undefined variable: php_errormsg in /home/complex/www/magento/downloader/pearlib/php/PEAR/Installer.php on line 566
ERROR: failed to write ./lib/Zend/Pdf/Element/.tmpObject.php:
install ok: channel://
ERROR: unable to unpack ./downloader/pearlib/download/Mage_Core_Modules-
ERROR: unable to unpack ./downloader/pearlib/download/Mage_Core_Adminhtml-


Turns out that the default Quota for the OpenVZ container I had was extremely small. Magento (or pear) doesn’t complain about disk space explicitly…

In the host /etc/vz/vz.conf, all I had to do was adjust the :

## Disk quota parameters

and then run (in the Magento container) :

cd magento # This is the base directory of the Magento installation
rm -rf downloader/pearlib/cache/* downloader/pearlib/download/*
./pear mage-setup .
./pear install magento-core/Mage_All_Latest-stable


blog comments powered by Disqus