Postado Maio 17, 2024 1 ano quando executo sudo apt install php-fpm php-mysqlnd é instalado php7.4, entao fiz esses comandos para instalar o 8.1 How to Install PHP 8.1 for Nginx On Ubuntu 20.04 Step 1. Add the Ondrej PPA Repository PHP 7.4 is the default PHP version in Ubuntu 20.04 repositories at the time of writing this tutorial. We will use the Ondrej PPA repositories to install the latest version of PHP. This repository contains multiple PHP versions and PHP extensions. First, let’s update your Ubuntu system packages and install some dependencies as shown below. $ sudo apt update $ sudo apt upgrade # Allow apt to use the repository via HTTPS $ sudo apt install ca-certificates apt-transport-https $ sudo apt install software-properties-common Next, add the Ondrej PPA. $ sudo add-apt-repository ppa:ondrej/php When prompted, press ENTER to proceed with adding the repository. Step 2. Install PHP 8.1 with Nginx If you'd like to use PHP 8.1 with Nginx installation, the most recommended step is to install PHP-FPM to process PHP files. You can install PHP and PHP-FPM using the following command: $ sudo apt install php8.1 php8.1-fpm
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.