首先,
PHP版本:PHP 7.0.18& distro :Centos Linux版本7.3.1611(core)我是sudo用户。
我正在设置一个themosis WordPress安装,并且我所有的Apache配置内容都很好。
主题使用作曲家来管理依赖项。我遇到的问题是当我在应用程序的根部运行composer install
时。应该发生的事情是,作曲家安装了我在网站上需要的所有内容,其中包括一个供应商文件夹和一个带有WordPress安装的文件夹,称为CMS。我实际上得到的是:
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。这找不到包裹,因此我遵循了这个stackoverflow问题中的步骤,并从镜像URL切换到baseurl=http://centos.intergenia.de/$releasever/updates/$basearch/
。这找到了一个软件包,但仍然失败。这是我们解决实际问题的地方:错误:PHP70U-COMMON与PHP-Common-5.4.16-42.el7.x86_64错误:php70u-json与PHP-Common-5.4.16-42.el7.x86_64
从我的Google研究中,我读到您需要为PHP7安装额外的存储库,但是我不知道那是什么意思,或者这是我需要做的,或者如何做。我不知道谁在我面前有这个服务器空间,但是我知道它已经升级为7 php 7。
试图更新yum
磁盘要求:/filesystem上至少需要更多的空间。
我不认为我的问题与Themisos或作曲家本身有关。我找到了这个可能的解决方案(yum install php-mbstring --enablerepo=remi
),但不想完全破坏我的服务器,如果错误的话,我不知道该如何撤消该服务器。这个remi存储库是我需要修复的吗?
您需要安装其他扩展名与已经安装的软件包相同的软件包名称空间:
- remi:php-mbstring(请参阅向导)
- Webtatic:php70w-mbstring
- ius:php70u-mbstring
- etc