Title: PHP 7 easyapache 4
Last modified: September 27, 2016

---

# PHP 7 easyapache 4

 *  Resolved [aryanduntley](https://wordpress.org/support/users/dunar21/)
 * (@dunar21)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-easyapache-4/)
 * I just dated apache from easyapache3 to easyapache4 and updated the php version
   to 7. Ninjafirewall is not recognizing itself as being loaded (“Error: the firewall
   is not loaded.”). It can write to the php.ini file. I can write to the .htaccess
   file (and so can ninja firewall). My php.ini shows auto_prepend_file with the
   correct path. Do you have any idea what is going on?

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

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-easyapache-4/#post-8224600)
 * Hi,
 * Did you try to rename the `php.ini` to `.user.ini` as indicated here: [Upgrading to PHP 7 with NinjaFirewall installed](http://blog.nintechnet.com/upgrading-to-php-7-with-ninjafirewall-installed/)
 *  Thread Starter [aryanduntley](https://wordpress.org/support/users/dunar21/)
 * (@dunar21)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-easyapache-4/#post-8224606)
 * I have not, but my php.ini is reading well and working well. Changes made are
   live as soon as I restart apache. Why would I change to user.ini when php.ini
   is working well in all other cases? Would user.ini even work?
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-easyapache-4/#post-8224626)
 * It may only work in the current folder where it is installed, but not in sub-
   folders after your update. `.user.ini` is the per-directory default PHP INI since
   PHP 5.3 and hence is likely the format you should use.
    Another solution could
   imply the use of the `SetEnv PHPRC` directive, as indicated here: [Troubleshoot NinjaFirewall installation problems](http://blog.nintechnet.com/troubleshoot-ninjafirewall-installation-problems/).
   But I don’t recommend to use it as long as you didn’t try the other options, 
   because that directive will short-cut the server main PHP INI.
 *  Thread Starter [aryanduntley](https://wordpress.org/support/users/dunar21/)
 * (@dunar21)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-easyapache-4/#post-8224634)
 * Hm. I’ll play with the user.ini file and let you know. I’ve edited the .htaccess
   file in all the ways suggested by both the plugin and the troubleshooting. Nothing
   has worked so far.
 *  Thread Starter [aryanduntley](https://wordpress.org/support/users/dunar21/)
 * (@dunar21)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-easyapache-4/#post-8224818)
 * Nope. user.ini did not take. Not sure what else to try :/
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-easyapache-4/#post-8226977)
 * Are you running suPHP?
    Did you remove any instructions related to NinjaFirewall
   that were written to the .htaccess? They may conflict with the PHP INI file.
 * You can also run this script to see all info about your configuration: [http://nintechnet.com/share/wp-check.txt](http://nintechnet.com/share/wp-check.txt)
   
   1. Rename this file to “wp-check.php”. 2. Upload it into your WordPress root 
   folder. 3. Go to [http://YOUR](http://YOUR) WEBSITE/wp-check.php 4. Delete it
   afterwards.
 *  Thread Starter [aryanduntley](https://wordpress.org/support/users/dunar21/)
 * (@dunar21)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-easyapache-4/#post-8227065)
 * Ok. I ran the check. It indicated that everything was good but informed me that
   the user.ini file was .usuer.ini. I created a .user.ini file (instead of a user.
   ini file) and put the auto_prepend_file directive in there, and ninjafirewall
   is now working. Thanks for the help guys.
 *  Thread Starter [aryanduntley](https://wordpress.org/support/users/dunar21/)
 * (@dunar21)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-easyapache-4/#post-8227070)
 * I am now reading through the posts and YOU GUYS TOLE ME it was “.user.ini”!!!
   For some reason my mind only read user.ini… I apologize.

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

The topic ‘PHP 7 easyapache 4’ is closed to new replies.

 * ![](https://ps.w.org/ninjafirewall/assets/icon-256x256.png?rev=976137)
 * [NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall](https://wordpress.org/plugins/ninjafirewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninjafirewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninjafirewall/)
 * [Active Topics](https://wordpress.org/support/plugin/ninjafirewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninjafirewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninjafirewall/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [aryanduntley](https://wordpress.org/support/users/dunar21/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-easyapache-4/#post-8227070)
 * Status: resolved