How to Fix PHP Memory limit errors on VPS ?

How to Fix PHP Memory limit errors on VPS ?

If you are trying to fix PHP Memory limit error on VPS then i would like to recommend you to follow the below process. You might receive error like" PHP Fatal error: Allowed memory size of XXXXXX bytes exhausted <...>" OR " Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home/xxx/public_html/wp-includes/plugin.php on line xxx. This is the error because of small size PHP memory assigned on the server or your VPS server. (more…)