无法运行' composer.phar update'在服务器上

时间:2017-02-20 12:12:53

标签: php symfony composer-php

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

  

php composer.phar update
  使用包信息加载composer存储库
  更新依赖项(包括require-dev)
  您的要求无法解析为可安装的软件包集。

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].
请问有什么可能是错的,如何处理这个问题,因为这对我来说很奇怪。请帮助

1 个答案:

答案 0 :(得分:1)

  

我已使用<?xml version="1.0" encoding="UTF-8"?> <Configuration> <Appenders> <RollingFile name="file" fileName=".\\myComp.log" append="true" filePattern=".\\myComp-%d{MM-dd-yyyy}-%i.log.gz"> <PatternLayout pattern="%d{dd.MM.yy HH:mm:ss.SSS} %5p %c{1}:%L - %m%n "/> <Policies> <SizeBasedTriggeringPolicy size="1 MB"/> </Policies> </RollingFile> </Appenders> <Loggers> <!-- setting log level per default to INFO if not set through system properties --> <Logger name="com.myComp.starter" level="${sys:project.client.log.level.starter:-INFO}" /> <!-- setting log level per default to ERROR if not set through system properties --> <Logger name="com.security" level="${sys:project.client.log.level.security:-ERROR}" /> <Root level="ERROR"> <AppenderRef ref="file"/> </Root> </Loggers> </Configuration> 在项目资源中安装了Composer。

首先composer.phar install没有安装Composer!它会安装您的依赖项。见Installing Dependencies

第二:永远不要在生产环境中(在服务器上)运行composer.phar install。始终使用composer update在生产环境中安装依赖项。见Never run 'composer update' in production why?