Magento Expert Forum - Improve your Magento experience

Results 1 to 2 of 2

Increase PHP memory limit

  1. #1
    Administrator david's Avatar
    Join Date
    Nov 2012
    Posts
    261
    Thanks
    22
    Thanked 40 Times in 32 Posts

    Default Increase PHP memory limit

    There are many ways to change PHP memory limit. These are very simple ways to do

    1. php.ini

    Locate your php.ini file by run phpinfo() function, I think you must have PHP skill enough to do this .

    Then find out the line like this in php.ini file

    Code:
    memory_limit = 64M
    You can change 64M to whatever you want.

    This way only do when you are owner of server or VPS. Let 's use other way if you are not.

    2. .htaccess

    Put this line in your first line of your .htaccess file

    Code:
    php_value memory_limit 64M
    3. PHP run time

    Maybe you hosting provider will accept you change ini information in run time, in this case you can add php code like this in first line of php bootstrap file

    PHP Code:
    ini_set('memory_limit''64M'); 
    if you use drupal you will edit file

    Code:
    sites/default/settings.php
    If you use wordpress then it is

    Code:
    wp-config.php
    And if you use magento it should be

    Code:
    index.php

    View more threads in the same category:


  2. #2
    Junior Member
    Join Date
    Sep 2018
    Location
    United Kingdom
    Posts
    97
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    To build PHP memory limit setting, alter your PHP.ini document. Just increment the default esteem (model: Maximum measure of memory a content may devour = 128MB) of the PHP memory limit line in php.ini.

Similar Threads

  1. Limit signature for new member until 10 posts
    By david in forum News, Announcements and Rules
    Replies: 33
    Last Post: 21-05-2019, 10:45 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •