Title: Plugin causes fatal Apache 2.4 error
Last modified: March 6, 2020

---

# Plugin causes fatal Apache 2.4 error

 *  [Hanno](https://wordpress.org/support/users/bsoftde/)
 * (@bsoftde)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/plugin-causes-fatal-apache-2-4-error/)
 * Unfortunately, the directives “Order”, “Allow” and “Deny” are no longer available
   on Apache 2.4 servers unless the module mod_access_compat is installed resp. 
   activated manually. In order to have your plugin run on all kinds of Apache servers,
   you will probably have to change the code that is automatically inserted into
   the .htaccess file as follows:
 *     ```
       # Apache 2.2
       <IfModule !mod_authz_core.c>
           Order Deny, Allow
           Deny from all
       </IfModule>
   
       # Apache 2.4
       <IfModule mod_authz_core.c>
           Require all denied
       </IfModule>
       ```
   
 * Also, you will have to provide some additional PHP statements for allowed IPs:`"
   Require ip ".$ip. "\n";`
    as well as for disallowed ones: `"Require not ip ".
   $ip. "\n";`
 * Hope this helps
    – Hanno

The topic ‘Plugin causes fatal Apache 2.4 error’ is closed to new replies.

 * ![](https://ps.w.org/manage-xml-rpc/assets/icon-256x256.png?rev=1429155)
 * [Manage XML-RPC](https://wordpress.org/plugins/manage-xml-rpc/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/manage-xml-rpc/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/manage-xml-rpc/)
 * [Active Topics](https://wordpress.org/support/plugin/manage-xml-rpc/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/manage-xml-rpc/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/manage-xml-rpc/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Hanno](https://wordpress.org/support/users/bsoftde/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/plugin-causes-fatal-apache-2-4-error/)
 * Status: not resolved