Adding newer pdo_sqlsrv drivers to php stack on Azure Web app?

Tim D 1 Reputation point
2022-01-09T18:06:04.737+00:00

The version of pdo_sqlsrv available by default on the current Php stack for Web app (7.4) is quite out of date.

I have tried downloading a newer version and adding it via extension= in my ini but when I look at php info it's still showing the old default version of the driver.

I'm not expert with php. Should my approach work? Should my newer version override the old version already available or do I need to do something additional to tell php which version to use?

Thanks.
Tim

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,055 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andriy Bilous 11,536 Reputation points MVP
    2022-01-14T10:00:29.657+00:00

    Hello @Tim D

    Please try the following to enable the pdo_sqlsrv extension for PHP 7.X on Azure Web Apps:


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.