How can i enable php extension with .htaccess file

∥☆過路亽.° 提交于 2019-12-10 15:25:57

问题


I need to enable php_intl extension only in a subdomain of my website, so i use the .htaccess file to do it with this code.

<IfModule mod_php4.c>
    php_extension_dir php_intl.dll
    php_extension php_intl.dll
</IfModule>

But not work. Someone helpe me, please?


回答1:


The directive php_extension_dir should be:

php_extension_dir <path_to__php_extensions>

Where <path_to_php_extensions> is the absolute path to where your PHP extensions are installed. Simply putting the file name here does nothing, since a path value is expected.

If this still does not work, then PHP is set up as CGI and therefore cannot use htaccess to load modules. Take a look here if that is the case.



来源:https://stackoverflow.com/questions/32487387/how-can-i-enable-php-extension-with-htaccess-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!