zoukankan      html  css  js  c++  java
  • PHP编译安装

    http://www.oschina.net/question/17_10674

    php编译安装参数详解

    http://www.cnblogs.com/kristain/articles/3809243.html

    php编译安装常见问题

    1、下载

    下载地址:http://php.net/downloads.php

    2、编译安装

    # 预装软件
    # yum
    install libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel
    # ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/bin/mysql_config --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap --without-pear --with-zlib --enable-pdo --with-pdo-mysql

    # 精简版配置
    # ./configure
    --prefix=/usr/local/php --enable-shared --with-libxml-dir --with-gd --with-openssl --enable-mbstring --with-mcrypt --with-mysqli --with-mysql --enable-opcache --enable-mysqlnd --enable-zip --with-zlib-dir --with-pdo-mysql --with-jpeg-dir --with-freetype-dir --with-curl --without-pdo-sqlite --without-sqlite3 --enable-fpm

    #
    make # make install

    3、配置nginx 支持php

    //修改nginx配置文件,添加fastcgi支持

    # vi /etc/nginx/nginx.conf
    ### /etc/nginx/nginx.conf
    index index.php index.html index.htm;
    //加入index.php location ~ .php$ {   root /usr/share/nginx/html;   fastcgi_pass 127.0.0.1:9000;   fastcgi_index index.php;   fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;   include fastcgi_params; }
  • 相关阅读:
    PHP部署调优-自动部署工具
    set容器与map容器的简单应用
    POJ2431 优先队列+贪心
    离散数学交并补运算、差运算、异或运算的实现--biaobiao88
    构造命题公式的真值表--biaobiao88
    队列的简单使用
    二叉树的查找(前序、中序、后序、层序遍历)--biaobiao88
    A
    取整
    JavaScript对象
  • 原文地址:https://www.cnblogs.com/iamdoufu/p/4825390.html
Copyright © 2011-2022 走看看