Have you ever installed a Joomla extension and got nothing but a white screen?
Most likely you hit the memory limit on your server. Memory limits help to keep scripts from running out of control or using up all of your free memory. On the other hand, sometimes you are adding a fancy extension to your site, that simply requires slightly more memory then the default 8mb that Apache gives you. Let’s show you how to fix that.
First, before we get too far, these instructions assume your server is running Apache and you either are on a VPS, or a dedicated server. If you are on a shared host, this might still be possible, but it is dependent upon how your host has your account setup. It may or may not be easy to change. If you are unsure, submit a ticket to your web host. You are paying for their service, there is nothing wrong with asking them.
Now, let’s get rolling. You will want to be able to see what your memory limit is easily. If you are on Joomla, you can login to the backend and go to:
Help>System Info>Php Information
Now that we know what our php memory limit is, let’s get to changing it.
Many guides for changing your memory limit on the internet are written for people with a dedicated server and presume you want your entire server, and all it’s enclosed websites to have a higher memory limit. This is less then ideal, but I will explain who to do it anyhow.
Edit your php.ini file.
Open your php.ini file. YMMV, but it will most likely be located at:
/etc/php.ini
Search for memory_limit and change the value from 8m, to 16mb or 32mb. (don’t go much higher)
Save the file, then restart Apache via ssh using this commend or whatever method you prefer.
/etc/init.d/httpd restart
Check your phpinfo now, and you should be fixed.
Now, if you have more then one website on your server you most likely do not want to raise your memory limit globally. You would want to do it on a per-site basis. To do it this way, you will make a change in your websites public_html directory. This is called a override.
Not all webhosting companies are the same. There are two ways you can do this.
A: .htaccess override.
Open up, (or create) a file in your public_html directory called .htaccess. Inside this file, add the line
php_value memory_limit 16M
Save it, and check your phpinfo again. No restart is required for this.
B: php.ini method
If .htaccess didn’t work, some webhosts will have you put a file called php.ini in your public_html directory instead. Inside that file, insert the line:
memory_limit = 16M
Save it, and check your phpinfo again.
Use one or the other of these methods. Typically one of these methods will make your site 500 error if your webhost does not allow it. Make sure you check your site after every change you make. If your site 500’s, then your host does not permit the method you tried, and revert your changes.
500 error. No bueno!
500 error. No bueno!
There. Now you have raised your php memory limit to be able to handle heavier scripts. You can usually get by with 8mb for Joomla, but with new extensions like WordPress4Joomla and Junkies Morph, you will most likely need 16mb. the minimum requirement for Drupal is 16mb, with 32mb recommended. Just do not go much over 128mb. Typically 32 will be more then enough.
What do you keep your memory limit at on your site? Let us know your thoughts in the comments.

discount generic viagra on March 15, 2010
Valuable thoughts and advices. I read your topic with great interest.
download photoshop 7.0 on March 15, 2010
What’s the speed of dark?
Grayce Saade on May 30, 2010
By your requirements, what you will be needing is a Shared Hosting account.
Free web hosting on June 8, 2010
hi,The Subject of your blog is very Suit to me, I hope more interflow with you this blog.
size genetics on June 10, 2010
Hey, had some issues with it showing up first in safari but after refresh all was good
Caren Tisue on July 25, 2010
I actually made a little movie about this. Would you consider checking it out and maybe leave a comment on it? (I put the link in the “website” field hopefully you can access it. thank you!
Ike Nienhuis on August 11, 2010
You have a great blog here, really helpful. Very well written I will be bookmarking this website and subscribing to your feed so i can always read content of this quality.
Forum Avatars on August 12, 2010
Yikes this definitely takes me back, i’ve been wondering about this subject for a while.
atlantis bahamas all inclusive on August 14, 2010
I agree with your point of view, but I also have their own ideas, such as …
Yon Kissinger on August 16, 2010
Why have you taken out my comment? It is truly valuable unlike the majority of the comments posted here… I’m going to post it again please do not remove it as some people will discover it very helpful. Hey guys i want to let you know about this great system i’ve been using over the last two months called Auto Blog System X. This is probably mainly for the website administrator and everyone else intrested in making money or starting to publish blogs. Personally, i made just over $3000 because of this during my first month. It basically is a system that generates blogs on your behalf 100% on autopilot that gets you lots of visitors to your site from google along with other search engines. Do not take my word for it… Check their website out and i guarantee they’ll hook you in. Its just amazing
Make Money Blogging – Auto Blog System X
Burton Rouhoff on August 19, 2010
I absolutely adore reading your articles, the fashion of writing is extraordinary.This post as usual was helpful, I have had to bookmark your blog and subscribe to your feed in feeburner. Your blog looks great.
online conveyancing on August 31, 2010
Truly happy i found it on yahoo.I was talking with my friends sometime back about this topic and I have to say you cleared out a lot of stuffs