Instalar PHP 8.1
Cómo instalar la versión 8.1 de PHP
Install PHP 8.1 with Nginx Option
Sistema operativo en el servidor VPS: Ubuntu 20.04 LTS
Conectarse por ssh al servidor vps:
ssh paco@alumnoportada.com.es
Añadir el repositorio PPA de Ondřej Surý
# Add repository sudo apt install php8.1 php8.1-fpm php8.1-cli -y # Once installed, the PHP-FPM service is automatically started, and you can check the status to make sure it’s running ok. sudo systemctl status php8.1-fpm # Check the PHP Version php -v
Modificar la configuración del servidor virtual y poner php8.1-fpm.sock (en lugar de php8.0-fpm.sock)
nano /etc/nginx/sites-available/todo
server { # … some other code location ~ .php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php8.1-fpm.sock; }
Comprobar la configuración de nginx y reiniciarlo
sudo nginx -t sudo systemctl restart nginx
Deja una respuesta
Lo siento, debes estar conectado para publicar un comentario.