找回密码
 注册
查看: 9|回复: 2

php8.3版本编译安装过程

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2024-1-2 10:12:01 | 显示全部楼层 |阅读模式
安装基础插件:
- _: V" q8 F# q: g6 u& m1 G0 M7 c! P) Zyum install -y gcc gcc-c++ autoconf automake zlib zlib-devel openssl openssl-devel pcre pcre-devel
; J6 U- n: N" P& Y; S3 Y. a3 i0 D$ v" @7 u) `5 E
解压php安装包:; b( ^) E2 q. k/ @# ~4 Y5 f5 J8 [
& [! q( L* R, ]; z2 J) k; G
tar -zxvf php-8.3.0.tar.gz( u; c2 w1 U. C4 _& C
编译:) ?& m! |! J' I8 t7 y3 ]
cd php-8.3.0/+ W8 Y9 o) d8 H, S' u
./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  . }0 }, V  M1 g, L8 T8 h$ w
  u+ N: @$ |5 ^. E
编译成功:7 G  q) c& Y9 M3 S% S: c2 e( A' X/ 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

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2024-1-2 10:23:51 | 显示全部楼层
yum install -y libcurl
, N( v, q! [$ {5 e0 U& V; G& T$ m' T4 L
198  yum install -y libxml2-devel0 j& s% N+ B. A8 F- H
  199  ./configure --prefix=/usr/local/php  --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
/ B5 n" t6 H- x2 M0 a( m. o7 W. t0 n- O  200  yum isntall -y sqlite35 e; u% L) @9 L# O
  201  yum install -y libsqlite3-devel! S# e) ?1 [  z. x7 s, u
  202  yum install -y sqlite-devel  i2 k' h2 E& {' ?
  203  ./configure --prefix=/usr/local/php  --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
0 S# z6 s* d/ h) y+ u  204  yum install -y libcurl

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2024-1-2 10:25:03 | 显示全部楼层
yum install -y libcurl-devel
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:48 , Processed in 0.016564 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表