How to install intl extension on WordPress on Azure App Service

This post has been republished via RSS; it originally appeared at: Microsoft Tech Community - Latest Blogs - .

1.Run the following code in the App Service SSH -

apk add icu-dev && \

   docker-php-ext-configure intl && \

   docker-php-ext-install intl && \

   docker-php-ext-enable intl

2. Now copy the & docker-php-ext-intl.ini file to persistent storage located under /home -

mkdir /home/intl-ext

cp /usr/local/etc/php/conf.d/docker-php-ext-intl.ini /home/intl-ext/docker-php-ext-intl.ini

cp /usr/local/lib/php/extensions/no-debug-non-zts-20220829/ /home/intl-ext/

3.Insert the following code into the "/home/dev/" file -

apk add icu-dev

cp /home/intl-ext/docker-php-ext-intl.ini /usr/local/etc/php/conf.d/docker-php-ext-intl.ini

cp /home/intl-ext/ /usr/local/lib/php/extensions/no-debug-non-zts-20220829/

supervisorctl restart php-fpm

4. After completing the previous steps, restart your App Service. Once restarted, navigate to phpinfo.php and verify that the intl extension is successfully installed.




Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.