码迷,mamicode.com
首页 > 其他好文 > 详细

学习三十六

时间:2018-04-17 11:49:53      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:linux学习

11.10/11.11/11.12 安装PHP5
11.13 安装PHP7
php中mysql,mysqli,mysqlnd,pdo到底是什么 http://blog.csdn.net/u013785951/article/details/60876816
查看编译参数 http://ask.apelearn.com/question/1295
安装php5
PHP官网www.php.net
当前主流版本为5.6/7.1
cd /usr/local/src/
wget http://cn2.php.net/distributions/php-5.6.30.tar.gz
tar zxf php-5.6.30.tar.gz
cd php-5.6.30
./configure --prefix=/usr/local/php --with- apxs2=/usr/local/apache2.4/bin/apxs --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-pdo-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-bz2 --with-openssl --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-mbstring --enable-sockets --enable-exif
make && make install
cp php.ini-production /usr/local/php/etc/php.ini
此处有可能会报错
技术分享图片
[root@localhost php-5.6.30]# pa aux |grep libxml2
-bash: pa: 未找到命令
[root@localhost php-5.6.30]# yum install -y libxml2
[root@localhost php-5.6.30]# pa aux |grep libxml2
-bash: pa: 未找到命令
[root@localhost php-5.6.30]# yum install -y libxml2
已加载插件:fastestmirror
参考https://www.cnblogs.com/happyhotty/articles/2539864.html
或许会出现下列错误
技术分享图片
yum install -y openssl openssl-devel
还有以下错误
技术分享图片
yum install-y bzip2 bzip2-devel
还有
技术分享图片
yum -y install libjpeg-devel
技术分享图片
yum install libpng
yum install libpng-devel
技术分享图片
yum -y install freetype-devel
技术分享图片
详见:https://blog.csdn.net/tanga842428/article/details/76861462
技术分享图片
技术分享图片
vi /usr/local/apache2.4/conf/http.conf
查看ahachp的配置文件
/usr/local/apache2.4/bin/apachectl -M
查看apache加载的哪些模块
安装PHP7
cd /usr/local/src/
wget http://cn2.php.net/distributions/php-7.1.6.tar.bz2
tar jxf php-7.1.6.tar.bz2
cd php-7.1.6
./configure --prefix=/usr/local/php7 --with-apxs2=/usr/local/apache2.4/bin/apxs --with-config-file-path=/usr/local/php7/etc --with-pdo-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-bz2 --with-openssl --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-mbstring --enable-sockets --enable-exif
make && make install
ls /usr/local/apache2.4/modules/libphp7.so
cp php.ini-production /usr/local/php7/etc/php.ini
/usr/local/apache2.4/bin/apachectl -M
查看apache加载的哪些模块
vim /usr/local/apache2.4/conf/httpd.conf
更改apache配置文件

学习三十六

标签:linux学习

原文地址:http://blog.51cto.com/13583139/2104176

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!