无法在服务器上运行

无法在服务器上运行

本文介绍了无法在服务器上运行“ composer.phar更新”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在生产服务器中运行Symfony应用程序。我已将我的网络文件上传到 public_html 文件夹。我已经使用 composer.phar install 在项目资源中安装了Composer。现在,我正在尝试更新服务器上的Composer,然后收到此消息/错误

I am trying to run Symfony application in the production server. I have uploaded my web files to public_html folder. I have installed Composer in my project resource using composer.phar install. Now I am trying to update Composer on the server I am getting this message/error

Problem 1
    - Conclusion: remove symfony/symfony v2.5.12
    - Conclusion: don't install symfony/symfony v2.5.12
    - Conclusion: don't install symfony/symfony v2.5.11
    - Conclusion: don't install symfony/symfony v2.5.10
    - Conclusion: don't install symfony/symfony v2.5.9
    - Conclusion: don't install symfony/symfony v2.5.8
    - Conclusion: don't install symfony/symfony v2.5.7
    - Conclusion: don't install symfony/symfony v2.5.6
    - Conclusion: don't install symfony/symfony v2.5.5
    - Conclusion: don't install symfony/symfony v2.5.4
    - Conclusion: don't install symfony/symfony v2.5.3
    - Conclusion: don't install symfony/symfony v2.5.2
    - Conclusion: don't install symfony/symfony v2.5.1
    - friendsofsymfony/rest-bundle 2.1.0 requires symfony/finder ^2.7|^3.0 -> satisfiable by symfony/finder[v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.13, v2.7.14, v2.7.15, v2.7.16, v2.7.17, v2.7.18, v2.7.19, v2.7.2, v2.7.20, v2.7.21, v2.7.22, v2.7.23, v2.7.24, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.10, v2.8.11, v2.8.12, v2.8.13, v2.8.14, v2.8.15, v2.8.16, v2.8.17, v2.8.2, v2.8.3, v2.8.4, v2.8.5, v2.8.6, v2.8.7, v2.8.8, v2.8.9, v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.0.8, v3.0.9, v3.1.0, v3.1.1, v3.1.10, v3.1.2, v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7, v3.1.8, v3.1.9, v3.2.0, v3.2.1, v3.2.2, v3.2.3, v3.2.4].
    - friendsofsymfony/rest-bundle 2.1.1 requires symfony/debug ^2.7|^3.0 -> satisfiable by symfony/debug[v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.13, v2.7.14, v2.7.15, v2.7.16, v2.7.17, v2.7.18, v2.7.19, v2.7.2, v2.7.20, v2.7.21, v2.7.22, v2.7.23, v2.7.24, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.10, v2.8.11, v2.8.12, v2.8.13, v2.8.14, v2.8.15, v2.8.16, v2.8.17, v2.8.2, v2.8.3, v2.8.4, v2.8.5, v2.8.6, v2.8.7, v2.8.8, v2.8.9, v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.0.8, v3.0.9, v3.1.0, v3.1.1, v3.1.10, v3.1.2, v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7, v3.1.8, v3.1.9, v3.2.0, v3.2.1, v3.2.2, v3.2.3, v3.2.4].
    - symfony/debug v2.7.10 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.11 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.12 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.13 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.14 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.15 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.16 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.17 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.18 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.19 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.2 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.20 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.21 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.22 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.23 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.24 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.3 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.4 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.5 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.6 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.7 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.8 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.9 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.0 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.1 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.10 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.11 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.12 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.13 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.14 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.15 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.16 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.17 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.2 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.3 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.4 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.5 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.6 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.7 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.8 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.8.9 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.0.0 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.0.1 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.0.2 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.0.3 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.0.4 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.0.5 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.0.6 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.0.7 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.0.8 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.0.9 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.1.0 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.1.1 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.1.10 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.1.2 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.1.3 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.1.4 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.1.5 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.1.6 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.1.7 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.1.8 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.1.9 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.2.0 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.2.1 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.2.2 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.2.3 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v3.2.4 conflicts with symfony/symfony[v2.5.0].
    - don't install symfony/finder v2.7.0|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.1|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.10|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.11|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.12|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.13|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.14|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.15|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.16|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.17|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.18|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.19|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.2|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.20|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.21|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.22|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.23|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.24|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.3|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.4|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.5|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.6|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.7|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.8|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.7.9|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.0|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.1|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.10|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.11|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.12|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.13|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.14|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.15|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.16|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.17|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.2|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.3|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.4|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.5|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.6|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.7|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.8|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v2.8.9|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.0.0|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.0.1|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.0.2|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.0.3|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.0.4|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.0.5|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.0.6|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.0.7|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.0.8|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.0.9|don't install symfony/symfony v2.5.0
    - symfony/debug v2.7.0 conflicts with symfony/symfony[v2.5.0].
    - symfony/debug v2.7.1 conflicts with symfony/symfony[v2.5.0].
    - don't install symfony/finder v3.1.0|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.1.1|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.1.10|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.1.2|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.1.3|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.1.4|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.1.5|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.1.6|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.1.7|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.1.8|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.1.9|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.2.0|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.2.1|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.2.2|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.2.3|don't install symfony/symfony v2.5.0
    - don't install symfony/finder v3.2.4|don't install symfony/symfony v2.5.0
    - Installation request for symfony/symfony 2.5.* -> satisfiable by symfony/symfony[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - Installation request for friendsofsymfony/rest-bundle ^2.1 -> satisfiable by friendsofsymfony/rest-bundle[2.1.0, 2.1.1].


请问可能有什么问题以及如何解决此问题这对我来说很奇怪。

please what could be wrong and how can this issue be tackled as this is weird to me. Kindly assist

推荐答案

首先是 composer.phar install 未安装Composer!它会安装您的依赖项。请参见

First of all composer.phar install doesn't install Composer! It installs your dependencies. See Installing Dependencies

第二:永远不要在生产环境(在服务器上)上运行 composer update 。始终使用 composer install 在生产环境中安装依赖项。参见

Second: Never run composer update in a production environment (on server). Always use composer install to install dependencies in a production environment. See Never run 'composer update' in production why?

这篇关于无法在服务器上运行“ composer.phar更新”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 07:01