![]() 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 8.0 or 8.2 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.1 by default using pecl install, if the PHP 8.1 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. Since I have the 8.1.13 binary (from the ondrej PPA) installed on a computer running Ubuntu 20.04 LTS, I've compared them, and the executable installed in /usr/bin/php8.1 is not version 8.1.13, but most probable 8.1.2.The following instructions assume a clean environment and show how to install PHP 8.1, 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. ![]() So I am stuck in a deadlock were the package manager tells me there is no need to upgrade, because I already have the latest version (8.1.13), but when checking version, I get 8.1.2. Grub-common grub-pc grub-pc-bin grub2-common libsasl2-2 libsasl2-modules libsasl2-modules-dbĠ upgraded, 0 newly installed, 0 to remove and 7 not upgraded.Īnd asking specifically for an upgrade of the php8.1 package produces: $ sudo apt upgrade php8.1 The following packages have been kept back: Those that are not upgraded seems to have nothing to do with PHP: $ sudo apt upgrade See PHP's version support documentation and the Drupal PHP requirements page for more information. This can be fixed by upgrading to PHP 8.1.6 or later. PHP 8.1.2-1ubuntu2.9 has an OPcache bug that can cause fatal errors with class autoloading. Checking cersion in the UI (Status report) gives: PHP ![]() With Zend OPcache v8.1.2-1ubuntu2.9, Copyright (c), by Zend TechnologiesĪnd "php -v" gives the same result. Zend Engine v4.1.2, Copyright (c) Zend Technologies So the package manager says that it is already installed.īut checking the in the CLI version I get: $ php8.1 -v Php8.1 is already the newest version (8.1.13-1+ubuntu22.04.1++1).Ġ upgraded, 0 newly installed, 0 to remove and 9 not upgraded. So I try to install it: $ sudo apt-get install php8.1 This confirms that the latest version of the 8.1.x branch (8.1.13) is available as "php8.1" without adding a PPA. When I run the dpkg command you suggest, I get: ii php8.1 8.1.13-1+ubuntu22.04.1++1 all server-side, HTML-embedded scripting language (metapackage)
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |