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 configurationAll sites use PHP version 7.3 with the suphp PHP handler. All the sites have the following
.htaccessrule for the firewall:# BEGIN NinjaFirewall php_value auto_prepend_file /home/XXXX/XXXX/wp-content/nfwlog/ninjafirewall.php # END NinjaFirewallAnd all sites have the following rule in the
.user.inifile:; BEGIN NinjaFirewall auto_prepend_file = /home/XXXX/XXXX/wp-content/nfwlog/ninjafirewall.php ; END NinjaFirewallIf 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 tohttp://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
.htaccessrules 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.