Title: Admin &#8211; HTTP 500
Last modified: February 28, 2017

---

# Admin – HTTP 500

 *  Resolved [Keith Davis](https://wordpress.org/support/users/laurin1/)
 * (@laurin1)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/admin-http-500/)
 * I just enabled LiteSpeed plugin and I can’t access admin pages! I can’t figure
   out how to disable this either. I’ve removed the .htaccess changes.
 * The [http://www.aadallas.org](http://www.aadallas.org) page isn’t working
 * [http://www.aadallas.org](http://www.aadallas.org) is currently unable to handle
   this request.
    HTTP ERROR 500

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

 *  Thread Starter [Keith Davis](https://wordpress.org/support/users/laurin1/)
 * (@laurin1)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/admin-http-500/#post-8856961)
 * Ok, I tried the “rename the plugins directory method” and now I’m getting 500
   for all pages, even when I renamed the plugins directory back!
 *  Plugin Author [LiteSpeed Technologies](https://wordpress.org/support/users/litespeedtech/)
 * (@litespeedtech)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/admin-http-500/#post-8857020)
 * Hi [@laurin1](https://wordpress.org/support/users/laurin1/)
 * If you are able to access the file system, are there any error_log files in the
   admin directory?
 * Thanks,
    Kevin
 *  Thread Starter [Keith Davis](https://wordpress.org/support/users/laurin1/)
 * (@laurin1)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/admin-http-500/#post-8857044)
 * Thank you
    Thank you Thank you Thank you Thank you Thank you Thank you Thank 
   you Thank you Thank you
 * My wp-config.php file was all jacked up (had serious syntax errors). How could
   a plugin do that???
 *  Plugin Author [LiteSpeed Technologies](https://wordpress.org/support/users/litespeedtech/)
 * (@litespeedtech)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/admin-http-500/#post-8857085)
 * Glad to hear that you were able to resolve it. It’s possible that there were 
   some writes to the file that may have re-ordered it?
 * What did you see that was changed?
 * Our plugin does the following:
    1. If the WP_CACHE define is already set, do 
   not change anything. 2. If the wp-config file is not writable, return an error.
   3. If there is a define WP_CACHE false, set it to true. 4. If (3) does not exist,
   Look for table_prefix and add a define before that. 5. If (4) does not exist,
   try to add to the start of the file after <?php 6. if (5) fails, return error
 * Do you know what case you had? So we could see if something happened because 
   of the cache plugin.
 *  Thread Starter [Keith Davis](https://wordpress.org/support/users/laurin1/)
 * (@laurin1)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/admin-http-500/#post-8857115)
 * Here is what was broken, this is lines 1-4 of wp-config.php:
 *     ```
       <?php
   
       global define('WP_CACHE', true);
       $table_prefix;
       ```
   
 * For some reason, it stuck “define(‘WP_CACHE’, true);” between global and $table_prefix.
   I added the global $table_prefix (because PHPStorm throws a warning if I don’t
   have that and it’s just a good reminder).
 *  Plugin Author [LiteSpeed Technologies](https://wordpress.org/support/users/litespeedtech/)
 * (@litespeedtech)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/admin-http-500/#post-8857127)
 * Thanks for that!
 * That explains everything actually. We specifically add it before $table_prefix,
   and did not search for the beginning of the line. We’ll work on a fix for this
   situation, so it doesn’t happen again.
 * Thanks again!
    Kevin

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

The topic ‘Admin – HTTP 500’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [LiteSpeed Technologies](https://wordpress.org/support/users/litespeedtech/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/admin-http-500/#post-8857127)
 * Status: resolved