Saturday, 28 March 2015

Fatal error*: Allowed memory size of 41943040 bytes exhausted

If you see the above error in wordpress and the issue persists even after setting memory limit in wp-settings.php and php.ini..

  try the steps below

copy server php.ini to public_html and change the ownership

create a .htaccess in home dir of user

root@server [/home/username]# vi .htaccess
SuPHP_ConfigPath /home/username/public_html/php.ini

replace username with the correct username.

This is how to set php.ini recursively for all directories. This will only work with suphp handler

No comments:

Post a Comment