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 intl.so & 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/intl.so /home/intl-ext/intl.so

3.Insert the following code into the "/home/dev/startup.sh" 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/intl.so /usr/local/lib/php/extensions/no-debug-non-zts-20220829/intl.so

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.

Arjun_Baliga_0-1715588965788.png

 

 

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.