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

SQL Server drivers (sqlsrv) no longer Windows only

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.3
    • 3.3
    • Database SQL/XMLDB
    • MOODLE_31_STABLE
    • MOODLE_33_STABLE
    • MDL-57143-master
    • 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.

    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

            lukecarrier Luke Carrier
            lukecarrier Luke Carrier
            Dan Poltawski Dan Poltawski
            David Monllaó David Monllaó
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              15/May/17