PHP+Ngin 安装日记
wget http://cn.php.net/distributions/php-7.0.17.tar.gz
wget http://jp2.php.net/distributions/php-7.1.7.tar.gz
wget http://nginx.org/download/nginx-1.12.1.tar.gz
启动php 内置web server服务
/usr/local/php7/bin/php -S 0.0.0.0:80
/usr/local/php7/sbin/php-fpm
Core date libxml openssl pcre sqlite3 zlib ctype curl dom fileinfo filter ftp
gd hash iconv json mbstring mcrypt SPL pcntl PDO session pdo_sqlite standard posix
Reflection Phar SimpleXML sockets mysqlnd mysqli tokenizer xml xmlreader xmlwriter zip pdo_mysql cgi-fcgi
Zend OPcache
Core date ereg libxml openssl pcre sqlite3 zlib bcmath ctype curl dom filter
ftp gd gettext hash iconv intl json mbstring mcrypt SPL session standard pcntl
mysqlnd PDO pdo_mysql pdo_sqlite Phar posix Reflection mysqli shmop SimpleXML soap sockets mysql
sysvsem tokenizer xml xmlreader xmlrpc xmlwriter xsl zip cgi-fcgi mhash Zend Guard Loader
PHP7 安装参数
PHP默认会启用以下模块
Core
ctype
date
dom
fileinfo
filter
hash
iconv
json
libxml
pcre
PDO
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
新的
./configure --prefix=/usr/local/php7 --with-config-file-path=/usr/local/php7/etc --enable-fpm --enable-mysqlnd --enable-exif --enable-intl --enable-mbstring --enable-shmop --enable-soap --enable-sockets --enable-ftp --enable-pcntl --enable-zip --with-pdo-mysql --with-gd --with-zlib --with-curl --with-mcrypt --with-openssl --with-mysqli
旧的
./configure --prefix=/usr/local/php7 --with-config-file-path=/usr/local/php7/etc --enable-fpm --enable-mysqlnd --enable-mbstring --enable-opcache --enable-sockets --enable-ftp --enable-pcntl --enable-zip --with-pdo-mysql --with-gd --with-zlib --with-curl --with-mcrypt --with-openssl --with-mysqli
Nginx 安装参数
./configure --prefix=/usr/local/Nginx --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-pcre --with-http_v2_module --with-http_sub_module
/usr/local/Nginx/sbin/nginx -v

浙公网安备 33010602011771号