edit .htaccess to load php extension?

前端 未结 2 1137
甜味超标
甜味超标 2020-12-07 05:53

I follow this post to enable PHP5 XSL extension on apache server: .htaccess instead of php.ini

php_extension xsl.so

After added the line ab

2条回答
  •  攒了一身酷
    2020-12-07 06:42

    Apache accepts PHP settings inside .htaccess files only if PHP is installed as a module and thus loaded as part of it. If PHP is set up as CGI you're out of luck - this won't work.

    If you can't directly edit the php.ini try putting a php.ini in the same folder as the .htaccess (sometimes it just works - if there's suphp or phpsuexec installed).

    Another thing you can try is dl().

提交回复
热议问题