When deploying an Azure App Service application with the PHP 8.0 Runtime Stack, the Oryx deployment fails with the following error:
Command: oryx build /home/site/repository -o /home/site/wwwroot --platform php --platform-version 8.0 -i /tmp/8d9735c9a363a44 --log-file /tmp/build-debug.log
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues
Oryx Version: 0.2.20210618.2, Commit: d70100fba618b33e529c149b7d2d5f2c981ebbb1, ReleaseTagName: 20210618.2
Build Operation ID: |c+0WGRYVibY=.76dc45ff_
Repository Commit : 3c381334fde76a3bd6edbefbf94e5cd4225e3358
Detecting platforms...
Detected following platforms:
nodejs: 10.22.0
php: 8.0.3
Using intermediate directory '/tmp/8d9735c9a363a44'.
Copying files to the intermediate directory...
Done in 3 sec(s).
Source directory : /tmp/8d9735c9a363a44
Destination directory: /home/site/wwwroot
PHP executable: /tmp/oryx/platforms/php/8.0.3/bin/php
Composer archive: /tmp/oryx/platforms/php-composer/2.0.8/composer.phar
php: error while loading shared libraries: libonig.so.4: cannot open shared object file: No such file or directory
Running 'composer install --ignore-platform-reqs --no-interaction'...
php: error while loading shared libraries: libonig.so.4: cannot open shared object file: No such file or directory\n/opt/Kudu/Scripts/starter.sh oryx build /home/site/repository -o /home/site/wwwroot --platform php --platform-version 8.0 -i /tmp/8d9735c9a363a44 --log-file /tmp/build-debug.log
I've already opened an issue at the corresponding GitHub project. Has anyone an idea if this can be fixed on our side?