linux下nginx+php+mysql环境搭建 ++++++++++++++++++++++++++++++++++++++++++++++ 操作系统 : [CentOS6.0] 服务器 : [nginx-1.1.8] PHP : [php-5.2.6] 数据库 : [mysql-5.1.59] ++++++++++++++++++++++++++++++++++++++++++++++ 准备安装软件(download) 1[n
linux下nginx+php+mysql环境搭建
++++++++++++++++++++++++++++++++++++++++++++++
操作系统 : [CentOS6.0]
服务器 : [nginx-1.1.8]
PHP : [php-5.2.6]
数据库 : [mysql-5.1.59]
++++++++++++++++++++++++++++++++++++++++++++++
准备安装软件(download)
1>[nginx-1.1.8] http://nginx.org/download/nginx-1.1.8.tar.gz
2>[php-5.2.6] http://museum.php.net/php5/php-5.2.6.tar.gz
3>[php-5.2.6-fpm-0.5.8.diff.gz] http://php-fpm.org/downloads/php-5.2.6-fpm-0.5.8.diff.gz
4>[mysql-5.1.59] http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.59.tar.gz
5>[libxml2-2.6.30] http://download.chinaunix.net/down.php?id=28491&ResourceID=6095&site=1
6>[libmcrypt-2.5.8] http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz/download
7>[zlib-1.2.3] http://sourceforge.net/projects/libpng/files/zlib/1.2.3/zlib-1.2.3.tar.gz/download
8>[libpng-1.2.31] http://files.directadmin.com/services/custombuild/libpng-1.2.31.tar.gz
9>[jpegsrc.v6b] http://download.chinaunix.net/down.php?id=10021&ResourceID=5095&site=1
10>[freetype-2.3.5] http://nongnu.askapache.com/freetype/freetype-2.3.5.tar.gz
11>[autoconf-2.61] http://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.gz
12>[gd-2.0.35] http://code.google.com/p/google-desktop-for-linux-mirror/downloads/detail?name=gd-2.0.35.tar.gz&can=2&q=
13>[ncurses-5.6] http://ftp.gnu.org/gnu/ncurses/ncurses-5.6.tar.gz
14>[pcre-8.10] http://sourceforge.net/projects/pcre/files/pcre/8.10/pcre-8.10.tar.gz/download
15>[openssl-1.0.0e] http://www.openssl.org/source/openssl-1.0.0e.tar.gz +++++++++++++++++++++++++++++++++++++++++++++
1>【安装gcc, gcc-c++】
[html] view plaincopyprint?
2>【开放80、3306、22端口】
[html] view plaincopyprint?
3>【建立lamp/src目录, 将源码包上传】 4>【安装libxml2】
[html] view plaincopyprint?
5>【安装libmcrypt】
[html] view plaincopyprint?
6>【安装libxml2-devel】
[html] view plaincopyprint?
7>【安装zlib】
[html] view plaincopyprint?
8>【安装libpng】
[html] view plaincopyprint?
9>【安装jpegsrc.v6b】
[html] view plaincopyprint?
10>【安装freetype】
[html] view plaincopyprint?
11>【安装autoconf】
[html] view plaincopyprint?
12>【安装gd】
[html] view plaincopyprint?
13>【pcre-8.10】
[html] view plaincopyprint?
14>【安装openssl】
[html] view plaincopyprint?
15>【安装nginx】
[html] view plaincopyprint?
16>【安装ncurses】
[html] view plaincopyprint?
17>【安装mysql】
[html] view plaincopyprint?
18>【安装php】
[html] view plaincopyprint?
19>【nginx配置】
[html] view plaincopyprint?
20>【nginx虚拟主机配置】
vi /usr/local/nginx/conf/nginx.conf #在http最后一行加入 include /usr/local/nginx/conf/vhost/dev_localhost.config; #不带url重写
[html] view plaincopyprint?
#带url重写(zend framework)
[html] view plaincopyprint?
[html] view plaincopyprint?