简体   繁体   English

安装 opencart 时遇到问题

[英]Trouble installing opencart

I am having trouble installing opencart.我在安装 opencart 时遇到问题。 This is on my personal laptop (as a test server) running the usual LAMP stack.这是在我的个人笔记本电脑(作为测试服务器)上运行通常的 LAMP 堆栈。 I have PHP 7.3 installed and I am getting this strange error upon accessing the webroot (which runs the installer).我安装了 PHP 7.3 并且在访问 webroot(运行安装程序)时遇到了这个奇怪的错误。 PH7.3+ Required . PH7.3+ Required I am assuming it means PHP 7.3+, which I have installed:我假设这意味着我已经安装了 PHP 7.3+:

PHP 7.3.20-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Jul  9 2020 16:34:09) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.20, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.20-1+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
root@gardenia:/home/dperygin# sudo systemctl restart apache2
root@gardenia:/home/dperygin# php -v
PHP 7.3.20-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Jul  9 2020 16:34:09) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.20, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.20-1+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies

Thanks for any assistance.感谢您的任何帮助。 Donna唐娜

These plugins must be working for the OpenStore script to function properly.这些插件必须适用于 function 的 OpenStore 脚本。

Web Server - Apache recommended Web 服务器 - Apache 推荐
PHP 7.3 - PHP 7.3 -

Note: OpenCart 3.0.3.6 is not fully compatible with PHP 7.4注意:OpenCart 3.0.3.6 与 PHP 7.4 不完全兼容


MySQL - MySQLi is highly recommended MySQL - 强烈推荐 MySQLi

PHP requirements PHP 要求

The required PHP requirements are:所需的 PHP 要求是:

  1. roll
  2. zoom飞涨
  3. Zleep兹利普
  4. GD Library GD 图书馆
  5. MacCrypt加密货币
  6. MBStrings MBStrings

The PHP requirements described in the hacker are most often used in most hosting services.黑客中描述的 PHP 要求最常用于大多数托管服务。 There should be another contact, provided that there is another situation.如果有另一种情况,应该有另一个接触。 And in the event that it is not activated.如果它没有被激活。

This simply means that the server where the open cart is deployed doesnot comply with the required PHP version.You need to upgrade the PHP version to 7.3.0+这简单的说就是部署open cart的服务器不符合要求的PHP版本,需要升级PHP版本到7.3.0+

// Check Version
if (version_compare(phpversion(), '7.3.0', '<') == true) {
exit('PH7.3+ Required');

} }

Above code can be found in startup.php file under system folder in opencart (3.0.3.7) which is causing the error message to display.上面的代码可以在 opencart (3.0.3.7) 系统文件夹下的 startup.php 文件中找到,这会导致显示错误消息。

To verify php version, add the below file in server and access it in the browser.要验证 php 版本,请在服务器中添加以下文件并在浏览器中访问它。

main.php main.php

<html>
<head>
<title>PHP version check</title>
</head>
<body>
<?php
   echo phpinfo();
 ?>
</body>
</html>

You should see the details in browser.您应该在浏览器中看到详细信息。

https://<< yourdomain >>/main.php https://<< yourdomain >>/main.php

浏览器中的php版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM