首先,
PHP版:PHP 7.0.18& 发行版:CentOS Linux版本7.3.1611(核心版) 我是一个sudo用户。
我正在设置Themosis Wordpress安装,我所有的apache配置工作都很棒。
Themosis使用Composer来管理依赖关系。我遇到的问题是当我在应用程序的根目录中运行composer install
时。应该发生的是作曲家安装我需要的所有网站,包括供应商文件夹,以及一个名为cms的文件夹,其中包含Wordpress安装。我真正得到的是:
Problem 1
- illuminate/database v5.5.0 requires illuminate/support 5.5.* -> satisfiable by illuminate/support[v5.5.0, v5.5.2].
- illuminate/database v5.5.2 requires illuminate/support 5.5.* -> satisfiable by illuminate/support[v5.5.0, v5.5.2].
- illuminate/database v5.4.0 requires illuminate/support 5.4.* -> satisfiable by illuminate/support[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9].
- illuminate/database v5.4.13 requires illuminate/support 5.4.* -> satisfiable by illuminate/support[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9].
- illuminate/database v5.4.17 requires illuminate/support 5.4.* -> satisfiable by illuminate/support[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9].
- illuminate/database v5.4.19 requires illuminate/support 5.4.* -> satisfiable by illuminate/support[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9].
- illuminate/database v5.4.27 requires illuminate/support 5.4.* -> satisfiable by illuminate/support[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9].
- illuminate/database v5.4.36 requires illuminate/support 5.4.* -> satisfiable by illuminate/support[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9].
- illuminate/database v5.4.9 requires illuminate/support 5.4.* -> satisfiable by illuminate/support[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9].
- illuminate/database v5.3.0 requires illuminate/support 5.3.* -> satisfiable by illuminate/support[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- illuminate/database v5.3.16 requires illuminate/support 5.3.* -> satisfiable by illuminate/support[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- illuminate/database v5.3.23 requires illuminate/support 5.3.* -> satisfiable by illuminate/support[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- illuminate/database v5.3.4 requires illuminate/support 5.3.* -> satisfiable by illuminate/support[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- illuminate/support v5.5.2 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.5.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.4.9 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.4.36 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.4.27 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.4.19 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.4.17 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.4.13 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.4.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.3.4 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.3.23 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.3.16 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.3.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- Installation request for illuminate/database ^5.3 -> satisfiable by illuminate/database[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.2].
不会生成供应商文件,也不会保存Wordpress的Web文件夹。这是我到目前为止所尝试的内容:
composer require illuminate/support 5.5.*
这会失败,因为它需要mbstring。结果:
Problem 1
- illuminate/support v5.5.2 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.5.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- Installation request for illuminate/support 5.5.* -> satisfiable by illuminate/support[v5.5.0, v5.5.2].
我尝试使用sudo yum install php-mbstring
安装mbstring。这没有找到包,所以我按照this StackOverflow question中的步骤操作,并从镜像URL切换到baseurl=http://centos.intergenia.de/$releasever/updates/$basearch/
。这找到了一个包,但仍然失败了。这是我们解决实际问题的地方:
错误:php70u-与php-common-5.4.16-42.el7.x86_64的常见冲突 错误:php70u-json与php-common-5.4.16-42.el7.x86_64冲突
从我的Google研究中,我读到你需要为PHP7安装额外的存储库,但我不知道这意味着什么,或者这是我需要做什么,或者如何做。我不知道在我面前有谁拥有这个服务器空间,但我知道它在我开始之前已经升级到PHP 7。
试图更新yum
磁盘要求: / filesystem需要至少308MB的空间。
我不相信我的问题与肌无力或者作曲家本身有关。我找到了this possible solution,(yum install php-mbstring --enablerepo=remi
),但我并不想完全破坏我的服务器,如果错误的话,我也不知道如何撤消该服务器。这个Remi存储库是我需要解决的吗?
答案 0 :(得分:0)
您需要安装其他扩展名是与已安装的软件包相同的软件包名称空间: