setup.sh脚本

# 安装 apr 和 apr-utils

cd apr-1.4.6 && 

./configure &&

make &&

make install && 

cd ../apr-util-1.5.2 && 

./configure --with-apr=/usr/local/apr &&

make &&

make install && 

# 安装 pcre

cd ../pcre-8.32 && 

./configure &&

make &&

make install && 

# 设定 编译 安装PHP5

cd ../php-5.4.14 &&

./configure \

--with-apxs2=/usr/local/apache2/bin/apxs \

--with-mysql=/usr/local/mysql &&

make &&

make install && 

# 拷贝 php.ini 到 /usr/local/lib

cp -f php.ini-production /usr/local/lib/php.ini &&

cd ../ &&

rm -Rf $work_dir &&

{

echo

echo "Done ! "

}

猜你喜欢

转载自blog.csdn.net/kang666888777/article/details/88532181