@TomDeWaal We have the below blog that should provide you the necessary steps.
https://azureossd.github.io/2019/01/29/azure-app-service-linux-adding-php-extensions/
I am going to share some of the content of the steps here as well:
- Go to your KUDU console https://<sitename>.scm.azurewebsites.net
- Select SSH.
- In your SSH session, run the command highlighted in yellow.
- In the output above, the path for ext_dir is where your extension will be downloaded. Note the path for later use.
- To install an extension, perform the following. I’ll be installing the PHP extension “redis” in this example.
- You’ll notice the path to the newly installed extension (highlighted in green) is also returned after it’s installed and matches the “ext_dir” path returned from the Pear configurations.
- Now that the extension is installed, we’ll need to create an “ext” directory under “/home/site” and copy the extension to that directory so that the extension persists if the container is restarted. Below are the commands to do this.
Let us know if you have any further questions on this topic. Otherwise, please accept this as the answer if you found it helpful.