php升级
由于5.3版本不支持[]数组简单声明,故升级版本.
apt-get install python-software-properties
apt-get install -y ppa-purge
add-apt-repository ppa:ondrej/php5-5.6
apt-get update
apt-get install php5-common php5-mysqlnd php5-xmlrpc php5-curl php5-gd php5-cli php5-fpm php5-imap php5-mcrypt php5-memcache
卸载之前版本
apt-get purge php5-common php5-mysqlnd php5-xmlrpc php5-curl php5-gd php5-cli php5-fpm php5-imap php5-mcrypt php5-memcache
#!/bin/bash
# desc install php5.5
#add-apt-repository ppa:ondrej/php5
#apt-get install python-software-properties
#apt-get update
#apt-get install php5
#php5 -v
apt-get
install
python-software-properties
apt-get
install
-y ppa-purge
add-apt-repository ppa:ondrej
/php5
apt-get update
apt-get
install
-y php5-fpm
apt-get
install
-y php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-
ps
php5-pspell php5-recode php5-snmp php5-tidy php5-xsl
apt-get
install
-y php5-redis php5-mysqlnd
#!/bin/bash
# desc install php5.5
#add-apt-repository ppa:ondrej/php5
#apt-get install python-software-properties
#apt-get update
#apt-get install php5
#php5 -v
apt-get
install
python-software-properties
apt-get
install
-y ppa-purge
add-apt-repository ppa:ondrej
/php5
apt-get update
apt-get
install
-y php5-fpm
apt-get
install
-y php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-
ps
php5-pspell php5-recode php5-snmp php5-tidy php5-xsl
apt-get
install
-y php5-redis php5-mysqlnd