MSSQL and PDO_MSSQL enabled extensions in php 5.3 result in 500 internal server error

Created:

2016-12-12 03:43:30 UTC

Modified:

2017-08-08 13:44:47 UTC

0

Was this article helpful?


Have more questions?

Submit a request

MSSQL and PDO_MSSQL enabled extensions in php 5.3 result in 500 internal server error

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

When mssql and pdo_mssql extensions are enabled in php 5.3, website shows:

500 internal server error

Cause

mssql and pdo_mssql extensions are disabled starting from PHP 5.3. Instead, there are sqlsrv_53_ts and pdo_sqlsrv_53_ts used in Plesk. They are located in %plesk_dir%\\Additional\\PleskPHP53\\ext and are enabled by default.

Resolution

Adjust website code according to PHP instructions for sqlsrv_53_ts and pdo_sqlsrv_53_ts extensions:

http://php.net/manual/en/book.sqlsrv.php

http://php.net/manual/en/ref.pdo-sqlsrv.php

Have more questions? Submit a request
Please sign in to leave a comment.