`

nginx php环境搭建

    博客分类:
  • PHP
 
阅读更多
nginx配置
location ~ \.php$ {
            root           html;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }


php 安装
./configure --prefix=/opt/php5 --with-config-file-path=/opt/php5/lib --with-mysql=mysqlnd --with-pdo-mysql --with-mysql-sock=/var/lib/mysql/mysql.sock --with-libxml-dir --enable-ftp --enable-sockets --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-zlib-dir --enable-gd-native-ttf --enable-magic-quotes --with-iconv --enable-mbstring=all --disable-cgi --with-openssl --with-mcrypt --enable-bcmath --enable-calendar --enable-exif --enable-libxml --with-bz2 --with-curl --with-xmlrpc --with-gettext --disable-cli --disable-debug --enable-zend-multibyte --with-mhash --enable-pcntl --enable-sysvsem --enable-inline-optimization --enable-soap --disable-ipv6 --enable-fpm
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics