PHP 7.3: Invalid command ‘php_value
-
Hi,
My host moved all sites to a new server 10 days ago. Today, all the sites running NinjaFirewall went down with 500 server errors. The error log shows:
/home/XXXX/XXXX/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
All sites use PHP version 7.3 with the suphp PHP handler. All the sites have the following
.htaccess
rule for the firewall:# BEGIN NinjaFirewall php_value auto_prepend_file /home/XXXX/XXXX/wp-content/nfwlog/ninjafirewall.php # END NinjaFirewall
And all sites have the following rule in the
.user.ini
file:; BEGIN NinjaFirewall auto_prepend_file = /home/XXXX/XXXX/wp-content/nfwlog/ninjafirewall.php ; END NinjaFirewall
If I comment out these lines in
.htaccess
, I recover access to the sites, but I cannot log into the WordPress dashboard. One site gives me a 404 error and takes me tohttps://79.153.226.174/$
. Another with brute force protection always on just scrolls between the captcha page, and another with brute force protection always on allows me to access the WordPress dashboard.Could you indicate what the correct
.htaccess
rules should be for one site, and then I will try this accross all sites?The page I need help with: [log in to see the link]
- The topic ‘PHP 7.3: Invalid command ‘php_value’ is closed to new replies.