Blog Post

Apps on Azure Blog
1 MIN READ

How to install intl extension on WordPress on Azure App Service

Arjun_Baliga's avatar
Arjun_Baliga
Icon for Microsoft rankMicrosoft
May 13, 2024

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.

 

 

Published May 13, 2024
Version 1.0

1 Comment

  • David_Hernando's avatar
    David_Hernando
    Copper Contributor

    Hello

     

    The command supervisorctl restart php-fpm

    returns an error

    Error: .ini file does not include supervisorctl section
    For help, use /usr/bin/supervisorctl -h

    Any idea ?