Top VPS Hosting Provider

Welcome to the myhosting.com Forums.
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    suburbancook is offline Junior Member
    Join Date
    May 2011
    Posts
    4

    Question How do you increase PHP Memory Limit?

    The current php memory limit of 41943040 bytes is too small as I am hitting the wall with Drupal. Their recommendation is 64M but they would even prefer 128M. I have tried to set this though the .htaccess file in my root drupal folder to no avail.

    Is there a way I can do this or do I need myhosting tech to increase it for me?

    I did find another .htaccess file in the webspace folder, but it is locked. I couldn't locate a php.ini file to edit the setting either.

  2. #2
    suwunk is offline Super Moderator
    Join Date
    Aug 2010
    Posts
    1,081

    Default

    Hi There,


    Which hosting plan do you have? File Manager and FTP doesn't allow you to access php.ini

    If you use VPS, You can try this.
    SSH into your server
    Log in as root.
    Type the following and hit enter: vi /usr/local/lib/php.ini
    Now that you’re in vi
    Press the “i” key. This puts you in “insert” mode, which basically
    allows you to edit things.
    when you`ve done with modification
    Press escape, then type :wq and hit enter. That says “save the file
    and quit.”

    If You`re in shared hosting, You should ask customer care to increase memory limit.
    You can also try this module Drupal tweaks | drupal.org

    Cheers

  3. #3
    jeremya is offline Administrator
    Join Date
    Jun 2008
    Posts
    270

    Default

    could you give it a shot now and let me know if you're still having trouble?
    -Jeremya

  4. #4
    suburbancook is offline Junior Member
    Join Date
    May 2011
    Posts
    4

    Default

    I'm in shared hosting and don't have access to SSH. I will try sending a ticket. Wow, though, thanks for the quick response!!
    (^_^)

  5. #5
    suburbancook is offline Junior Member
    Join Date
    May 2011
    Posts
    4

    Default

    Also, it doesn't look like Drupal Tweaks has a Drupal 7 version, but thanks!


 

Similar Threads

  1. Word memory error
    By OhDonna in forum Troubleshooting
    Replies: 1
    Last Post: 2011-12-12, 06:57 AM
  2. Replies: 3
    Last Post: 2011-10-16, 09:58 PM
  3. figuring out how much memory needed
    By Stoddard in forum Virtual Server
    Replies: 1
    Last Post: 2011-09-23, 09:46 AM

Tags for this Thread

Posting Permissions

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