配色: 字号:
php7.0.4安装
2016-03-22 | 阅:  转:  |  分享 
  
[root@ysgceshi-1lnmp]#tarzxvfphp-7.0.4.tar.gz&&cdphp-7.0.4[root
@ysgceshi-1php-7.0.4]#cp-frp/usr/lib64/libldap/usr/lib/#需要l
ibmysqlclient.so。我的位置/alidata/server/mysql-5.6.21/lib[root@ysgces
hi-2php-7.0.4]#echo"/alidata/server/mysql-5.6.21/lib">>/etc/
ld.so.conf[root@ysgceshi-1php-7.0.4]#ldconfig[root@ysgceshi-1p
hp-7.0.4]#./configure--prefix=/usr/local/php7--exec-prefix=/us
r/local/php7--bindir=/usr/local/php7/bin--sbindir=/usr/local/ph
p7/sbin--includedir=/usr/local/php7/include--libdir=/usr/local/
php7/lib/php--mandir=/usr/local/php7/php/man--with-config-file-
path=/usr/local/php7/etc--with-mysql-sock=/tmp/mysql.sock--with
-mcrypt=/usr/include--with-mhash--with-openssl--with-mysql=sha
red,mysqlnd--with-mysqli=shared,mysqlnd--with-pdo-mysql=shared,
mysqlnd--with-gd--with-iconv--with-zlib--enable-zip--enable-
inline-optimization--disable-debug--disable-rpath--enable-shar
ed--enable-xml--enable-bcmath--enable-shmop--enable-sysvsem-
-enable-mbregex--enable-mbstring--enable-ftp--enable-gd-native
-ttf--enable-pcntl--enable-sockets--with-xmlrpc--enable-soap
--without-pear--with-gettext--enable-session--with-curl--with
-jpeg-dir--with-freetype-dir--enable-opcache--enable-fpm--ena
ble-fastcgi--without-gdbm--with-iconv-dir=/usr/local/--with-pn
g-dir--with-libxml-dir--enable-safe-mode--with-curlwrappers--
with-mcrypt--with-ldap--with-ldap-sasl--disable-fileinfo[root@
ysgceshi-1php-7.0.4]#makeZEND_EXTRA_LIBS=''-liconv''#清除上次的make命令
所产生的object文件(后缀为“.o”的文件)及可执行文件#[root@ysgceshi-1php-7.0.4]#make
clean[root@ysgceshi-1php-7.0.4]#makeexit0;-t/home/lnmp/php-7
.0.4/ext/json/php_json_scanner_defs.h--no-generation-date-bci-
o/home/lnmp/php-7.0.4/ext/json/json_scanner.c/home/lnmp/php-7.0
.4/ext/json/json_scanner.reBuildcomplete.Don''tforgettorun''ma
ketest''.[root@ysgceshi-2php-7.0.4]#maketest[root@ysgceshi-1p
hp-7.0.4]#makeinstallexit0;-t/home/lnmp/php-7.0.4/ext/json/p
hp_json_scanner_defs.h--no-generation-date-bci-o/home/lnmp/ph
p-7.0.4/ext/json/json_scanner.c/home/lnmp/php-7.0.4/ext/json/jso
n_scanner.reInstallingsharedextensions:/usr/local/php7/lib
/php/extensions/no-debug-non-zts-20151012/InstallingPHPCLIbina
ry:/usr/local/php7/bin/InstallingPHPCLImanpage:
/usr/local/php7/php/man/man1/InstallingPHPFPMbinary:/u
sr/local/php7/sbin/InstallingPHPFPMconfig:/usr/local/p
hp7/etc/InstallingPHPFPMmanpage:/usr/local/php7/php/man
/man8/InstallingPHPFPMstatuspage:/usr/local/php7/php/php/f
pm/Installingphpdbgbinary:/usr/local/php7/bin/Installi
ngphpdbgmanpage:/usr/local/php7/php/man/man1/Installing
PHPCGIbinary:/usr/local/php7/bin/InstallingPHPCGIma
npage:/usr/local/php7/php/man/man1/Installingbuildenviro
nment:/usr/local/php7/lib/php/build/Installingheaderfiles:
/usr/local/php7/include/php/Installinghelperprograms
:/usr/local/php7/bin/program:phpizeprogram:php-configI
nstallingmanpages:/usr/local/php7/php/man/man1/pa
ge:phpize.1page:php-config.1/home/lnmp/php-7.0.4/build/shtool
install-cext/phar/phar.phar/usr/local/php7/binln-s-fphar.ph
ar/usr/local/php7/bin/pharInstallingPDOheaders:/usr
/local/php7/include/php/ext/pdo/[root@ysgceshi-1php-7.0.4]#echo
$?0[root@ysgceshi-1php-7.0.4]#cpphp.ini-development/usr/loca
l/php7/etc/php.ini[root@ysgceshi-1php-7.0.4]#cp/usr/local/php7
/etc/php-fpm.conf.default/usr/local/php7/etc/php-fpm.conf[root@y
sgceshi-1php-7.0.4]#cp/usr/local/php7/etc/php-fpm.d/www.conf.d
efault/usr/local/php7/etc/php-fpm.d/www.conf[root@ysgceshi-1php
-7.0.4]#cp-R./sapi/fpm/php-fpm/etc/init.d/php-fpm#查看php-fpm是否
启动正常[root@ysgceshi-1php-7.0.4]#/usr/local/php7/sbin/php-fpm-t[
05-Mar-201622:25:07]NOTICE:configurationfile/usr/local/php7/
etc/php-fpm.conftestissuccessful~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[root@ysgceshi-1pdo_mysql]#ls/usr/local/php7/lib/php/extensions/no-debug-non-zts-20151012/mysqli.amysqli.soopcache.aopcache.sopdo_mysql.apdo_mysql.so
献花(0)
+1
(本文系亭下走马首藏)