php5.6.3 源码安装

php5.6.3 源码安装
1 安装依赖库

yum install -y autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libpng libpng-devel libxml2 libxml2-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel curl curl-devel gdbm-devel db4-devel libXpm-devel libX11-devel gd-devel gmp-devel readline-devel libxslt-devel expat-devel php-mcrypt libmcrypt libmcrypt-devel

2 下载源码

https://www.php.net/releases/
链接:https://pan.baidu.com/s/1C0kf_i7ObTXUAgWUu0piiw 密码:m526

3 安装
下载后解压源码,进入目录,执行如下命令安装。

./configure --prefix=/usr/local/php/ --localstatedir=/usr/local/var --sysconfdir=/usr/local/php/ --with-config-file-path=/usr/local/php/ --with-config-file-scan-dir=/usr/local/php/ --with-pear=/usr/local/php/pear --enable-bcmath --enable-calendar --enable-dba --enable-exif --enable-ftp --enable-fpm --enable-intl --enable-mbregex --enable-mbstring --enable-mysqlnd --enable-pcntl --enable-phpdbg --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-zip --with-curl --with-fpm-user=www --with-fpm-group=www --with-freetype-dir=/usr/local/freetype --with-gd --with-gettext=/usr/local/gettext --with-jpeg-dir=/usr/local/jpeg --with-mcrypt --with-mhash --with-mysqli=mysqlnd --with-mysql=mysqlnd --with-openssl --with-pdo-mysql=mysqlnd --with-pic --with-png-dir=/usr/local/libpng --with-xmlrpc

4 安装扩展
根据自己的项目需要 安装phpredis等扩展。

posted @   walkersss  阅读(138)  评论(0编辑  收藏  举报
编辑推荐:
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· .NET Core 托管堆内存泄露/CPU异常的常见思路
阅读排行:
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· DeepSeek “源神”启动!「GitHub 热点速览」
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· NetPad:一个.NET开源、跨平台的C#编辑器
点击右上角即可分享
微信分享提示