![]() ![]() ![]() You can install additional extensions from the same php8.1-NAME pattern. This command will install several PHP extensions due to php8.1-common, and the CLI for PHP 8.1.Ĭonfirm the installation by running: php -v # Show PHP version. Install PHP 8.1 with CLI sudo apt install php8.1-common php8.1-cli -y It automatically installs package such as php8.1-pdo, php8.1-tokenizer among other useful extensions. php8.1-common is a meta-package that installs most of the widely used PHP extensions in one-go.php8.1 is a meta-package that collectively installs a few dependencies such as php8.1-cli and php8.1-readline as well as auxiliary packages such as apache2 if one of php8.1-cli, php8.1-fpm, or libapache2-mod-php8.1 is not explicitly requested.Additional extensions (such as GD, Curl, etc.) can be installed as software packages following their name ( php8.1-gd, php8.1-curl, etc.). Install PHP 8.1 and extensionsĪll PHP 8.1 packages follow php8.1-NAME pattern. Steps above will add the PPA as a source of packages, that contains all PHP packages and their dependencies such as argon2 and libzip. Sudo sh -c 'echo "deb $(lsb_release -sc) main" > /etc/apt//php.list' Ubuntu sudo add-apt-repository ppa:ondrej/php # Press enter when prompted.ĭebian sudo apt install apt-transport-https lsb-release ca-certificates wget -y Once this repository is added, the initial installation and updates can be done with the standard apt commands. Ondřej Surý maintains a package archive that contains compiled binaries of all current PHP versions, for Ubuntu and Debian. None of the default software repositories on Ubuntu or Debian to date include PHP 8.1. This command lists all PHP packages installed, displays them on-screen, and saves to a file named packages.txt in the current working directory. On systems that install PHP 8.1 afresh, this step is not required. When updating an existing PHP setup, it is easier to list the existing PHP extensions installed as software packages, to match the PHP 8.1 extensions list. auto_detect_line_endings INI directive is deprecated.fault and fault_options INI settings are deprecated.date_sunrise, date_sunset functions and related INI settings are deprecated.For example, this feature will not be available on Ubuntu 18.04. This feature requires Curl version 7.62 or later, and will not be available on older Debian/Ubuntu versions that do not bundle a Curl version later than 7.62. Curl extension supports DNS over HTTPS (DoH) since PHP 8.1.However, the installation guide below does not include AVIF image support. GD extension supports AVIF image format from PHP 8.1 if the extension is compiled with AVIF image support.Extension and Dependency Changes in PHP 8.1 For a complete list of changes in PHP 8.1, see What's new and changed in PHP 8.1. PHP 8.1 brings several new features, improvements, and functionality that are marked deprecated. However, Ondřej Surý continues to make PHP versions available as a Debian/Ubuntu software repository, and PHP 8.1 packages are now available. None of the current Ubuntu or Debian software repositories offer PHP 8.1 in their default software repositories. Installing PHP 8.1 on a new system, or upgrading an existing PHP setup to PHP 8.1 is made easy on Ubuntu and Debian-based systems with the help of pre-compiled binaries. PHP 8.1 is now released with new features, improvements, and deprecated functionality. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |