Title: Allowed memory size error?
Last modified: August 19, 2016

---

# Allowed memory size error?

 *  [timc-1](https://wordpress.org/support/users/timc-1/)
 * (@timc-1)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/allowed-memory-size-error/)
 * I’m installing wordpress 2.7. I have entered my database information into wp-
   config.php and it is correct. When I go to /wp-admin/install.php I get this error:
 * > Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate
   > 30720 bytes) in /home/timch/public_html/wp-admin/includes/template.php on line
   > 3186
 * and line 3186 of template.php says:
    `array_shift($allowed_actions);`
 * Any idea what has gone wrong?
 * Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/allowed-memory-size-error/#post-930236)
 * im sure your answer is found in the countless other threads that address this
   and are searchable:
 * [http://wordpress.org/search/Fatal+error%3A+Allowed+memory+size+of?forums=1](http://wordpress.org/search/Fatal+error%3A+Allowed+memory+size+of?forums=1)
 *  Thread Starter [timc-1](https://wordpress.org/support/users/timc-1/)
 * (@timc-1)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/allowed-memory-size-error/#post-930246)
 * I don’t seem to have access to php.ini and when I edit .htaccess by adding `php_value
   memory_limit 32M` it results in any page returning with an Internal Server Error.
   I guess I need to contact my host?
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/allowed-memory-size-error/#post-930272)
 * Methods for increasing the amount of memory a PHP script may consume
 * 1. If you have access to your PHP.ini file, change the line in PHP.ini
    If your
   line shows 16M try 32M: `memory_limit = 32M ; Maximum amount of memory a script
   may consume (32MB)`
 * 2. If you don’t have access to PHP.ini try adding this to an .htaccess file:
   `
   php_value memory_limit 32M`
 * 3. Talk to your host.
 *  [Samuel Jesse](https://wordpress.org/support/users/samueljesse/)
 * (@samueljesse)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/allowed-memory-size-error/#post-930565)
 * What effect does putting this code in the php do? And where would I want to put
   it? I understand this changes php.ini when you can’t/don’t have access to it?
 * ini_set(‘memory_limit’,’24M’)
 *  [bernardborealis](https://wordpress.org/support/users/bernardborealis/)
 * (@bernardborealis)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/allowed-memory-size-error/#post-930567)
 * [http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP](http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP)
 *  [emcinderella](https://wordpress.org/support/users/emcinderella/)
 * (@emcinderella)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/allowed-memory-size-error/#post-930586)
 * I am having more-or-less the same issue. The last time I talked to my host about
   this they were sort of helpful. HOWEVER, can somebody please verify with me once
   and for all where the .htaccess file and php.ini file should reside?? Meaning,
   if for example my wp installation resides at public_html/blog on my host. I am
   so damn frustrated, I have put the files everywhere as my host says that they
   allow my to edit the php.ini. But still, I can’t even get a fresh installation
   of wp going, so I know it is not a plugin issue.
 *  [bernardborealis](https://wordpress.org/support/users/bernardborealis/)
 * (@bernardborealis)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/allowed-memory-size-error/#post-930598)
 * You may need a php.ini file in the public_html directory, you will need one in
   the blog directory, and you will also need one in every other directory that 
   needs the increased memory setting. The .htaccess file should be in your public_html,
   but may be in your blog directory. It is a hidden file so you won’t see it unless
   you choose to view hidden files.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Allowed memory size error?’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 7 replies
 * 6 participants
 * Last reply from: [bernardborealis](https://wordpress.org/support/users/bernardborealis/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/allowed-memory-size-error/#post-930598)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
