Linux-rhel6.4编译安装PHP, Nginx与PHP连接

  




[root@kurolz  ~] #, wget  http://de2.php.net/get/php-5.5.38.tar.gz/from/this/mirror    (root@kurolz  ~) #, tar  -zxvf  php-5.5.38.tar.gz   [root@kurolz  php-5.5.38] #,。/configure ——prefix=/usr/地方/php-5.5.0 ——with-config-file-path=/usr/地方/php-5.5.0/etc ——with-bz2 ——with-curl ——enable-ftp ——enable-sockets ——disable-ipv6 ——with-gd ——with-jpeg-dir=/usr/local ——with-png-dir=/usr/local ——with-freetype-dir=/usr/local ——enable-gd-native-ttf ——with-iconv-dir=/usr/local ——enable-mbstring ——enable-calendar ——with-gettext ——with-libxml-dir=/usr/local ——with-zlib ——with-pdo-mysql=mysqlnd ——with-mysqli=mysqlnd ——使用mysql=mysqlnd ——enable-dom ——enable-xml ——enable-fpm  with-libdir=lib64      ……   creating 主要/internal_functions_cli.c   +--------------------------------------------------------------------+   |,许可证:,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,|   |,却;能够software  is  subject 用,PHP 许可,,available 却;能够拷贝,,,|   |,distribution 从而file 许可只拷贝,By  continuing 却;能够installation  |   |,过程,你断开连接;bound  by 从而terms  of 却;能够license 协议只,,,|   |,If 你;do  not  agree  with 从而terms  of 却;能够许可证,你must  abort  |   |,从而installation  process  at 却;能够只点,,,,,,,,,,,,,,,,,,,,,,,,,,|   +--------------------------------------------------------------------+   Thank 你for  using  PHP。   config.status: creating  php5.spec   config.status: creating 主要/build-defs.h   config.status: phpize creating 脚本/config.status:/男士一/phpize.1 creating 脚本/php-config config.status: creating 脚本   config.status:/男士一/php-config.1 creating 脚本   config.status: creating  sapi/cli/php.1   config.status: creating  sapi/fpm/php-fpm.conf   config.status: creating  sapi/fpm/init.d.php-fpm   config.status: creating  sapi/fpm/php-fpm.service   config.status: creating  sapi/fpm/php-fpm.8   config.status: creating  sapi/fpm/status.html   config.status: creating  sapi/cgi/php-cgi.1   config.status: creating  ext/phar/phar.1   config.status: creating  ext/phar/phar.phar.1   config.status: creating 主要/php_config.h   config.status: executing  default 命令      (root@kurolz  ~) #,   (root@kurolz  ~) #, make 安装   (root@kurolz  ~) #, cd  php-5.5.38   [root@kurolz  php-5.5.38] #, cp  php.ini-production /usr/地方/php-5.5.0/etc/php . ini   [root@kurolz  php-5.5.38] #, cd /usr/地方/php-5.5.0/etc/(root@kurolz 等等)#,cp  php-fpm.conf.default  php-fpm.conf   (root@kurolz 等等)#,cd /usr/地方/php-5.5.0/sbin   [root@kurolz  sbin] #,。/php-fpm


[root@kurolz  ~] #, vim /usr/地方/nginx/conf/nginx.conf   ,,,,server  {,,   ,,,,,,,,,,,listen ,,,,,,,, 80;   ,,,,,,,,,,,server_name , localhost,,,   ,,,,,,,,,,,的位置/,{   ,,,,,,,,,,,,,,,root ,, html;   ,,,,,,,,,,,,,,,index , index.html  index . php。   ,,,,,,,,,,,}   ,,,,,,,,,,.......   ,,,,,,,,,,,的位置~,\美元。php, {   ,,,,,,,,,,,,,,,root ,, html;   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null

Linux-rhel6.4编译安装PHP, Nginx与PHP连接