centos7编译安装php
2016-12-22 20:04
609 查看
1.进Php.net官网下载tar.gz包,
wget http://..................
tar -zxvf php*.tar.gz
yum install gcc gcc++ libxml-devel
2.cd php解压包目录
3../configure --prefix=/usr/local/php5628 --enable-fpm
./configure --with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-openssl
./configure –prefix=/data/home/xingzheng/install/php-5.5.10 –with-libxml-dir=/data/xingzheng/install/libxml2-2.7.2 –enable-
sockets=shared –with-mysql=shared,mysqlnd
4.make && make install
5.打开防火墙:firewall-cmd --zone=public --add-port=80/tcp --permanent
systemctl restart firewalld.service
或直接 systemctl stop firewalld.service(不安全,只适合内网)
5.未完待续
wget http://..................
tar -zxvf php*.tar.gz
yum install gcc gcc++ libxml-devel
2.cd php解压包目录
3../configure --prefix=/usr/local/php5628 --enable-fpm
./configure --with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-openssl
./configure –prefix=/data/home/xingzheng/install/php-5.5.10 –with-libxml-dir=/data/xingzheng/install/libxml2-2.7.2 –enable-
sockets=shared –with-mysql=shared,mysqlnd
4.make && make install
5.打开防火墙:firewall-cmd --zone=public --add-port=80/tcp --permanent
systemctl restart firewalld.service
或直接 systemctl stop firewalld.service(不安全,只适合内网)
5.未完待续
相关文章推荐
- 开发人员学Linux(7):CentOS7编译安装PHP并配置PHP-FPM
- 在 CentOS7最小化 下的编译安装:Nginx 1.5.2 + PHP 5.5.7 + MySQL 5.6.10
- centos7 redis、php扩展编译与安装
- centos7上编译安装php7以php-fpm方式连接apache
- Centos6和Centos7上安装LAMP(PHP-FPM模式、编译安装)
- Centos7 编译安装 Nginx PHP Mariadb Memcached 扩展 ZendOpcache扩展 (实测 笔记 Centos 7.0 + Mariadb 10.1.9 + Nginx 1.9.9 + PHP 7.0.2)
- CentOS7编译安装Tengine(Nginx)+PHP5.6.0
- centos7编译安装php7.1
- 【安装zabbix3.4之2-php安装】centos7 安装php7.1 编译安装
- centos7 编译安装lamp php-7.1.0 +mysql-5.7.16 + httpd-2.4.23
- 开发人员学Linux(7):CentOS7编译安装PHP并配置PHP-FPM
- Centos7 编译安装 Nginx、MariaDB、PHP
- CentOS7编译安装LAMP(CentOS7、httpd-2.4、php-7.1、mariadb-10.2、memcached-3.0.4)
- centos7编译安装php7.1.11
- 开发人员学Linux(7):CentOS7编译安装PHP并配置PHP-FPM
- centos7 下php+mysql+php7编译安装
- centos7上编译安装php7,以php-fpm方式连接apache
- [伊达原创]FreeBSD8.0源码编译安装MYSQL5 APACHE2.2 PHP5.3.2
- LAMP搭建之三:php编译安装
- php 5.3.0 red hat enterpirse 编译安装全过程 包括出错,除错