Title: HTTP508 resource limit reached on basic install
Last modified: August 22, 2016

---

# HTTP508 resource limit reached on basic install

 *  Resolved [tmarsh1](https://wordpress.org/support/users/tmarsh1/)
 * (@tmarsh1)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/http508-resource-limit-reached-on-basic-install/)
 * Hi all,
    So I had a basic flat html website (.html files) with no obvious clashes
   with WP files. I installed WP into the root domain and installed Genesis over
   WP. All was working fine (I only had Limit Login Attemps, Simple Sidebars and
   Akismet plugins) until yesterday when got a http508/resource limit reached.
 * Some script was calling index.php and so my shared server entries were maxed 
   and RAM about 50%.
 * I deleted WP and it was fine.
    I re-installed with no Genesis, no good. I deleted
   and server went back to normal. I then re-installed in domain/wp and it’s fine.
 * The install was working fine for 10 days.
 * How can I trouble shoot this?
    Could there be any obvious clashes with pre-existing
   html folders/files? htaccess issue? It seems to be a clash with existing files
   but I can’t think what it would be?
 * Cheers for any guidance!
 * Tim
 * PS happy to share the domain/file lists etc.

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/http508-resource-limit-reached-on-basic-install/#post-5249001)
 * It’s probably an issue with pre-existing files in the root directory. You should
   never have two sites in the same directory. Is there any reasons why you want
   to keep the static HTML site in the same directory as WordPress?
 *  Thread Starter [tmarsh1](https://wordpress.org/support/users/tmarsh1/)
 * (@tmarsh1)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/http508-resource-limit-reached-on-basic-install/#post-5249062)
 * Just to work on both in parallel.
    I’ve moved to another folder, will work on
   it, then move back.
 * However, seems there was a xmlrpc attack in the last 24 hours?
 * TIm
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/http508-resource-limit-reached-on-basic-install/#post-5249071)
 * How big of an attack? Brute force attacks are sadly becoming normal and expected
   everywhere, like comment spam these days.
 * First, add this to your .htaccess file:
 *     ```
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteCond %{REQUEST_METHOD} POST
       RewriteCond %{REQUEST_URI} .(wp-comments-post|wp-login)\.php*
       RewriteCond %{HTTP_REFERER} !.*(example.com|jetpack.wordpress.com).* [OR]
       RewriteCond %{HTTP_USER_AGENT} ^$
       RewriteRule (.*) http://%{REMOTE_ADDR}/$ [R=301,L]
       </ifModule>
       ```
   
 * Replace “example.com” with your domain, and if you aren’t using Jetpack Comments,
   remove “|jetpack.wordpress.com”.
 * This will prevent bots from directly attacking wp-login.php and wp-comments-post.
   php, they will need to go through the forms to login or leave comments.
 * After that, install a plugin like [http://wordpress.org/plugins/bruteprotect/](http://wordpress.org/plugins/bruteprotect/)
   to catch anything else that makes it through.
 *  Thread Starter [tmarsh1](https://wordpress.org/support/users/tmarsh1/)
 * (@tmarsh1)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/http508-resource-limit-reached-on-basic-install/#post-5249094)
 * Thanks Mac, it’s not confirmed yet, could still be the other “site”.
    I’ll be
   installing iThemes security which does what you describe above (and more, obviously)
 * Cheers for the help!
    Tim
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/http508-resource-limit-reached-on-basic-install/#post-5249102)
 * You’re welcome!

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

The topic ‘HTTP508 resource limit reached on basic install’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/http508-resource-limit-reached-on-basic-install/#post-5249102)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
