阿里云ECS环境部署 centos 6.5
阿里云ESC服务器
1 先挂载磁盘
参考:http://help.aliyun.com/view/11108189_13491193.html?spm=5176.2020520101.121.2.1wcayB
2 安装mysql --只是为了 php安装时候做扩展用,解压即可
3 安装lighttpd --之前已经安装了~ 不在重新安装
4 安装php
a 先安装类库
shell> yum install autoconf automake libtool re2c flex bison zlib libmbfl libxml2 libxml2-devel bzip2 bzip2-devel curl libcurl libcurl-devel libmcrypt libmcrypt-devel gd gd-devel php-gd openssl openssl-devel
安装 ,mhash,
b 编译:
shell>./configure --prefix=/home/www/php --with-config-file-path=/home/www/php/etc --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-zlib --with-libxml-dir --with-pcre-dir --with-jpeg-dir --with-png-dir --with-freetype-dir --with-gd --with-openssl --with-mcrypt --with-mhash --enable-fpm --enable-mbstring --enable-xml --enable-soap --enable-sockets --enable-zip --without-sqlite3 --without-pear --without-pdo-sqlite --without-cdb --with-mcrypt --with-curl