I have installed aditional PHP versions to the Debian 9 server, but now I cant enable some extensions for these PHP versions. Only with default php version (7.0) these extensions will works. I want to enable the intl extension for PHP 7.2 & etc.. I have tired simple apt install - not works. Also cd /usr/local/src/php7.2-build cd php-7.2.2/ ./configure --prefix=/opt/php-7.2 --enable-intl not helped me...
Did you also install the newly compiled version? In my opinion, compiling PHP myself is a lot of work and needs to be done weekly, since bug fixes appear so often. And I do not trust my skill in compiling PHP correctly. Instead I trust Ondrej Sury, he is member of Debian PHP team and makes ready to install PHP packages. https://www.howtoforge.com/tutorial...fig-3-from-debian-packages-on-debian-8-and-9/
I have installed aditional PHP versions https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/ in my multiserver setup. ALL php versions works fine. But I can not find how to enable the intl extension for PHP 7.2, 7.1....
If you have compiled it, you have to enable it in your config. Depending on your setup, you should have a "extension=intl.so" line somewhere in your phprc file. If I look at that guide, it should be around here: /opt/php-7.1/etc/ If you do not know, how to activate PHP modules, then the self-compiled versions are the wrong solution for you. I strongly recommend using the sury.org sources for additional PHP versions instead of self compiled versions!
@teini86 Yes, u are right,... But It none. It not helps. nano /opt/php-7.2/lib/php.ini extension=intl.so
Have you done ./configure with the --enable stuff? make make install checked there were no errors in the above commands preventing compilation? configured the intl in the right PHP config file? systemctl enable <php-version.service> systemctl daemon-reload systemctl restart <php-version.service> How do you verify intl is working / not working? I notice that my setup where I used the additional PHP version packages from sury.org has php-intl installed only for 5.6 and 7.0, not for 7.1, 7.2 and 7.3. I do not remember why I did not install php-intl for all versions, but there have been no problems, and hosts have non-trivial Wordpress and Joomla sites running.