compileLibzip(){ echo start install libzip. cd ${WORKDIR} if [ -f libzip-1.2.0.tar.gz ] then rm -rf libzip-1.2.0.tar.gz fi wget https://code.aliyun.com/yh11/download/raw/master/libzip-1.2.0.tar.gz tar -zxvf libzip-1.2.0.tar.gz cd libzip-1.2.0 ./configure make && make install if [ $? -ne 0 ] then echo libzip install failed. exit 127 fi ln -s /usr/local/lib/libzip/include/zipconf.h /usr/local/include }
installPHP(){ echo Install PHP 7.3 cd ${WORKDIR} if [ -f php-7.3.9.tar.gz ] then rm -rf php-7.3.9.tar.gz fi wget https://code.aliyun.com/yh11/download/raw/master/php-7.3.9.tar.gz tar -xvf php-7.3.9.tar.gz cd php-7.3.9 ./configure --prefix=/usr/local/php73 --enable-soap --enable-cgi --with-mysql=/usr/local/mysql --with-mysqli=mysqlnd --with-gd --with-pdo-mysql=mysqlnd --with-zlib --enable-zip --enable-fpm --without-pear --disable-phar --with-openssl --enable-mbstring=all --with-jpeg-dir=/usr --with-png-dir=/usr --with-curl --with-freetype-dir=/usr --enable-gd-native-ttf --with-xsl=/usr --enable-calendar --enable-exif --enable-ftp --with-iconv --enable-bcmath --with-mcrypt=/usr/local/libmcrypt --enable-opcache make && make install if [ $? -ne 0 ] then echo PHP install failed. exit 127 fi cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm73 cp ${PHP73_DIR}/etc/php-fpm.conf.default ${PHP73_DIR}/etc/php-fpm.conf chmod +x /etc/init.d/php-fpm73 }