Had some issues with the ‘fatal error’ and ‘Allowed memory size of 33554432 bytes exhausted’ on wordpress when I’ve been installing various plugins. I tried upping the memory limit in the config.php file but it didn’t make a difference.

My hosting provider gave me some tips so I added a php.ini file to my Root directory. It worked!

This is what i added.

This goes in the top line of your .htaccess file (changing ‘yourusername’ to yours)..

suPHP_ConfigPath /home/yourusername/public_html

and then add these lines to a php.ini file using notepad or something similar (anything after the ; is ignored and can be used as reference text).

memory_limit = 64M ; anything up to 128M
upload_max_filesize = 20M ; this can be increased if required
post_max_size = 20M ; this can be increased if required