Im using acquia drupal 1.2.30
i am trying to migrate my website created on local host to server on 0fees.net
i uploaded all files and database.,
i also renamed default.settings.php to settings.php
then opened /install.php in my browser
during installation it showed an error
"Your PHP memory limit is currently set at 24M. Increasing this to 32M (or more) is recommended to help prevent errors in the installation process and later during operation of the site. Increase the memory limit by editing the memory_limit parameter in the file /etc/php4/apache/php.ini and then restart your web server (or contact your system administrator or hosting provider for assistance)."

please explain me how to fix it ( how to locate and edit that php.ini file)
i am a newbie and this
thanks in advance

Comments

jayakrishnanj’s picture

You can increase the PHP memory limit by two ways,

1. Settings.php
-after all ini_set(); add the following line

ini_set('memory_limit', '32M');

2..htaccess

-Add the following line in the after all the lines in your root .htaccess file

php_value memory_limit 32M

sudheendra’s picture

i tried first method but in vain...
please help me it still shows
"The following installation warning should be carefully reviewed:
Your PHP memory limit is currently set at 24M. Increasing this to 32M (or more) is recommended to help prevent errors in the installation process and later during operation of the site. Increase the memory limit by editing the memory_limit parameter in the file /etc/php4/apache/php.ini and then restart your web server (or contact your system administrator or hosting provider for assistance). "

when i tried second method and tried to browse install.php .. it didnt even direct me to my installation page..!!

manuelBS’s picture

If your host hast allowoverride set to false, your changes will not affect. Install the devel module and check phpinfo() to see if you memory limit has been addapted. If you cannot install the devel module for any reasons, edit index.php and insert

phpinfo(); at one of the first lines, check the output and then remove the line again.

sudheendra’s picture

thanks manuelBS,
phpinfo.php shows memory value 24B
so tell me how to change it
please reply soon

sridharpandu’s picture

Even if you increase the values in .htaccess or php.ini it doesn't change anything untill your shared hosting provider provides you with that much memory. Check with your host and ask the admins to increase the memory available to you. Once this is done the settings in your php.ini and .htaccess will take effect.

My experience is that shared hosting providers don't provide more than 32MB, so I moved to a VPS (Slicehost with 1GB).

Acer Aspire 5745
[i5 430M, 3GB, 320GB]
Ubuntu 12.04 (Precise Pangolin)
Drupal 6.15, 7.x
DigitalOcean, Go Daddy, Rackspace,

seanray’s picture

You should contact your web host to see will they allow you to change the configuraion of php memory usage (Now is 24MB). If they say no, then usually what you configure in above won't take effective. But you one thing you can use for negotiate is that, most of share web hosting will give you 32MB, it looks reasonable for you to ask for the same size of memory from them.