[メモ] PHP7インストール


# wget http://jp2.php.net/get/php-7.0.0.tar.gz/from/this/mirror -O php-7.0.0.tar.gz
# tar zxvf php-7.0.0
# vi configure_personal.sh

---ここから---
#!/bin/sh

CC=gcc CFLAGS="-fPIC" \
./configure \
 --with-libdir=lib64 \
 --with-apxs2=/bin/apxs \
 --enable-cli \
 --disable-debug \
 --with-pic \
 --disable-rpath \
 --enable-inline-optimization \
 --with-bz2 \
 --with-db4=/usr \
 --with-curl \
 --with-mcrypt=/usr/local \
 --with-exec-dir=/usr/local/bin \
 --with-config-file-path=/usr/local/etc \
 --with-config-file-scan-dir=/usr/local/etc/php.d \
 --with-freetype-dir=/usr \
 --with-png-dir=/usr \
 --with-gd \
 --enable-gd-native-ttf \
 --with-gettext \
 --with-gmp \
 --with-iconv \
 --with-jpeg-dir=/usr \
 --with-openssl \
 --with-pspell \
 --with-regex=system \
 --with-libxml-dir=/usr \
 --with-libexpat-dir=/usr \
 --with-pcre-dir=/usr \
 --with-pcre-regex=/usr \
 --with-zlib \
 --with-layout=GNU \
 --enable-bcmath \
 --enable-exif \
 --enable-ftp \
 --enable-magic-quotes \
 --enable-safe-mode \
 --enable-sockets \
 --enable-sysvsem \
 --enable-sysvshm \
 --enable-wddx \
 --enable-mbstring \
 --enable-mbregex \
 --with-pear=/usr/share/pear \
 --with-kerberos=/usr/kerberos \
 --with-ldap=shared \
 --with-pgsql=shared \
 --with-pdo-pgsql=shared \
 --enable-bcmath \
 --enable-shmop \
 --enable-soap \
 --enable-calendar \
 --enable-opcache=no
---ここまで---

# sh configure_personal.sh 2>&1 | tee install_151204.log

【略】

configure: WARNING: unrecognized options: --with-exec-dir, --with-regex, --enable-magic-quotes, --enable-safe-mode


# make

【略】


Build complete.
Don't forget to run 'make test'.


# make test
# make install

---ここから---

Installing PHP SAPI module:       apache2handler
/usr/lib64/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib64/apr-1/build/libtool' libphp7.la /usr/lib64/httpd/modules
/usr/lib64/apr-1/build/libtool --mode=install install libphp7.la /usr/lib64/httpd/modules/
libtool: install: install .libs/libphp7.so /usr/lib64/httpd/modules/libphp7.so
libtool: install: install .libs/libphp7.lai /usr/lib64/httpd/modules/libphp7.la
libtool: install: warning: remember to run `libtool --finish /root/src/php-7.0.0/libs'
chmod 755 /usr/lib64/httpd/modules/libphp7.so
[activating module `php7' in /etc/httpd/conf/httpd.conf]
Installing shared extensions:     /usr/local/lib/php/20151012/
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/share/man/man1/
Installing phpdbg binary:         /usr/local/bin/
Installing phpdbg man page:       /usr/local/share/man/man1/
Installing PHP CGI binary:        /usr/local/bin/
Installing PHP CGI man page:      /usr/local/share/man/man1/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/share/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/share/pear/
[PEAR] Archive_Tar    - upgraded:  1.4.0
[PEAR] Console_Getopt - upgraded:  1.4.1
pear/pear dependency package "pear/Structures_Graph" downloaded version 1.1.1 is not the recommended version 1.0.4, but may be compatible, use --force to install
pear/Structures_Graph cannot be installed, conflicts with installed packages
[PEAR] Structures_Graph- upgraded:  1.1.1
pear/pear dependency package "pear/XML_Util" downloaded version 1.3.0 is not the recommended version 1.2.3, but may be compatible, use --force to install
pear/XML_Util cannot be installed, conflicts with installed packages
[PEAR] XML_Util       - upgraded:  1.3.0
[PEAR] PEAR           - upgraded:  1.10.1
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/share/pear to your php.ini include_path
/root/src/php-7.0.0/build/shtool install -c ext/phar/phar.phar /usr/local/bin
ln -s -f phar.phar /usr/local/bin/phar
Installing PDO headers:          /usr/local/include/php/ext/pdo/
---ここまで---

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は 必須項目です。

管理者が承認次第、表示されます。

*