记录个人php编译安装
程序员文章站
2022-05-24 22:08:09
...
安装之前:
yum -y install curl-devel libxml2-devel libpng-devel libmcrypt-devel libjpeg-devel openssl-develwget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gztar -zxvf libmcrypt-2.5.7.tar.gzcd libmcrypt-2.5.7 ./configure --prefix=/usr/local/libmcryptmake && make install
下载php:
wget -c http://au1.php.net/get/php-5.6.8.tar.gz/from/this/mirror tar -zxvf mirror cd php-5.6.8/ ./configure --enable-fpm --enable-soap --enable-sockets --enable-zip --with-curl --with-mysql=/usr/local/mysql-5.5.41-linux2.6-x86_64 --with-mysqli=/usr/local/mysql-5.5.41-linux2.6-x86_64/bin/mysql_config --with-gd --with-openssl --with-pdo-mysql=/usr/local/mysql-5.5.41-linux2.6-x86_64 --prefix=/usr/local/php --with-iconv --with-mcrypt=/usr/local/libmcrypt make && make install
推荐阅读
-
PHP编译安装时常见错误解决办法
-
CentOS 7.x编译安装Nginx1.10.3+MySQL5.7.16+PHP5.2 5.3 5.4 5.5 5.6 7.0 7.1多版本全能环境
-
Centos7.2 编译安装PHP7.0.2的步骤
-
Linux 6 下编译安装 PHP 5.6实例详解
-
php编译安装常见错误大全和解决方法
-
ubuntu 编译安装php 5.3.3+memcache的方法
-
CentOS 6.4系统下编译安装LNMP和配置PHP环境具体步骤
-
CentOS 6.2编译安装Nginx1.0.14+MySQL5.5.22+PHP5.3.10步骤分享
-
php-7.3.6 编译安装过程
-
centos7上编译安装php7以php-fpm方式连接apache