#!/usr/bin/env bash Install_XCache() { echo "You will install ${XCache_Ver}..." xadmin_pass="" while :;do read -p "Please enter admin password of XCache Administration Page: " xadmin_pass if [ "${xadmin_pass}" != "" ]; then echo "=================================================" echo "Your admin password of XCache was: ${xadmin_pass}" echo "=================================================" break else Echo_Red "Password cannot be empty!" fi done xmd5pass=`echo -n "${xadmin_pass}" |md5sum |awk '{print $1}'` echo "====== Installing XCache ======" Press_Start rm -f ${PHP_Path}/conf.d/006-xcache.ini Addons_Get_PHP_Ext_Dir zend_ext="${zend_ext_dir}xcache.so" if [ -s "${zend_ext}" ]; then rm -f "${zend_ext}" fi cpu_count=`cat /proc/cpuinfo |grep -c processor` cd ${cur_dir}/src Download_Files ${Download_Mirror}/web/xcache/${XCache_Ver}.tar.gz ${XCache_Ver}.tar.gz Tar_Cd ${XCache_Ver}.tar.gz ${XCache_Ver} ${PHP_Path}/bin/phpize ./configure --enable-xcache --enable-xcache-coverager --enable-xcache-optimizer --with-php-config=${PHP_Path}/bin/php-config make make install cd ../ cat >${PHP_Path}/conf.d/006-xcache.ini<