Install PHP (Ubuntu) sudo suĪpt-get install php8.0 php8.0-dev php8.0-xml -y -allow-unauthenticated To install PHP 7.4 or 7.3, replace 8.0 with 7.4 or 7.3 in the following commands.
Both drivers have the same dependencies except where noted below. Users comfortable with customizing their configuration can adjust these instructions to be specific to SQLSRV or PDO_SQLSRV. While these instructions contain commands to install both SQLSRV and PDO_SQLSRV drivers, the drivers can be installed and function independently. PHP-FPM is needed if you're using the nginx web server instead of Apache. See the notes at the beginning of each section to install PHP 7.4 or 7.3 instead.Īlso included are instructions for installing the PHP FastCGI Process Manager, PHP-FPM, on Ubuntu. Some supported Linux distros default to PHP 7.1 or earlier, which is not supported for the latest version of the PHP drivers for SQL Server. You may need to run pecl channel-update first. The following instructions install PHP 8.0 by default using pecl install, if the PHP 8.0 packages are available. For an explanation of extension loading and why we do not add the extensions to php.ini, see the section on loading the drivers. These instructions advise installing the drivers using PECL, but you can also download the prebuilt binaries from the Microsoft Drivers for PHP for SQL Server GitHub project page and install them following the instructions in Loading the Microsoft Drivers for PHP for SQL Server.
You have successfully installed PHP 7.3 on Debian 9 / Debian 8.The following instructions assume a clean environment and show how to install PHP 8.0, the Microsoft ODBC driver, the Apache web server, and the Microsoft Drivers for PHP for SQL Server on Ubuntu, Red Hat, Debian, Suse, Alpine, and macOS. To install Apache Module for PHP, run: sudo apt install libapache2-mod-php7.3 sudo apt install php7.3-cli php7.3-fpm php7.3-json php7.3-pdo php7.3-mysql php7.3-zip php7.3-gd php7.3-mbstring php7.3-curl php7.3-xml php7.3-bcmath php7.3-json See example below which install standard PHP extensions. Install PHP 7.3 extensions by using the syntax sudo apt install php7.3. With Zend OPcache v7.3.0-2+ubuntu18.04.1++1, Copyright (c) 1999-2018, by Zend Technologies Step 4: Installing PHP 7.3 Extensions Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies Then install PHP 7.3 on Debian 9 / Debian 8: sudo apt -y install php7.3
First, run the apt update command: $ sudo apt updateĤ packages can be upgraded. The last step is to Install PHP 7.3 on Debian 9 / Debian 8. Sudo wget -O /etc/apt//php.gpg Įcho "deb $(lsb_release -sc) main" | sudo tee /etc/apt//php7.3.list Step 3: Install PHP 7.3 on Debian 9 / Debian 8 Once the add-apt-repository command is available, add PHP 7.3 PPA repository sudo apt -y install lsb-release apt-transport-https ca-certificates If you don’t have add-apt-repository command available in your system, install it using our guide below: Step 2: Add PHP 7.3 PPA repository With PHP 7.3 comes a number of bug fixes, new functionalities and features as well as a number of deprecations.įor Ubuntu 18.04 / Ubuntu 16.04, use: Install PHP 7.3 on Debian 9 / Debian 8įollow the steps provided below to install 7.3 on Debian 9 / Debian 8 Step 1: Update system and Install add-apt-repositoryĮnsure your system is updated: sudo apt update This short tutorial is for installing PHP 7.3 on Debian 9 (Stretch) and Debian 8 (Jessie).