Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/286.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用phpfarm安装/卸载php-5.2.17_Php_Server_Phpfarm - Fatal编程技术网

使用phpfarm安装/卸载php-5.2.17

使用phpfarm安装/卸载php-5.2.17,php,server,phpfarm,Php,Server,Phpfarm,我在前面使用simply安装了php-5.2.17 ./compile.sh 5.2.17 我没有定义任何自定义选项。但后来我意识到它使用的是cgi,我希望它使用fastcgi,所以我创建了自定义文件 configoptions=" –enable-cli \ –with-pear \ –with-openssl=/usr \ –with-iconv \ –with-curl \ –with-mysqli \ –enable-mbstri

我在前面使用simply安装了php-5.2.17

./compile.sh 5.2.17
我没有定义任何自定义选项。但后来我意识到它使用的是cgi,我希望它使用fastcgi,所以我创建了自定义文件

configoptions="
    –enable-cli \
    –with-pear \
    –with-openssl=/usr \
    –with-iconv \
    –with-curl \
    –with-mysqli \
    –enable-mbstring \
    –enable-exif \
    –with-jpeg-dir=/usr \
    –with-zlib \
    –with-zlib-dir \
    –with-png-dir=/usr \
    –with-gd \
    –with-gettext \
    –enable-gd-native-ttf \
    –with-mhash \
    –enable-ftp \
    –with-pspell \
    –with-mcrypt \
    –enable-bcmath \
    –with-mime-magic \
    –with-pdo-mysql \
    –enable-sockets \
    –enable-soap \
   –enable-calendar \
    –enable-fastcgi \
    –enable-force-cgi-redirect \
"
现在,当我使用上面的命令编译时,它给出

5.2.17 5 2 17
configure: error: can only configure for one host and one target at a time
configure.sh failed.
请注意,我已经修补了所有必要的东西,需要根据在线教程


我正在使用Ubuntu14.4

我浏览了php farm github页面,其中的一部分引起了我的注意


它描述了一个
custom/default versions.txt
文件通常用于重新编译相同的php版本。

但我的案例中不存在这样的目录或文件您是否在
php farm/src
目录中?o是。。。试图找到的是src目录。。我认为这是我们需要为默认配置创建的东西