diff --git a/plugins/php/versions/70/install.sh b/plugins/php/versions/70/install.sh index ebe243815..919a1e1ef 100755 --- a/plugins/php/versions/70/install.sh +++ b/plugins/php/versions/70/install.sh @@ -110,7 +110,6 @@ if [ ! -d $serverPath/php/${PHP_VER} ];then --enable-mysqlnd \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ - --enable-zip \ --enable-mbstring \ --enable-simplexml \ --enable-ftp \ diff --git a/plugins/php/versions/common/zip.sh b/plugins/php/versions/common/zip.sh index ce0238147..fee49c090 100755 --- a/plugins/php/versions/common/zip.sh +++ b/plugins/php/versions/common/zip.sh @@ -44,7 +44,7 @@ if [ ! -d $serverPath/lib/libzip ];then cd ${rootPath}/plugins/php/lib && /bin/bash libzip.sh fi -export PKG_CONFIG_PATH=/www/server/lib/libzip/lib/pkgconfig +export PKG_CONFIG_PATH=${serverPath}/lib/libzip/lib/pkgconfig Install_lib() { @@ -65,8 +65,7 @@ Install_lib() cd $sourcePath/php${version}/ext/${LIBNAME} $serverPath/php/$version/bin/phpize - ./configure --with-php-config=$serverPath/php/$version/bin/php-config \ - --with-zip + ./configure --with-php-config=$serverPath/php/$version/bin/php-config --with-zip make clean && make && make install && make clean