Blog · · How-To Guides, Laravel

Adding Microsoft SQL Server Support to Laravel Forge

Installing the Microsoft and PHP dependencies needed to connect a Laravel Forge server to SQL Server.

  1. Gather the server's sudo password and IP address from Forge.
  2. Connect over SSH as the forge user.
  3. Import Microsoft's signing key and add its Ubuntu package repository.
  4. Install msodbcsql17, unixodbc-dev, and the sqlsrv and pdo_sqlsrv PHP extensions.
  5. Enable the extensions for PHP 7.4 with phpenmod.
  6. Restart PHP from the Forge dashboard.

Keep reading

Pull up a chair. Tell us what you’re building.

A 30-minute call, no slides. We’ll tell you honestly whether custom software is the right answer.