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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
./configure \
--prefix=/usr/local/services/php7 \
--with-config-file-path=/usr/local/services/php7/etc \
--with-config-file-scan-dir=/usr/local/services/php7/etc/php.d \
--with-zlib \
--with-zlib-dir=../zlib-1.2.11/ \
--with-freetype-dir \
--with-fpm-user=nobody \
--with-fpm-group=nobody \
--with-mysql-sock \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-pdo-sqlite \
--with-iconv \
--with-iconv-dir=../libiconv-1.14/ \
--with-jpeg-dir \
--with-png-dir \
--with-libxml-dir \
--with-xmlrpc \
--with-openssl \
--with-openssl-dir=../openssl-1.0.2k/ \
--with-mhash \
--with-pcre-regex \
--with-sqlite3 \
--with-bz2 \
--with-curl \
--with-cdb \
--with-pcre-dir=../pcre-8.40/ \
--with-gd \
--with-freetype-dir \
--with-gettext \
--with-gmp \
--with-mhash \
--with-libmbfl \
--with-onig \
--with-readline \
--with-pear \
--with-xmlrpc \
--with-xsl \
--with-gettext \
--with-kerberos \
--with-fpm-systemd \
--enable-pdo \
--enable-bcmath \
--enable-fpm \
--enable-mysqlnd \
--enable-xmlreader \
--enable-xmlwriter \
--enable-calendar \
--enable-shmop \
--enable-static \
--enable-soap \
--enable-xml \
--enable-json \
--enable-mbstring \
--enable-mbregex \
--enable-mbregex-backtrack \
--enable-dom \
--enable-exif \
--enable-fileinfo \
--enable-filter \
--enable-sysvsem \
--enable-inline-optimization \
--enable-pcntl \
--enable-sockets \
--enable-ftp \
--enable-intl \
--enable-zip \
--enable-session \
--enable-simplexml \
--enable-sysvmsg \
--enable-sysvshm \
--enable-gd-jis-conv \
--enable-wddx \
--enable-mysqlnd-compression-support \
--enable-opcache \
--disable-debug \
--disable-ipv6 \
--disable-rpath \
--disable-fileinfo
失效的参数:
--with-mcrypt \
--enable-gd-native-ttf \
--enable-static 生成静态链接库
--enable-shared 生成动态链接库
执行编译:
make -j 16 && make install 或
make ZEND_EXTRA_LIBS='-liconv' -j 8 && make install
php-ini:
源码包里面有配置文件:
php.ini-development 测试开发环境
php.ini-production 生产环境
|