cgi.fix_pathinfo=0 date.timezone = PRC
備註:php
使用下面編譯參數進行編譯時,須要先安裝相關依賴包mysql
# yum -y install gcc libxml2-devel openssl-devel libcurl-devel libjpeg-devel libpng-devel freetype-devel libc-client-devel libmcrypt-devel libxslt-develnginx
# ln -sv /usr/lib64/libc-client.so /usr/lib/libc-client.sosql
編譯參數列表:api
# ./configure --prefix=/usr/local/php7 \ --with-mcrypt \ --with-mhash \ --with-openssl \ --with-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --enable-mysqlnd \ --with-gd \ --with-iconv \ --with-zlib \ --enable-zip \ --enable-inline-optimization \ --disable-rpath \ --enable-xml \ --enable-bcmath \ --enable-shmop \ --enable-sysvsem \ --enable-mbregex \ --enable-mbstring \ --enable-gd-native-ttf \ --enable-pcntl \ --enable-sockets \ --with-xmlrpc \ --enable-soap \ --without-pear \ --with-curl \ --with-jpeg-dir \ --with-png-dir \ --with-iconv-dir \ --with-freetype-dir \ --with-libxml-dir \ --with-zlib-dir \ --with-gettext \ --without-gdbm \ --disable-fileinfo \ --with-fpm-user=nginx \ --with-fpm-group=nginx \ --with-kerberos \ --with-imap \ --with-imap-ssl \ --enable-exif \ --with-pcre-regex \ --enable-sysvshm \ --enable-calendar \ --enable-xmlreader \ --enable-xmlwriter \ --enable-static \ --with-xsl \ --enable-ftp \ --enable-opcache \ --enable-fpm \ --enable-session \ --disable-fileinfo
cgi.fix_pathinfo=0 date.timezone = PRC
user = nginx
group = nginx