[英]update php and php-fpm in nginx server
I have a requirement where I need to update the PHP and PHP-fpm to the latest version of the server.我有一个要求,我需要将 PHP 和 PHP-fpm 更新到最新版本的服务器。 this server is hosted using Nginx and WordPress. We are using amazon Linux 2 when I disable php7.4 and enable php8 in amazon-Linux-extras and install I'm getting an error.该服务器使用 Nginx 和 WordPress 托管。当我禁用 php7.4 并在 amazon-Linux-extras 中启用 php8 并安装时,我们使用的是 amazon Linux 2 我收到错误消息。 php error php 错误
I have a couple of questions: what happens when I uninstall and install PHP to the latest version does it after the site?我有几个问题:当我卸载 PHP 并将其安装到最新版本时会发生什么? Do we have any workaround for this PHP error?对于这个 PHP 错误,我们有任何解决方法吗?
Thanks in advance.提前致谢。
I'm expecting a solution to update my PHP to the latest version without any issues.我期待一个解决方案,将我的 PHP 更新到最新版本,没有任何问题。 I have just started learning DevOps.我刚刚开始学习 DevOps。 I'm not familiar with these errors我不熟悉这些错误
I removed php-json by sudo yum remove php-json
and installed of php我通过sudo yum remove php-json
并安装了 php
sudo yum install php php-{pear,cgi,common,curl,mbstring,gd,mysqlnd,gettext,bcmath,json,xml,fpm,intl,zip} sudo yum install php php-{pear,cgi,common,curl,mbstring,gd,mysqlnd,gettext,bcmath,json,xml,fpm,intl,zip}
Still the application works.该应用程序仍然有效。
php-json is available in Amazon Linux Extra topic "php7.4" php-json 在 Amazon 中可用 Linux 额外主题“php7.4”
$ sudo amazon-linux-extras install php7.4
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.