昨天我下载了新的ubuntu20版本,长话短说,它毁了我的mysql和php安装;我已经修复了一些错误,但是看起来ubuntu将我从php 7.4.3升级到7.4.5,现在我的mysql_pdo驱动程序坏了,我想我需要安装php7.4-gd才能让驱动程序正常工作,但我不能这样做,因为它与php 7.4.5不兼容。
sudo apt-get install php7.4-gd
php7.4-gd : Depends: php7.4-common (= 7.4.3-4ubuntu1) but 7.4.5-1+ubuntu19.10.1+deb.sury.org+1 is to be instal
我刚刚将AWS Elastic Beanstalk从PHP5.6升级到PHP7.4,但现在我在日志中收到了与无法识别的.htaccess和php_value相关的错误。这两者之间有什么关系? 更新:因为修复了问题,但错误或多或少是: .htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
我用的是图像文本和图像或图像。在PHP5.6版本中使用它时,不会出现字符问题。但是当我升级到php 7时,这个问题就开始了。其他国家语言的字符出现损坏。代码没有变化。只有当我将PHP5.6版本升级到7.4时才会出现问题,如果有想法的人能够发布它,我将非常感激。谢谢。这篇课文: TEST i ek Sok.圣普
我以前在PhP 5.6中使用了我的Laravel,我在我的项目中使用了条形码Gnerator,在某些地方,为了做到这一点,我使用这个包。
laravel/laravel barcode_blog
现在,我将我的PhP升级到7.4 (注意:还没有升级我的laravel )。当我搜索一个偶然的条形码时,一切都很好,我得到了以下错误:
ErrorException in BarcodeGenerator.php line 293:
Array and string offset access syntax with curly braces is deprecated (View:.../.../
我正在使用Debian 9,最近我将PHP从5.6升级到7.4。我被撞到了
未找到类“SoapClient”
运行旧PHP脚本时出错,该脚本在PHP5.6下运行得很好。phpinfo()列出了"SOAP“模块,但是它没有一个专门的"soap”部分,列出了"Soap客户端“(如前面提到的)。
我认为问题在于我没有安装php7.4-soap扩展,所以我运行了sudo apt-get install php7.4-soap,但是我得到了以下错误:
Building dependency tree
Reading state information...
我从PHP 5.3升级到5.6,以利用5.6中大于2 2GB的上传功能。在执行此操作时,以下行dies:
$db = ($GLOBALS["___mysqli_ston"] = mysqli_connect($dbhost, $dbuser, $dbpass))
or die("The site database appears to be down.");
日志文件消息为:
mysqli_connect(): The server requested authentication method unknown to the client
如果升级到P
我正在使用Windows操作系统运行PHPLaravel-8应用程序.我的中所有项目的PHP版本都是PHP-Version3.8。在我的本地系统中,所有Laravel项目都有("php":“^7.3 x^8.0”,)
然而,我做了一个团队项目的拉请求,但它是4。该项目还使用了Laravel-8框架("php":“^7.4 x^8.0”,)
当我试图在下载的项目上运行composer安装时,我得到了以下错误:
Your lock file does not contain a compatible set of packages. Please run compo
让PHP7和PHP8共存
我已经从PHP7升级到PHP8,就像PHP通常的情况一样,我仍然在/usr/bin中使用php7.4 (连同php8.0)。但是,当我运行php -v命令时,它会响应php8.0。
从那时起,当尝试安装软件(例如Docker和VirtualBox)时,我收到错误消息php7.4-fpm.service: Failed with result 'exit-code',然后是Failed to start The PHP 7.4 FastCGI Process Manager。因此,我似乎需要运行php7.4来安装这些应用程序。
但是我使用PHP8功能来编
我对Debian 10使用了Sury。不知怎么的,我注意到它正在尝试安装旧版本和新版本。他们有没有办法,我可以做些什么,这样,apt更新或apt升级,除了php 7.4之外,不会安装任何软件包吗?
The following NEW packages will be installed:
php5.6-igbinary php5.6-memcached php5.6-msgpack php5.6-redis php7.0-igbinary php7.0-memcached php7.0-msgpack php7.0-redis php7.1-igbinary php7.1-memc
我刚刚在运行Joomla 3.x的服务器上将php 5.6升级到7.4。
在将php版本升级到7.4之后,我遇到了问题。我不能删除任何内容(用户、文章、页面)作为管理员,我得到了以下错误:
对于函数plgContentFormLogger::onContentBeforeDelete(),2来说,参数太少,在第70行的/home/website/libraries/joomla/event/event.php中传递,而第3行则是预期的
即使我将php版本降至7.3、7.2甚至7.1,问题仍然存在。有人能帮帮我吗?因为我想不出来?
代码:
public function update(&
我有一个网站上的5.6服务器,是使用php 5.6 (joomla 1.5)。我还想建立另一个基于wordpress的网站。我设法让它工作,但是一些wordpress扩展需要php7。我决定在wordpress目录下的htaccess文件中添加AddHandler application/x-httpd-php74 .php。它看起来像phpinfo()一样工作,因为目录显示了所需的php版本(7.4)。不幸的是,wordpress停止了工作。它抛出这样的错误:Your PHP installation appears to be missing the MySQL extension whi
我们正在运行UbuntuServer18.04.5。我刚从PHP7.2升级到7.4,因为Wordpress在抱怨。我听从这里的指示,一切顺利。现在,我想删除7.2,但是当我运行命令sudo apt purge '^php7.2*'时,不仅要执行7.4和7.2的正则表达式,还需要安装PHP8。我已经粘贴了下面的输出。在任何事情发生之前我就取消了。我做错了什么?
The following packages were automatically installed and are no longer required:
dbconfig-common dbconfig-mysql
所以我在安装Pterodactyl面板时得到以下错误: Problem 1
- Installation request for aws/aws-sdk-php ^3.156 -> satisfiable by aws/aws-sdk-php[3.156.0].
- aws/aws-sdk-php 3.156.0 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
To enable extensions, verify that the