How to install intl extension on WordPress on Azure App Service
Published May 13 2024 01:33 AM 863 Views
Microsoft

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

 

 

Co-Authors
Version history
Last update:
‎May 13 2024 01:33 AM
Updated by: