|
|
安装基础插件:
- E* Z7 E- a T$ w0 `( q) |8 Jyum install -y gcc gcc-c++ autoconf automake zlib zlib-devel openssl openssl-devel pcre pcre-devel) i) l* r" k6 q- H( W; D
6 ^+ n8 a) M4 Z" @9 ]0 B
解压php安装包:
9 \1 }- f/ U2 x8 V6 t( g8 d0 o/ s I' g: W6 ^
tar -zxvf php-8.3.0.tar.gz2 f6 J( g, _6 x6 t. p4 C
编译:& ?0 U4 e+ J9 h- Q& p9 V
cd php-8.3.0/5 \; U6 `3 k- }. q! L- X
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/httpd/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --enable-fpm --enable-xml --enable-opcache --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --without-pear --with-gettext --with-mime-magic 7 d! j' Z& n. v/ O! e/ t, y3 G1 O
$ X+ `3 d) |/ j4 c; ^编译成功:
* R5 {( d9 ?* B7 d R, X2 b, S./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysqli=FOO --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --enable-fpm --enable-xml --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-force-cgi-redirect --enable-mysqlnd --with-pdo-mysql=mysqlnd --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --with-mime-magic --with-mysqli --with-pdo-mysqli |
|