I have deployed a PHP web app connects to a PostgreSQL on Azure Website. Azure Website doesn't support to customize system level extensions to be enabled using .user.ini
given within the wwwroot
folder.
I went ahead with custom PHP installation and did the following
- Copied PHP binaries as described under \bin\php folder
Modified under
\bin\phpphp.ini
has been modified with.extension=php_pdo_pgsql.dll
extension=php_pgsql.dll
Added
*.php*
key and valueD:\home\site\wwwroot\bin\php\php-cgi.exe
under handler mappingsAdded PHP extensions key
PHP_EXTENSIONS
and valueD:\home\site\wwwroot\bin\php\ext
underapp settings
configuration.
But when I look in to PHPInfo(), all the details are taken as configured but the extensions are not loaded.
I followed the guideline mentioned here - Using custom PHP Runtime
How to resolve this?