failed connect php ini
-
Hi,
i select the php.ini radial but it failed to connect,
it return the radial buttons empty again,it is a Litespeed server, right selected by the plugin,
Thanks,
Stathis
-
Hi,
Is this your own server or a shared hosting account?
Did the installer add its directives to the .htaccess as well?
When a Litespeed server is detected, it adds them both to the php.ini and the .htaccess file because some Litespeed installations use Apache-style configuration directives (php_value) rather than PHP INI files.Hi,
it is a shared hosting,
the .htaccess file has the default wordpress,
PHP Version 5.4.29
LiteSpeed V6.7
Loaded Configuration File /usr/local/lib/php.iniwhat do you suggest because my site always been in a brute force attack,
Thanks,
Stathis‘what do you suggest because my site always been in a brute force attack,’
Just want to throw it out there – If your code (WP, plugins, etc) is always up-to-date, there’s also a slight possibility that the shared server might have been compromised. Try asking your hosting provider to move your site to another server π
Hi churva,
that is the role of a security plugin, to protect
I am a bit confused about the content of your .htaccess file: does it have the following NinjaFirewall directives?
# BEGIN NinjaFirewall php_value auto_prepend_file /full/path/to/.../lib/firewall.php # END NinjaFirewallHi Author,
no, did i must insert manualy?
Thanks for the fast reply,
Yes, try to add the above code to your .htaccess.
Replace /full/path/to/…/lib/firewall.php with the full path to the firewall.php script (you can see it in your php.ini).I can’t find the full path in php.ini,
i find the path by ftp but when added in .htaccess return blank page,/public_html/mysite/wp-content/plugins/ninjafirewall/ninjafirewall.php
how to find the right path?
Thanks
same with this path
/public_html/mysite/wp-content/plugins/ninjafirewall/lib/firewall.php
Create a ‘path.php’ PHP script with the following code:
<?php if (file_exists(__DIR__ . '/wp-content/plugins/ninjafirewall/lib/firewall.php') ) { echo __DIR__ . '/wp-content/plugins/ninjafirewall/lib/firewall.php'; } else { echo 'Error: cannot find /wp-content/ folder.'; } ?>Upload it to your /public_html/mysite/ directory, and access it with your browser (your-site.com/path.php). It will show you the full path.
I find the path with the script,
it working properly,
Thanks for your support,
Stathismy install has the code in the php.ini file but it still fails to initialize.
i checked the php.ini and the code is there.
hosting company confirms using php.iniIdeas?
my issue resolved when added the code in .htaccess
# BEGIN NinjaFirewall
php_value auto_prepend_file /full/path/to/…/lib/firewall.php
# END NinjaFirewallstathis: thank you.
clearly that code doesn’t get into the .htaccess for some reason.
does it matter WHERE it goes in the .htaccess file?
The topic ‘failed connect php ini’ is closed to new replies.