Welcome to the myhosting.com Forums.
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.
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
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
could you give it a shot now and let me know if you're still having trouble?
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!!
Also, it doesn't look like Drupal Tweaks has a Drupal 7 version, but thanks!
By OhDonna in forum Troubleshooting
Last Post: 2011-12-12, 06:57 AM
By roger in forum Virtual Server
Last Post: 2011-10-16, 09:58 PM
By Stoddard in forum Virtual Server
Last Post: 2011-09-23, 09:46 AM
Tags for this Thread