ubuntu14.04:php7+apache2+mysql
apache2:
sudo apt-get install apache2 apache2-dev
service apache2 start
mysql:
sudo apt-get install mysql-server mysql-client
service mysql start
php7:
sudo apt-get install libjpeg-dev libpng12-dev libcurl4-openssl-dev libmcrypt-dev mcrypt libcurl4-openssl-dev pkg-config
tar -xvf php-7.0.2.tar.gz
cd php-7.0.2
./configure --prefix=/opt/php-7.0.2 --with-config-file-path=/opt/php-7.0.2/etc --with-iconv-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr/ --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --enable-mbregex --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl -with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-curl --with-apxs2=/usr/bin/apxs --with-mysqli --with-pdo-mysql --enable-mbstring
add "<FilesMatch "\.ph(p[2-6]?|tml)$"> SetHandler application/x-httpd-php</FilesMatch>" to apache2.conf
service apache2 graceful
posted on 2016-02-01 02:46 yeah,youcandoit 阅读(238) 评论(0) 编辑 收藏 举报