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

php8.3版本编译安装过程

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2024-1-2 10:12:01 | 显示全部楼层 |阅读模式
安装基础插件:& K! W6 _' P# v: ]/ Y1 d
yum install -y gcc gcc-c++ autoconf automake zlib zlib-devel openssl openssl-devel pcre pcre-devel' }. a) @9 ?5 i$ ^1 p# Q

0 ]9 W2 M1 [: {+ ]' s解压php安装包:
) n$ O2 Y0 p% q% B) m7 s
' V( `" C3 _: J. ^% vtar -zxvf php-8.3.0.tar.gz3 x0 o2 N- ^6 s8 l8 |% u# I' W9 H
编译:
* ]. \- J! S+ Q4 [cd php-8.3.0/# k* o$ H. x1 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  ) q- X7 b" Y5 Q9 F: m" l
5 ~/ [3 l) \. ~
编译成功:' ^% U$ q; z+ o, _$ w6 B/ m% T' O
./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
! f5 v5 H1 m$ ]$ u5 p$ ~2 x! V
7 n+ o/ v1 f. U 198  yum install -y libxml2-devel9 N0 I- _# r- A/ D' x
  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
7 [, E1 V7 K/ u! }- q" u" F  200  yum isntall -y sqlite3
+ r& }! G, _8 P& a, L  201  yum install -y libsqlite3-devel
0 i" m* M1 ]" L8 F+ Y! H  202  yum install -y sqlite-devel% j) i$ B' `- y
  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 ! N; ?. f9 H$ W: ]' Y' L2 L
  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:41 , Processed in 0.021312 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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