-
- 依赖库
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 下载包
- 1
- 2
- 3
- . 开始编译./configure
./configure \
--prefix=/www/web/php \
--enable-inline-optimization \
--disable-debug \
--disable-rpath \
--enable-shared \
--enable-opcache \
--enable-fpm \
--with-fpm-user=www \
--with-fpm-group=www \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-gettext \
--enable-mbstring \
--with-iconv \
--with-mcrypt \
--with-mhash \
--with-openssl \
--enable-bcmath \
--enable-soap \
--with-libxml-dir \
--enable-pcntl \
--enable-shmop \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-sockets \
--with-curl \
--with-zlib \
--enable-zip \
--with-bz2
make && make 开启php
- 1
- 重新编译安装php,编译安装前先清除下:
- 1
-
查看编译配置
/www/web/php/bin/php -i |grep configure
配置文件可以到php的解压后的目录中复制一份 php.ini-development
- 1
- 2
- php.ini相关配置
扩展库
extension = memcache.so
extension = scws.so
extension = xapian.so
extension = mongo.so时区设置
date.timezone =PRC
或
1、在页头使用date_default_timezone_set()设置 date_default_timezone_set(‘PRC’); //东八时区 echo date(‘Y-m-d H:i:s’);2、在页头使用 ini_set(‘date.timezone’,’Asia/Shanghai’);
ubuntu下php5.6安装
最新推荐文章于 2024-04-17 01:03:10 发布