Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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

  1. Copied PHP binaries as described under \bin\php folder
  2. Modified under \bin\phpphp.ini has been modified with.

    • extension=php_pdo_pgsql.dll
    • extension=php_pgsql.dll
  3. Added *.php* key and value D:\home\site\wwwroot\bin\php\php-cgi.exe under handler mappings

  4. Added PHP extensions key PHP_EXTENSIONS and value D:\home\site\wwwroot\bin\php\ext under app 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?

share|improve this question
    
generally after changes is done server is restarted to adhere to new changes , contact your hosting provider that would help –  NaveenThally Jul 31 at 6:58
    
I have restarted the service. It doesn't help! –  sarat Jul 31 at 8:30
    
Have you restarted APache , which hosting you are using windows or linux ?? –  NaveenThally Jul 31 at 9:40
    
@NaveenThally It's a "website" from Azure. It comes with default PHP runtime and IIS. We don't have much control over it –  sarat Jul 31 at 9:42
    
check out this link buddy nl3.php.net/manual/en/book.pgsql.php it may help –  NaveenThally Jul 31 at 9:54

1 Answer 1

You have mixed the two different ways of bringing another dynamic extension to Azure Websites.

If you upload the php_pdo_pgsql.dll binary to D:\home\site\wwwroot\bin then add PHP_Extensions to the App Settings with the value bin\php_pdo_pgsql.dll it should fix your issues. if you have multiple extensions you want to enable, separate them with commas in the same App Setting value field

Alternatively, you could upload your own runtime, then you have full control over the php.ini which in included in the directory you upload the runtime to as described in using custom php runtime

Do note these are two separate options.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.