1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to increase memory in php my admin ?

Discussion in 'PHP & Perl' started by nice1, Feb 11, 2011.

  1. nice1

    nice1 Regular Member

    Joined:
    Aug 11, 2009
    Messages:
    308
    Likes Received:
    57
    Occupation:
    Money making
    Location:
    Utopia
    Hi how do you increase the memory upload limit in either easy php and or php my admin ?


    i cant find teh file uploads folder ?


    cheers
     
  2. BlackSmack

    BlackSmack Junior Member

    Joined:
    Jul 13, 2008
    Messages:
    149
    Likes Received:
    47
    Occupation:
    Whale Tail Watcher
    Location:
    Uranus
    Depending on your host you can do this in the php script itself with the following 2 (need both to work)

    ini_set('max_upload_filesize', 32MB);
    ini_set('max_post_size', 32MB);

    That would make max upload size 32MB and post size, both are needed. Depending on you might hang up the server if it's a shared host.
     
  3. xpleet

    xpleet Regular Member

    Joined:
    Jan 18, 2010
    Messages:
    377
    Likes Received:
    327
    Location:
    Morocco
    You have to edit them in php.ini
     
  4. nice1

    nice1 Regular Member

    Joined:
    Aug 11, 2009
    Messages:
    308
    Likes Received:
    57
    Occupation:
    Money making
    Location:
    Utopia

    i know but where is this :0
     
  5. xpleet

    xpleet Regular Member

    Joined:
    Jan 18, 2010
    Messages:
    377
    Likes Received:
    327
    Location:
    Morocco
    In easyphp on Windows you can find it here:

    Code:
    C:\.....\easyphp\apache\php.ini
    C:\.....\easyphp\conf_file\php.ini
    On Linux server : /etc/php?????

    For example in debian :
    Code:
    /etc/php4/apache/php.ini
    
    php4 folder can be php or php5

    You can also find a local one here :

    Code:
    usr/local/lib/[I]php[/I].[I]ini[/I]
    Cheers.
     
  6. Don Carlito

    Don Carlito Regular Member

    Joined:
    Aug 12, 2009
    Messages:
    214
    Likes Received:
    94
    Location:
    NJ
    Increase:
    upload_max_filesize
    memory_limit
    post_max_size

    in etc/php.ini , or your php conf admin panel(WHM, kloxo, ...)

    also use .sql.gz instead of .sql

    and lastly, if its huge DB, you can use BigDump script

    hope it helps :)
     
  7. nice1

    nice1 Regular Member

    Joined:
    Aug 11, 2009
    Messages:
    308
    Likes Received:
    57
    Occupation:
    Money making
    Location:
    Utopia
    thnaks everyone i did find it - you can get to it in configuration