Results 1 to 3 of 3

Thread: Memory Limit

  1. #1
    Registered Member
    Join Date
    Nov 2011
    Posts
    14
    cPanel/WHM Access Level

    Root Administrator

    Default Memory Limit

    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.

  2. #2
    Registered Member
    Join Date
    Nov 2011
    Posts
    382
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Memory Limit

    Hello JU5TY,

    It seems suphp is enabled on your server. If you add any php directives in .htaccess, your website will throw Internal server error. Remove the changes made in .htaccess and increase the memory limit in php.ini within the website.

  3. #3
    Registered Member
    Join Date
    Nov 2011
    Posts
    14
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Memory Limit

    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");

Similar Threads

  1. memory limit issue
    By hgrg in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 08-31-2011, 11:15 AM
  2. php memory limit
    By herbertjoei in forum New User Questions
    Replies: 13
    Last Post: 07-17-2007, 06:21 AM
  3. Memory Limit (experimental)
    By chris8lunch in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 11-07-2006, 05:53 AM
  4. php memory limit
    By futuron in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 01-02-2005, 11:06 PM
  5. enable-memory-limit in PHP
    By kaesar in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 11-15-2004, 01:18 PM
bargain