php 的配置
(一) 、编译 PHP 的安装包---此处为 5.4.36 版本的 php
[root@server1 ~]
[root@server1 php-5.4.36]
--prefix=/usr/local/lnmp/php
--with-config-file-path=/usr/local/lnmp/php/etc
--with-mysql=/usr/local/lnmp/mysql/
--with-mysqli=/usr/local/lnmp/mysql/bin/mysql_config
--with-openssl --with-snmp --with-gd --with-zlib
--with-curl --with-libxml-dir --with-png-dir
--with-jpeg-dir --with-freetype-dir --without-pear
--with-gettext --with-gmp --enable-inline-optimization
--enable-soap --enable-ftp --enable-sockets --enable-mbstring
--enable-fpm --with-fpm-user=nginx --with-fpm-group=nginx --with-mhash
[root@server1 php-5.4.36]
(二) 、启动 PHP
[root@server1 ~]
[root@server1 ~]
[root@server1 ~]
[root@server1 etc]
[root@server1~]
[root@server1 ~]
25 pid = run/php-fpm.pid
[root@server1 ~]
909 date.timezone = Asia/Shanghai
[root@server1 ~]
[root@server1 ~]
[root@server1 ~]
49 location / {
50 root html;
51 index index.php index.html index.htm;
52 }
71 location ~ .php$ {
72 root html;
73 fastcgi_pass 127.0.0.1:9000;
74 fastcgi_index index.php;
75
t_name;
76 include fastcgi.conf;
77 }
@@@@@@
[root@server1 ~]
-rw-r--r-- 1 root root 1034 Jan 13 16:06 /usr/local/lnmp/nginx/conf/fastcgi.conf
[root@server1 ~]