cancel
Showing results for 
Search instead for 
Did you mean: 
Go to solution
HenrysCat
Skilled

Increase php memory_limit

I need to increase the php memory limit on my hosting, it’s currently at 64M, so I go to Cpanel > Select PHP version > Switch To PHP Options and under memory_limit I change this to 256M and save.
Next I go to Cpanel > PHP Processes > Kill Processes
When I go to Cpanel > PHP it still shows memory_limit as 64M?

 

Any ideas?

 

Thanks

4 REPLIES
Moderator
Moderator

Re: Increase php memory_limit

Hi, @HenrysCat. To update your memory limit on our cPanel Hosting plans, you'll want to upload or create a .user.ini file in the /public_html directory. In that file, you'd enter the following code: 

memory_limit = XM

You would substitute the amount of memory you want in megabytes for the X in the statement above.  For example, if you wanted 500 MB, then you'd have '500M' after the equal sign. 

Once you do that, the limit should change. 

 

JesseW - GoDaddy | Community Moderator
24/7 support available at x.co/247support
manojkumarcdo
Journeyperson
Solution

Re: Increase php memory_limit

Hi, Follow the tutorial below.

 

I have created a video based on PHP Memory Limit, Executive Time, Post Max, Upload Max FileSize.

I have attached a video File below. Easy to understand. Just follow the tutorials below and increase your default PHP Limit.

 

https://youtu.be/tdUlIkZcOe0

 

 Thank You.

charfon
Novice

Re: Increase php memory_limit

I'm trying to install modules from magento 2.2 and need 756m to work. How can I proceed?