Magento frontend does not display product image

One of the very common problem I found in magento sharing hosting is product Image display. I spent hours on fixing this problem finally got very easy solution and it worked me perfectly.

I increased just memory_limit variable in php.ini file. In initial it was just 64M (which I did not care) but when I make it 256M(please be careful letter case for “M” because in some hosting it has problem). The problem is solved quickly.

if your hosting don’t have option to change php.ini file then rename php.ini.sample file to php.ini and place in ~/public_html/ path. this might work but I am not sure because it works for my hosting.

Enjoy and please let me know if you have other difficult.

Fatal error: Class ‘Imagick’ not found

In Magento(apache server) when file upload has some problem like Fatal error: Class ‘Imagick’ not found then there is missing one package called ‘Imagick’
to solve this problem we need to install this package in apache server in ubuntu or debian it can be install with following code

 sudo apt-get install php5-imagick 

and then restart your apache with following command

sudo /etc/init.d/apache2 restart

Install PHP cache in Ubuntu

Caching is one of the most powerful features in PHP. Here is the step to install.
First install php5 and other required package with sudo Authentication

sudo apt-get install apache2-threaded-dev php5-dev php-pear make

Then install APC package

sudo pecl install apc

if there is asking some yes/no just write yes and the Last step add installed extension in php configuration like this

sudo vim /etc/php5/conf.d/apc.ini

and then insert following code in opened file “apc.ini”