update phpd
This commit is contained in:
parent
7485265d15
commit
36730cf281
|
@ -1,10 +1,21 @@
|
|||
#!/bin/bash
|
||||
#############################################
|
||||
# install php
|
||||
#############################################
|
||||
|
||||
# please install php-deps before
|
||||
####################################################
|
||||
# NAME
|
||||
# install-php.sh
|
||||
# install php in server with configure
|
||||
# USAGE
|
||||
# ./install-php.sh
|
||||
#
|
||||
# AUTHOR
|
||||
# Aborn Jiang(aborn.jiang@gmail.com)
|
||||
#
|
||||
# VERSION
|
||||
# v0.1 2014-03-02
|
||||
#
|
||||
####################################################
|
||||
|
||||
## !!! warning=> please install php-deps before !!!
|
||||
## wget http://cn2.php.net/distributions/php-5.5.9.tar.gz
|
||||
make clean;
|
||||
./configure \
|
||||
--prefix=/home/vagrant/php5 \
|
||||
|
@ -53,4 +64,4 @@ make install
|
|||
# after install
|
||||
# sudo cp php.ini-development /home/vagrant/php5/etc/php.ini
|
||||
# sudo cp sapi/fpm/init.d.php-fpm.in /home/vagrant/php5/etc/init.d.php-fpm
|
||||
# sudo cp sapi/fpm/php-fpm.conf.in /home/vagrant/php5/etc/php-fpm.conf
|
||||
# sudo cp sapi/fpm/php-fpm.conf.in /home/vagrant/php5/etc/php-fpm.conf
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
# bzip2 need src install
|
||||
# cd bzip2; make; sudo make install
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libxml2 libxml2-dev \
|
||||
libcurl4-openssl-dev curl openssl bzip2 \
|
||||
libmcrypt-dev libjpeg-dev libpng12-dev \
|
||||
|
|
Loading…
Reference in New Issue