【发布时间】:2016-11-27 11:34:52
【问题描述】:
在使用 Plesk Onyx 17.0.17 运行 CentOS 6.5 (Final) 的 VPS 服务器上检查 PHP 版本时,我收到以下错误:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/apc.so' - /usr/lib64/php/modules/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.3.3 (cli) (built: Aug 11 2016 20:33:53)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.6.0, Copyright (c) 2002-2014, by ionCube Ltd.
我还运行了以下 yum info php 命令:
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.bytemark.co.uk
* epel: mirror.bytemark.co.uk
* extras: mirrors.coreix.net
* updates: mirrors.coreix.net
Installed Packages
Name : php
Arch : x86_64
Version : 5.3.3
Release : 48.el6_8
Size : 3.5 M
Repo : installed
From repo : updates
Summary : PHP scripting language for creating dynamic web sites
URL : http://www.php.net/
License : PHP
Description : PHP is an HTML-embedded scripting language. PHP attempts to make
: it easy for developers to write dynamically generated webpages.
: PHP also offers built-in database integration for several
: commercial and non-commercial database management systems, so
: writing a database-enabled webpage with PHP is fairly simple. The
: most common use of PHP coding is probably as a replacement for CGI
: scripts.
:
: The php package contains the module which adds support for the PHP
: language to Apache HTTP Server.
我们目前正在设置一个临时站点来运行 Magento 2,上述错误导致尝试重新索引任何 Magento 索引管理服务和安装主题/扩展时出现问题。
我不确定哪些额外信息会有用,所以请告诉我要运行的任何命令以生成一些更有用的信息。
我是服务器类型工作的新手,所以请多多包涵并尽可能详细地介绍。
【问题讨论】:
-
您确定您的 magento 网站可以在这个 PHP 5.3.3 上运行吗?也许我错了,但我认为 Magento 需要 PHP 5.4+。
-
Magento 2.1 现在至少可以在 PHP 5.6 上运行。暂存站点的托管运行 PHP 7.0.13。作为我在网上阅读的建议,服务器仍然使用 PHP 5.3.3 link。