Make using multiple cores, add/move cleanup
This commit is contained in:
@@ -17,17 +17,17 @@ wget http://uk1.php.net/get/php-$PHP_VERSION.tar.gz/from/this/mirror -O php-$PH
|
||||
tar xzf php-$PHP_VERSION.tar.gz
|
||||
cd php-$PHP_VERSION
|
||||
./configure --enable-calendar --enable-bcmath --with-bz2 --enable-ctype --without-gdbm --with-iconv --enable-exif --enable-ftp --with-gettext --enable-mbstring --enable-sockets --with-zlib --enable-soap --enable-zip --with-mhash --with-curl --with-gd --with-mysql --with-jpeg-dir --with-openssl --with-mysqli --with-mcrypt
|
||||
make
|
||||
make $JOBS
|
||||
make install
|
||||
|
||||
## Remove installation files
|
||||
if [ $MODE == "minimal" ]; then
|
||||
cd ..
|
||||
rm -r php-$PHP_VERSION
|
||||
rm php-$PHP_VERSION.tar.gz
|
||||
fi
|
||||
|
||||
## Configuration
|
||||
cp /opt/php-$PHP_VERSION/php.ini-production $PHP_CONFIG
|
||||
sed -i "s,^;\(date\.timezone\s*=\s*\)$,\1 $PHP_TIMEZONE," $PHP_CONFIG
|
||||
ln -s /usr/local/bin/php-cgi /usr/bin/php-cgi
|
||||
|
||||
## Remove installation files
|
||||
if [ $MODE == "minimal" ]; then
|
||||
cd /opt
|
||||
rm -r php-$PHP_VERSION
|
||||
rm php-$PHP_VERSION.tar.gz
|
||||
fi
|
||||
Reference in New Issue
Block a user