Title: pierrer's Replies | WordPress.org

---

# pierrer

  [  ](https://wordpress.org/support/users/pierrer/)

 *   [Profile](https://wordpress.org/support/users/pierrer/)
 *   [Topics Started](https://wordpress.org/support/users/pierrer/topics/)
 *   [Replies Created](https://wordpress.org/support/users/pierrer/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/pierrer/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/pierrer/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/pierrer/engagements/)
 *   [Favorites](https://wordpress.org/support/users/pierrer/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] php.ini problem](https://wordpress.org/support/topic/phpini-problem-1/)
 *  [pierrer](https://wordpress.org/support/users/pierrer/)
 * (@pierrer)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/phpini-problem-1/#post-7266389)
 * Are you sure you use mod_php? See [here ](http://stackoverflow.com/questions/16414054/find-out-how-php-is-running-on-server-cgi-or-fastcgi-or-mod-php)
   how to determine.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] php.ini problem](https://wordpress.org/support/topic/phpini-problem-1/)
 *  [pierrer](https://wordpress.org/support/users/pierrer/)
 * (@pierrer)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/phpini-problem-1/#post-7266375)
 * Just add it to the end of the file. Just be careful to not put it in between 
   any # …. # blocks because this is code added by a plugin or WordPress which can
   be changed or removed.
    And make sure you run apache2 with mod_php before adding
   this!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] php.ini problem](https://wordpress.org/support/topic/phpini-problem-1/)
 *  [pierrer](https://wordpress.org/support/users/pierrer/)
 * (@pierrer)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/phpini-problem-1/#post-7266324)
 * I had similar problems running apache2 with mod_php. Using a custom php.ini with
   the SetEnv PHPRC directive in .htaccess didn’t work.
    The wordfence-waf.php file
   was created (after changing the permissions) so I just added:
 *     ```
       php_value auto_prepend_file "/path_to_file/wordfence-waf.php"
       ```
   
 * in my .htaccess and the firewall is loaded.
    Is this solution viable?

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