Knowledge Base
MilesWeb / Shared Hosting FAQ, Web Hosting FAQ

PHP Fatal error: Out of memory (allocated 20185088)

Approx. read time : 2 min

After installing/upgrading the WordPress the following error might occur:

PHP Fatal error: Out of memory (allocated 20185088) (tried to allocate 12288 bytes) in

/home/username/public_html/wp-content/plugins/wp-affiliateplatform/wp_aff_includes_3rd_party_integration.php

On line 300

This error occurred as your account exceeded the allocated memory, to solve this issue you should increase the memory_limit for this account.

How Can I Increase It By Using SSH ?

Login to the server through SSH and then find the php.ini file on the server with the command mentioned below :

# php -i | grep php.ini

/usr/lib/php.ini

This command helps you to find the location of php.ini file on server. Open this file with your preferred editor.

# vi /usr/lib/php.ini

:/memory_limit

memory_limit=32M

Increased it to 64 or as per your requirement and save the file with : ‘wq’

Restart the httpd service.

#/etc/init.d/httpd restart

How to Increase PHP memory limit in WHM ?

Go to Service Configuration >> PHP Configuration Editor

Change the value from 32M to 64M or 128M on memory_limit row.

Trusted By Thousands of Clients & Big Businesses

We highly appreciate the kind and stellar feedback we receive from our customers. Delivering the best is our goal! MilesWeb is rated Excellent out of 5 based on reviews. Read more reviews.

Excellent
Based on reviews
2 hours ago
Perfect and Valuable Server + ...
I am using MilesWeb Servers, The main thing which I getting are continuous support over everything w...
Gunjan Makwana
4 hours ago
Milesweb is superb Hosting pro...
Milesweb is superb Hosting provider ever, their Support team is amazing!!!...
Abhishek Singh
15 hours ago
Great support in great timing...
We need urgent assistance on changes in a primary domain on our client's Cpanel accounts and reached...
Riyaju Deen
21 hours ago
Best Website Hosting platform ...
I was new on MilesWeb. And needed help on multiple areas from setting up to getting started with cre...
Harshada
1 days ago
Very quick and helpful assista...
Very quick and helpful assistance. Support person listened properly and provided a nice solution....
Narendra
1 days ago
the team is very supportive th...
the team is very supportive though at times effort needs to be made to make understand the problem s...
Suree Sharma
1 days ago
I am using miles web for 3plus...
I am using miles web for 3plus years, very quick and perfect support by the team, they helped me man...
Sri Raghav
2 days ago
The service is good...
The service is good. They are answering with patience and doing the needful as soon as possible....
MR
2 days ago
Perfect and Valuable Server + ...
I am using MilesWeb Servers, The main thing which I getting are continuous support over everything w...
Gunjan Makwana
3 days ago
Very quick and helpful assista...
Very quick and helpful assistance. Support person listened properly and provided a nice solution....
Narendra
4 days ago
positively helped me with find...
positively helped me with finding insecure content on my website causing SSL to not work properly on...
Thaviraj Junglee
4 days ago
Exceptional support, Truly Pra...
I had opted for the basic wordpress hosting plan as I intended to experiment with various plug-ins. ...
Aseem Chandna