易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 6|回复: 2
收起左侧

php8.3版本编译安装过程

[复制链接]
发表于 2024-1-2 10:12:01 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
安装基础插件:& {& a1 Y7 ?4 b! R# S
yum install -y gcc gcc-c++ autoconf automake zlib zlib-devel openssl openssl-devel pcre pcre-devel+ i8 }1 P8 D; ~! E, Y
) M; E& O4 t. x  @1 W- K
解压php安装包:
) ^& A3 y! r3 T; N& L
) a7 \4 m. N/ @) }tar -zxvf php-8.3.0.tar.gz7 A  A3 g  n1 t. N
编译:3 c: f# I; J; [8 g! ?
cd php-8.3.0/$ e7 H$ o; K; K  Z* a( C
./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  - X6 M2 a+ w5 Z9 u/ p/ ?

$ o* `3 `1 n2 M$ H编译成功:2 F0 H' T5 [; A
./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
 楼主| 发表于 2024-1-2 10:23:51 | 显示全部楼层
yum install -y libcurl $ Y# \5 z! \: S8 R
1 `* A; q+ X* l  C) w& Q! @2 {
198  yum install -y libxml2-devel
1 r7 }8 R/ ]7 d$ c) ]  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 R! z, b5 f0 D) }9 W; `; Y5 E* i  200  yum isntall -y sqlite3
3 p1 M8 D5 @0 v3 Q% o8 I  201  yum install -y libsqlite3-devel/ s  _/ W/ u2 x" S4 V
  202  yum install -y sqlite-devel) s% W! c# d* t. x4 F7 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
8 x% V6 F9 K0 j& ?1 h  204  yum install -y libcurl
 楼主| 发表于 2024-1-2 10:25:03 | 显示全部楼层
yum install -y libcurl-devel
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:27 , Processed in 0.049225 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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