38次课(安装PHP5、安装PHP7)
11.10/11.11/11.12 安装PHP5http://i2.运维网.com/images/blog/201802/28/f7fe59654561174d734f428ecc12861c.png
进入 /usr/local/str/如下
http://i2.运维网.com/images/blog/201802/28/372ff80ce8592e9cbf3787857a8e3a33.png
下载php安装包
http://i2.运维网.com/images/blog/201802/28/a3ab20cd8ec15c32cdd0f0eaaacb3904.png
查看PHP安装包的大小
http://i2.运维网.com/images/blog/201802/28/cb085fd8e040afa984553ee7cf04f72e.png
解压缩php安装包
http://i2.运维网.com/images/blog/201802/28/1596aa1cd698d5d3553bd1277bd3d622.png
进入解压缩好的php目录
http://i2.运维网.com/images/blog/201802/28/4c76341e5fb427f84e9d8f214f9594fd.png
安装php
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2.4/bin/apxs --with-config-file-path=/usr/local/php/etc --with-mysal=/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
http://i2.运维网.com/images/blog/201802/28/5bee7e45a2dffc1c97190dec51df7a41.png
安装过程中报错缺少库文件如下图
http://i2.运维网.com/images/blog/201802/28/1c62e90a67f4c94f368b354d0ec14774.png
解决缺少的库文件如下图
http://i2.运维网.com/images/blog/201802/28/3ce4e6e7d6fe3d80862a9661a0ddc500.png
下载缺少的库
http://i2.运维网.com/images/blog/201802/28/9a9be64dd97cd40772ef42c64ef89260.png
再次安装php
http://i2.运维网.com/images/blog/201802/28/f4215f4cf6867d997f8f665e67b7299a.png
再次报错缺少库,库下载
http://i2.运维网.com/images/blog/201802/28/f2b1c871e12e4ce6e6676bd3b17a3c54.png
安装完后继续安装php
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2.4/bin/apxs --with-config-file-path=/usr/local/php/etc --with-mysal=/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
又出现一个新的错误,下载缺少包如下图
http://i2.运维网.com/images/blog/201802/28/0f951041461a2cc0df76e7fd80421d85.png
再次安装php
/configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2.4/bin/apxs --with-config-file-path=/usr/local/php/etc --with-mysal=/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
错误包如下
http://i2.运维网.com/images/blog/201802/28/af3d9f6e6bbffa4b3be7449a649d4c6c.png
再次安装php
/configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2.4/bin/apxs --with-config-file-path=/usr/local/php/etc --with-mysal=/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
再次报错如下
http://i2.运维网.com/images/blog/201802/28/78abf140041eb1b66d2d1f466725439f.png
再次安装php
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2.4/bin/apxs --with-config-file-path=/usr/local/php/etc --with-mysal=/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
报错如下
http://i2.运维网.com/images/blog/201802/28/55690791491f01a761fa814fb59ffc95.png
继续安装php
报错如下
http://i2.运维网.com/images/blog/201802/28/f6126d927815ebc53b80a5b10e1b704d.png
http://i2.运维网.com/images/blog/201802/28/0aad446e4fae216f69b1cbb2d0049520.png
继续安装php
安装完成后装make
http://i2.运维网.com/images/blog/201802/28/214da30d46e2049205d5136c5ed014fd.png
最后一步
http://i2.运维网.com/images/blog/201802/28/15ce669cb600243fe5343ad6c5b5dec4.png
http://i2.运维网.com/images/blog/201803/01/e083b6a24589431bc77b8ac217f17965.png
http://i2.运维网.com/images/blog/201802/28/e0e551271dab9a7a0e78e755989b8a15.png
核心的二进制文件
http://i2.运维网.com/images/blog/201803/01/860c54fac08b216a9e99656881442545.png
查看文件大小
http://i2.运维网.com/images/blog/201803/01/efe3ace2d59152a7325b6c265a5ebbf6.png
http://i2.运维网.com/images/blog/201803/01/e8d1a2ef63558a7ade69119604c8f14e.png
查看php加载模块都有哪些
http://i2.运维网.com/images/blog/201803/01/d0c4b969d3b14533591021ea7367a5dd.png
http://i2.运维网.com/images/blog/201807/31/f666396e419531988cce3e6c6e950db1.png
http://i2.运维网.com/images/blog/201807/31/b8a96788b214439baef7616401012bf6.png
11.13 安装PHP7
http://i2.运维网.com/images/blog/201803/01/0ef956779fe47a9a0791e4221cdd389d.png
php中mysql,mysqli,mysqlnd,pdo到底是什么
http://blog.csdn.net/u013785951/article/details/60876816
查看编译参数
http://ask.apelearn.com/question/1295
页:
[1]