Title: php.ini problem
Last modified: August 31, 2016

---

# php.ini problem

 *  [FunkyLee](https://wordpress.org/support/users/funkycreep/)
 * (@funkycreep)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/phpini-problem-1/)
 * Hi, i’m trying to install the waf but is locked on:
 * >We’ve preselected your server configuration based on our tests, but if you know
   your web server’s configuration, please select it now.
 * >Apache + mod_php (recommended based on our tests)> Continue
 * Alternate method:
    We’ve also included instructions to manually perform the change
   if you are using a web server other than what is listed in the drop-down, or 
   if file permissions prevent this change.
 * You will need to append the following code to your php.ini:
 * auto_prepend_file = ‘/home/username/website.com/wordfence-waf.php’
 * how can i solve it?
 * i’m using a shared hosting with multisite addon domain
 * i’ve try to disable on primary wp site (public_html) but not help me to configure
   the second wp site (website.com), even opposite nothing work.
 * wp 4.4.2 Wordfence6.1.2
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

Viewing 7 replies - 16 through 22 (of 22 total)

[←](https://wordpress.org/support/topic/phpini-problem-1/?output_format=md) [1](https://wordpress.org/support/topic/phpini-problem-1/?output_format=md)
2

 *  [russelyeti](https://wordpress.org/support/users/russelyeti/)
 * (@russelyeti)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/phpini-problem-1/page/2/#post-7266393)
 * Hi,
    in my case phpinfo() displays Server API LiteSpeed V6.9
 * The hosting company says they use Apache/suPHP without supporting .user.ini, 
   neither changes to php variables or custom php.ini.
 * Still wondering if
    simply adding `php_value auto_prepend_file "/path_to_file/
   wordfence-waf.php"` at the end of .htaccess (that works) is a good solution.
 * Maybe the plugin’s developer can add another configuration item in the drop down
   list for this case.
 *  Plugin Author [WFMattR](https://wordpress.org/support/users/wfmattr/)
 * (@wfmattr)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/phpini-problem-1/page/2/#post-7266404)
 * Hi all —
 * Our dev team is working on support for some of the situations above, for the 
   next few maintenance releases. It’s correct that different hosts support different
   files, or have a different configuration, so we’re working on alternate methods
   for these cases.
 * If adding the auto_prepend_file line manually makes the setup message disappear,
   then it is successful — be sure you know how to replace the .htaccess/.user.ini/
   php.ini if you try these steps manually though. If a setting is not compatible
   with your server, adding a line that’s meant for a different server might cause
   the site not to load, until it is removed.
 * The firewall is still effective against many attacks even before the configuration
   steps are done, but these steps help it protect against attacks that a plugin
   can’t normally catch without this. If you don’t try the manual setup, keep an
   eye out for the upcoming maintenance releases. Thanks!
 * -Matt R
 *  [russelyeti](https://wordpress.org/support/users/russelyeti/)
 * (@russelyeti)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/phpini-problem-1/page/2/#post-7266432)
 * Thanks!
 *  [robstead](https://wordpress.org/support/users/robstead/)
 * (@robstead)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/phpini-problem-1/page/2/#post-7266434)
 * Echoing others here I too am having problems. Three WordPress sites with Wordfence
   and one php.ini file (on a Ubuntu 12 server). I’ve tried everything including
   using a single file to include all three references.
 * I ended up just setting it up for one site but then found phpMyAdmin didn’t work
   so I’ve now removed it.
 * Wordfence is great though 🙂
 * Rob
 *  [Mariette](https://wordpress.org/support/users/mariette-jackson/)
 * (@mariette-jackson)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/phpini-problem-1/page/2/#post-7266442)
 * Hi
 * Just to add it to your list, the set-up isn’t working for Fasthosts hosting either.
 * Mariette
 *  [msingle](https://wordpress.org/support/users/msingle/)
 * (@msingle)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/phpini-problem-1/page/2/#post-7266443)
 * Just to let you know adding `php_value auto_prepend_file '/home/path/path/wordfence-
   waf.php'` to the end of .htaccess works, apparently, on Stablehost while the 
   autoconfig (they use Apache+suPHP did not work.
 * Mark
 *  Plugin Author [WFMattR](https://wordpress.org/support/users/wfmattr/)
 * (@wfmattr)
 * [10 years ago](https://wordpress.org/support/topic/phpini-problem-1/page/2/#post-7266461)
 * Hi all,
 * For the Ubuntu 12 server — it depends on how Apache is set up. If you want to
   make a new post, we can try to walk through the options.
 * On sites “Server API: LiteSpeed” in the phpinfo(), look in the site’s .htaccess
   file for “<IfModule mod_php5.c>”, and change mod_php5.c to “lsapi_module”. (This
   will be automated in an upcoming version.)
 * Most other cases should be covered in the next couple of Wordfence updates. Note
   that in the meantime, the new firewall does still run within Wordfence, which
   still provides protection against many types of attacks. Thanks everyone else
   for the input as well!
 * -Matt R

Viewing 7 replies - 16 through 22 (of 22 total)

[←](https://wordpress.org/support/topic/phpini-problem-1/?output_format=md) [1](https://wordpress.org/support/topic/phpini-problem-1/?output_format=md)
2

The topic ‘php.ini problem’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 22 replies
 * 9 participants
 * Last reply from: [WFMattR](https://wordpress.org/support/users/wfmattr/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/phpini-problem-1/page/2/#post-7266461)
 * Status: not resolved