JU5TY

Member
Nov 11, 2011
14
0
51
cPanel Access Level
Root Administrator
I have a website with a ‘Fatal error: Allowed memory size…’, so need to increase the memory limit for that particular website.

I only want to increase it on that website, so don’t want to alter the root php.ini file.

I have tried setting the limit in the htaccess file and a php.ini file within the website, but I get an Internal Server Error for both.

Am I doing something obviously wrong?

Is there a way to increase the memory limit from within cPanel for that particular account? As far as I can see it only shows the limit in cPanel (32MB), which isn't editable.

Any help much appricated.
 

JU5TY

Member
Nov 11, 2011
14
0
51
cPanel Access Level
Root Administrator
Hi

Thanks for your reply, that's good to know regarding php/.htaccess and suphp.

I managed to get it working in the end my setting the memory limit at the top of the document:

ini_set("memory_limit","128M");