1. 程式人生 > >十周第一次課(2月28日)

十周第一次課(2月28日)

linux

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

技術分享圖片

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.

技術分享圖片

技術分享圖片

技術分享圖片


make

技術分享圖片

技術分享圖片

make install

技術分享圖片

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

技術分享圖片 查看模塊

技術分享圖片





11.13 安裝PHP7

技術分享圖片


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


技術分享圖片


技術分享圖片

技術分享圖片

技術分享圖片

技術分享圖片



php中mysql,mysqli,mysqlnd,pdo到底是什麽 技術分享圖片http://blog.csdn.net/u013785951/article/details/60876816

查看編譯參數 技術分享圖片http://ask.apelearn.com/question/1295


十周第一次課(2月28日)