十周第一次课(2月28日)
11.10/11.11/11.12 安装PHP5

blob.png

cd /usr/local/src

wget http://cn2.php.net/distributions/php-5.6.30.tar.gz

tar zxvf 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

configure.

blob.png

blob.png

blob.png


make

blob.png

blob.png

make install

blob.png

cp php.ini-production /usr/local/php/etc/php.ini

blob.png 查看模块

blob.png





11.13 安装PHP7

blob.png


cd /usr/local/src/

wget http://cn2.php.net/distributions/php-7.1.6.tar.bz2

tar jxvf 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


blob.png


blob.png

blob.png

blob.png

blob.png



php中mysql,mysqli,mysqlnd,pdo到底是什么   spacer.gifhttp://blog.csdn.net/u013785951/article/details/60876816 

查看编译参数  spacer.gifhttp://ask.apelearn.com/question/1295