Tag: hostgator

Drupal 7: Fatal error: Allowed memory size of 52428800 bytes exhausted

Working with Drupal 7, you may get an error like the one below. (The actual number may be different.)

Fatal error: Allowed memory size of 52428800 bytes exhausted

If you don’t have one already, add a text file called “php.ini” to the root directory of the Drupal 7 site, and add a line like:

memory_limit = 96M

or

memory_limit = 128M

Continue reading

Drupal multisite – symlinking, a key step

Setting up a multisite system is very easy with Drupal and is well documented both in the settings.php file and in the multi-site section of the handbook on Drupal.org. However there is one step that is usually left out of the instructions or mentioned only in passing, and it requires SSH access. You must create a symlink from the folders your multi-sites will be accessed at to the actual folder that the Drupal core files reside in.

So if you will have several sites like:

http://yoursite.com/site1
(the core files are located here)
and you want a second and third site to be accessed at

http://yoursite.com/site2
and
http://yoursite.com/site3

then you must create symlinks from site2 and site3 that point to site1.

Continue reading