AUSTRALIAN SOCIAL MEDIA STATISTICS  |  SOCIAL MEDIA AGENCY  |  SOCIAL MEDIA EVENTS  |  INSTAGRAM NEWS

Bumping up your PHP memory in WordPress

on February 11, 2011 | WordPress | Comments (2)

WordPress has changed the way many of us create sites on the internet. Such an easy to use and customisable content management system (CMS) has turn many web-wannabe’s into WordPress developers.

The possibilities are pretty much endless now.

A problem I have always ran into is bumping up my apache server memory limit from 32MB to 64MB.

1. It’s a good idea to install the Memory Bump Plugin, this will enable you to see how much memory is currently being used by your site/setup – and displays in the footer of your administration panel.

2. You will need to tweak your php.ini file (or create one with notepad and to be placed in the root of your hosting account – public_HTML).

Add the following line of code:

memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)

(you can define the memory limit to your liking/ what your host will allow)

3. Add the following line of code into your htaccess file

<Files .php.ini>
order allow,deny
deny from all
</Files>

4. Also add the following line of code, again into your htaccess file:

suPHP_ConfigPath /home/USERNAME/public_html

Note: Make sure you change the USERNAME to the username of your webhosting account.

5. You may want to increase the permissable max file size you can upload to your hosting account/ server.

Simply drop the following lines of code into your php.ini file:

upload_max_filesize = 32M
post_max_size = 32M

I hope that is some help to you all. Any questions feel free to let me know.


David Cowling : Editor and Founder of SocialMediaNews.com.au. I also run a Social Media Agency where I do consulting work and another blog dedicated to Instagram news. Connect with me: Twitter | LinkedIn | Google + or contact me here. Alternatively, you can send me an email at david@socialmedianews.com.au

  • What is the USERNAME referring to? I've tried the username for our FTP connection, it didn't work, I received an error…

  • Try the folder name which your WordPress install resides inside.











MONTHLY NEWSLETTER SIGN-UP