Linux:

CentOS 6.5, samba还是装一下,以后比较有用:http://zhweizhi.blog.51cto.com/10800691/1901419


MySQL:

第二个装MySQL,这样的顺序比较好

基本按照这个教程走

https://jingyan.baidu.com/article/fec7a1e5f8d3201190b4e782.html


Nginx:

http://www.nginx.cn/install

基本上按照这篇教程,其中 wget 提供的uri有些过期了 ,连接进去 ,修改一下就好

值得注意的一点: make NGINX 的时候会报错:

rc/core/ngx_regex.h:24: error: expected specifier-qualifier-list before ‘pcre’ 

这时参考这篇教程:http://blog.csdn.net/xiaofei_hah0000/article/details/52228779里面说到的:

是因为pcre需要依赖 pcre-devel,这是一个系统相关库,安装很简单:

yum install pcre-devel

nginx make的时候,pcre总是过不去,用这里提供的方法:

http://www.cnblogs.com/siqi/p/3572695.html

原因是,如果使用的是 pcre 2代 那么nginx是不支持的,换成8系再试一试 (具体版本号是 pcre-8.39)

成功!




PHP & PHP-FPM 安装

http://www.nginx.cn/231.html

前面按照这个教程走,在 ./configured 时候,如果报错:

Don't know how to define struct flock on this system, set --enable-opcache=no

解决


http://blog.linuxeye.com/342.html


解决了,就是上面那个方法,配置改成这样子

wKiom1jRQZ3DpdKPAAAJZT316-0045.png



但是其实我还碰到了一个小问题:

在安装PHP之前,我的系统自带有 php5.3,但我安装的是php5.6

结果用命令行执行php的时候,运行的是5.3,而php-fpm却是php 5.6

这种情况,首先要把5.3删除干净

紧接着,http://www.cnblogs.com/kenshinobiy/p/5886046.html

按照这个教程做,将 php5.6 加入 PATH环境变量即可 


安装后,nginx页面可能会报 access denied  参考:

http://blog.csdn.net/u012129607/article/details/62042169