Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-57143

SQL Server drivers (sqlsrv) no longer Windows only

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Prepare

      1. Install the SQL Server drivers for PHP as per the instructions on GitHub. Hold off on the unixODBC installation for now – install only the PHP extensions.
      2. Install SQL Server and configure as per the Moodle documentation.
      3. Set config.php options appropriately.

      Ensure the configuration warning is printed out when installation is incomplete

      Browse to Moodle and verify that the following message is visible:

      > Microsoft Drivers for SQL Server for PHP are not installed or not configured properly.

      Ensure Moodle can connect post-installation

      1. Install unixODBC as per the instructions on GitHub.
      2. Verify that Moodle functions as usual.
      Show
      Prepare Install the SQL Server drivers for PHP as per the instructions on GitHub . Hold off on the unixODBC installation for now – install only the PHP extensions. Install SQL Server and configure as per the Moodle documentation . Set config.php options appropriately. Ensure the configuration warning is printed out when installation is incomplete Browse to Moodle and verify that the following message is visible: > Microsoft Drivers for SQL Server for PHP are not installed or not configured properly. Ensure Moodle can connect post-installation Install unixODBC as per the instructions on GitHub . Verify that Moodle functions as usual.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull Master Branch:
      MDL-57143-master

      Description

      When attempting to use the SQL Server drivers for Linux, the following error is raised during early initialisation:

      Microsoft Drivers for SQL Server for PHP are available only for Windows OS.
      

      Moodle should not attempt detection of the operating system, and should not prevent users from configuring the driver on their platforms.

        Attachments

          Activity

            People

            Assignee:
            lukecarrier Luke Carrier
            Reporter:
            lukecarrier Luke Carrier
            Peer reviewer:
            Dan Poltawski
            Integrator:
            David Monllaó
            Tester:
            Rajesh Taneja
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/May/17