cxin 发表于 2018-11-17 10:28:50

apache中的php模块安装

  # make
  /bin/sh /usr/local/src/php-7.2.8/libtool --silent --preserve-dup-deps --mode=compile /usr/local/src/php-7.2.8/meta_ccld -Iext/date/lib -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DHAVE_TIMELIB_CONFIG_H=1 -Iext/date/ -I/usr/local/src/php-7.2.8/ext/date/ -DPHP_ATOM_INC -I/usr/local/src/php-7.2.8/include -I/usr/local/src/php-7.2.8/main -I/usr/local/src/php-7.2.8 -I/usr/local/src/php-7.2.8/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/local/mysql/include -I/usr/local/src/php-7.2.8/ext/sqlite3/libsqlite -I/usr/local/src/php-7.2.8/TSRM -I/usr/local/src/php-7.2.8/Zend -D_REENTRANT -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS -DZEND_SIGNALS -c /usr/local/src/php-7.2.8/ext/date/php_date.c -o ext/date/php_date.lo
  -----------------------省略过程------------------------------
  PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
  directorygraphiterator.inc
  clicommand.inc
  directorytreeiterator.inc
  invertedregexiterator.inc
  pharcommand.inc
  phar.inc
  Build complete.
  Don't forget to run 'make test'.
  # echo $?
  0
  # make install                      make install编译安装最后步骤
  Installing PHP SAPI module:       apache2handler
  /usr/local/httpd/build/instdso.sh SH_LIBTOOL='/usr/local/apr/build-1/libtool' libphp7.la /usr/local/httpd/modules
  /usr/local/apr/build-1/libtool --mode=install install libphp7.la /usr/local/httpd/modules/
  libtool: install: install .libs/libphp7.so /usr/local/httpd/modules/libphp7.so
  libtool: install: install .libs/libphp7.lai /usr/local/httpd/modules/libphp7.la
  libtool: warning: remember to run 'libtool --finish /usr/local/src/php-7.2.8/libs'
  chmod 755 /usr/local/httpd/modules/libphp7.so
  
  Installing shared extensions:   /usr/local/php7/lib/php/extensions/no-debug-zts-20170718/
  Installing PHP CLI binary:      /usr/local/php7/bin/
  Installing PHP CLI man page:      /usr/local/php7/php/man/man1/
  Installing phpdbg binary:         /usr/local/php7/bin/
  Installing phpdbg man page:       /usr/local/php7/php/man/man1/
  Installing PHP CGI binary:      /usr/local/php7/bin/
  Installing PHP CGI man page:      /usr/local/php7/php/man/man1/
  Installing build environment:   /usr/local/php7/lib/php/build/
  Installing header files:          /usr/local/php7/include/php/
  Installing helper programs:       /usr/local/php7/bin/
  program: phpize
  program: php-config
  Installing man pages:             /usr/local/php7/php/man/man1/
  page: phpize.1
  page: php-config.1
  Installing PEAR environment:      /usr/local/php7/lib/php/
   Archive_Tar    - installed: 1.4.3
   Console_Getopt - installed: 1.4.1
   Structures_Graph- installed: 1.1.1
   XML_Util       - installed: 1.4.2
   PEAR         - installed: 1.10.5
  Wrote PEAR system config file at: /usr/local/php7/etc/pear.conf
  You may want to add: /usr/local/php7/lib/php to your php.ini include_path
  /usr/local/src/php-7.2.8/build/shtool install -c ext/phar/phar.phar /usr/local/php7/bin
  ln -s -f phar.phar /usr/local/php7/bin/phar
  Installing PDO headers:         /usr/local/php7/include/php/ext/pdo/

页: [1]
查看完整版本: apache中的php模块安装