0
当我在一个项目上执行ant rebuilddb
命令似乎蚂蚁找不到PHP可执行文件。蚂蚁rebuilddb命令失败 - 执行返回:127
我得到以下错误:
Buildfile: /var/www/html/aac_test/build.xml
rebuilddb:
[exec] /usr/bin/env: php
[exec] : File or Directory not found (translation by me from German to English)
BUILD FAILED
/var/www/html/aac_test/build.xml:83: exec returned: 127
在我的build.xml有符合83
<target name="rebuilddb" description="removes and recreates the database with default development data">
<exec dir="${server}" executable="bin/console" failonerror="true">
<arg value="cache:clear" />
</exec>
...
以下应该执行一些symfony的控制台命令。
凡which php
给我/usr/bin/php
所以我的问题是 - 为什么蚂蚁无法找到PHP可执行文件?
注:
我开发OS在VBOX是Debian的杰西,安装PHP5-CLI和我需要键入php app/console somecommand
运行symfony的控制台命令。似乎有某种东西被cli破坏了。所有php5组件都被删除,清除并重新安装。