Debian7采用dotdeb安装LNMP,PHP5.6

作者:admin | 时间:May 24, 2015 | 分类:host,linux | 评论:0 ℃

1、添加以前源地址到/etc/apt/sources.list

deb http://packages.dotdeb.org wheezy all 
deb-src http://packages.dotdeb.org wheezy all
deb http://packages.dotdeb.org wheezy-php56 all
deb-src http://packages.dotdeb.org wheezy-php56 all
2、导入dotdeb源的钥匙

wget http://www.dotdeb.org/dotdeb.gpg && cat dotdeb.gpg | apt-key add -
3、安装LNMP

apt-get update && apt-get install nginx mysql-server php5-fpm php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-common php5-mysql php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-memcached memcached
4、选项

a、安装phpmyadmin
b、安装php探针——http://www.yahei.net/tz/tz.zip
c、修改/etc/nginx/sites-available/default,打开PHP解析功能