htaccess invalid code ignored
Hello there
php_value and other functions in .htaccess or similar code used in the site gives an error 500 internal server error. (invalid command error)
We provide the apache how to ignore these codes. Keep the codes are still dysfunctional and site not error.
For example, this feature has the LiteSpeed, .htaccess is also used such codes are being ignored.
-
Hello, Could you let us know the specific output to /usr/local/apache/logs/error_log when you see this error code in your browser? Also, please post the output from the following command to let us know which PHP handler is enabled: /usr/local/cpanel/bin/rebuild_phpconf --current
Thank you.0 -
hi, now is 2022 however we have the same problem... here is the result of your command: [root@pepsi ~]# /usr/local/cpanel/bin/rebuild_phpconf --current DEFAULT PHP: ea-php74 ea-php74 SAPI: cgi ea-php81 SAPI: cgi [root@pepsi ~]#
our APACHE LOG is:[Fri Feb 18 16:55:06.143394 2022] [core:alert] [pid 12613] [client MY_IP:36846] /home/USER_cPanel/public_html/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
also we have:[root@pepsi ~]# httpd -V | grep -i mpm Server MPM: prefork [root@pepsi ~]#
how we can fix? thanks0 -
You can only use commands like php_value if PHP Handler is DSO. 0 -
You can only use commands like php_value if PHP Handler is DSO.
thanks, our PHP is fpm-fcgi how we change to DSO ?0 -
I would not recommend to use PHP DSO, unless it's a single-user system. If you go to EasyApache and try to add PHP DSO in PHP Extensions you get warnings about security issues. 0 -
I would not recommend to use PHP DSO, unless it's a single-user system. If you go to EasyApache and try to add PHP DSO in PHP Extensions you get warnings about security issues.
thanks by your time. ... definitively I will need use require() in my project :-)0
Please sign in to leave a comment.
Comments
6 comments