Symfony2在使用Composer安装propel的时候遇到下面的错误
[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process "git clone --no-checkout 'git://github.com/phingofficial/phing.git' '/data/john/wwwroot/q/trunk/vendor/phing/phing' && cd '/data/john/wwwroot/q/trunk/vendor/phing/phing' && g
it remote add composer 'git://github.com/phingofficial/phing.git' && git fetch composer" exceeded the timeout of 300 seconds.
解决方案:
增加COMPOSER_PROCESS_TIMEOUT,通过命令<code>composer config --list</code>可以看到默认是多长时间,然后通过命令<code>composer config -g process-timeout 600</code>增加COMPOSER_PROCESS_TIMEOUT
清除Composer的缓存,然后设置cache-dir=/dev/null,这样Composer就不会使用缓存文件