Skip to main content

htaccess invalid code ignored

Comments

6 comments

  • cPanelMichael
    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
  • 000
    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? thanks
    0
  • quietFinn
    You can only use commands like php_value if PHP Handler is DSO.
    0
  • 000
    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
  • quietFinn
    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
  • 000
    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.