CONTENTS


Lastmodified 2015-08-25 (火) 14:51:49


PHP55 のバージョン変更が phpinfo() に反映されない

http://qiita.com/armorik83/items/bccb98a3e34e957894f2

http://d.hatena.ne.jp/nakamura001/20131218/1387354549

http://furudate.hatenablog.com/entry/2013/12/20/111259

PHP52 を PHP54にバージョンアップするとき、

# portupgrade -Rf --batch lang/php5

などとしてインストールすると、標準出力上での # php -v のバージョンは変わっているのに、phpinfo() の表示は古いまま、ということが有ります。

# portupgrade -rf --batch lang/php5

こちらを実行すると phpinfo()での表示も新しくなりますが、デフォルトインストールディレクトリな phpMyAdmin や Joomla があれば、上書きインストールさるので要注意!

       ! lang/php5 (php5-5.4.44)       (interrupted by user)
       * math/php5-bcmath (php5-bcmath-5.4.44)
       * archivers/php5-bz2 (php5-bz2-5.4.44)
       * misc/php5-calendar (php5-calendar-5.4.44)
       * textproc/php5-ctype (php5-ctype-5.4.44)
       * ftp/php5-curl (php5-curl-5.4.44)
       * databases/php5-dba (php5-dba-5.4.44)
       * textproc/php5-dom (php5-dom-5.4.44)
       * graphics/php5-exif (php5-exif-5.4.44)
       * security/php5-filter (php5-filter-5.4.44)
       * ftp/php5-ftp (php5-ftp-5.4.44)
       * graphics/php5-gd (php5-gd-5.4.44)
       * devel/php5-gettext (php5-gettext-5.4.44)
       * math/php5-gmp (php5-gmp-5.4.44)
       * security/php5-hash (php5-hash-5.4.44)
       * converters/php5-iconv (php5-iconv-5.4.44)
       * mail/php5-imap (php5-imap-5.4.44)
       * databases/php5-interbase (php5-interbase-5.4.44)
       * devel/php5-json (php5-json-5.4.44)
       * net/php5-ldap (php5-ldap-5.4.44)
       * converters/php5-mbstring (php5-mbstring-5.4.44)
       * security/php5-mcrypt (php5-mcrypt-5.4.44)
       * databases/php5-mssql (php5-mssql-5.4.44)
       * databases/php5-mysql (php5-mysql-5.4.44)
       * databases/php5-mysqli (php5-mysqli-5.4.44)
       * databases/php5-odbc (php5-odbc-5.4.44)
       * security/php5-openssl (php5-openssl-5.4.44)
       * devel/php5-pcntl (php5-pcntl-5.4.44)
       * print/pecl-pdflib (pecl-pdflib-3.0.4)
       * databases/php5-pdo (php5-pdo-5.4.44)
       * databases/php5-pdo_dblib (php5-pdo_dblib-5.4.44)
       * databases/php5-pdo_firebird (php5-pdo_firebird-5.4.44)
       * databases/php5-pdo_mysql (php5-pdo_mysql-5.4.44)
       * databases/php5-pdo_odbc (php5-pdo_odbc-5.4.44)
       * databases/php5-pdo_pgsql (php5-pdo_pgsql-5.4.44)
       * databases/php5-pdo_sqlite (php5-pdo_sqlite-5.4.44)
       * databases/php5-pgsql (php5-pgsql-5.4.44)
       * archivers/php5-phar (php5-phar-5.4.44)
       * sysutils/php5-posix (php5-posix-5.4.44)
       * www/php5-session (php5-session-5.4.44)
       * textproc/php5-pspell (php5-pspell-5.4.44)
       * devel/php5-readline (php5-readline-5.4.44)
       * devel/php5-shmop (php5-shmop-5.4.44)
       * textproc/php5-simplexml (php5-simplexml-5.4.44)
       * net-mgmt/php5-snmp (php5-snmp-5.4.44)
       * net/php5-soap (php5-soap-5.4.44)
       * net/php5-sockets (php5-sockets-5.4.44)
       * databases/php5-sqlite3 (php5-sqlite3-5.4.44)
       * databases/php5-sybase_ct (php5-sybase_ct-5.4.44)
       * devel/php5-sysvmsg (php5-sysvmsg-5.4.44)
       * devel/php5-sysvsem (php5-sysvsem-5.4.44)
       * devel/php5-sysvshm (php5-sysvshm-5.4.44)
       * www/php5-tidy (php5-tidy-5.4.44)
       * devel/php5-tokenizer (php5-tokenizer-5.4.44)
       * textproc/php5-xml (php5-xml-5.4.44)
       * textproc/php5-wddx (php5-wddx-5.4.44)
       * textproc/php5-xmlreader (php5-xmlreader-5.4.44)
       * net/php5-xmlrpc (php5-xmlrpc-5.4.44)
       * textproc/php5-xmlwriter (php5-xmlwriter-5.4.44)
       * textproc/php5-xsl (php5-xsl-5.4.44)
       * archivers/php5-zip (php5-zip-5.4.44)
       * archivers/php5-zlib (php5-zlib-5.4.44)
       * lang/php5-extensions (php5-extensions-1.7)
       * www/pecl-APC (pecl-APC-3.1.14_1)
       * databases/phpmyadmin (phpMyAdmin-4.4.14)
  981  5:05    php -i
  982  5:10    cd /usr/ports/lang/php5
  983  5:10    make config
  984  5:12    make deinstall
  985  5:12    portinstall -r lang/php5
  986  5:14    apachectl restart
  987  5:14    php -v
  988  5:15    pkg info
  989  5:27    portupgrade -PP lang/php5
  990  5:28    pnp -v
  991  5:28    php -v
  992  5:29    portupgrade -R lang/php5
  993  5:36    php -v
  994  5:36    apachectl restart
  995  5:37    portupgrade -R php54
  996  5:37    portupgrade php54
  997  5:38    portupgrade -R lang/php5
  998  5:38    portupgrade -Rf lang/php5
  999  5:40    portupgrade -Rf --batch lang/php5
 1000  5:51    reboot
 1001  5:54    php -v
 1002  5:54    portupgrade -rf --batch lang/php5
 1003  6:13    apachectl restart
 1004  6:15    cd /usr/local/www/
 1005  6:15    ll
 1006  6:16    cp -rp joomla31_bk joomla31
 1007  6:17    apachectl restart
 1008  6:17    apachectl restart
 1009  6:21    php -v
 1010  6:23    php -v
 1011  6:23    history

console # php -i

piano2nd.smb.net

mbstring

Multibyte Support => enabled
Multibyte string engine => libmbfl
HTTP input encoding translation => disabled
libmbfl version => 1.3.2

mbstring extension makes use of "streamable kanji code filter and converter",
which is distributed under the GNU Lesser General Public License version 2.1.

Multibyte (japanese) regex support => enabled
Multibyte regex (oniguruma) version => 4.7.1

Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => pass => pass
mbstring.http_output => pass => pass
mbstring.http_output_conv_mimetypes => ^(text/|application/xhtml\+xml) => ^(text/|application/xhtml\+xml)
mbstring.internal_encoding => no value => no value
mbstring.language => neutral => neutral
mbstring.strict_detection => Off => Off
mbstring.substitute_character => no value => no value

mail.smb.net

mbstring

Multibyte Support => enabled
Multibyte string engine => libmbfl
HTTP input encoding translation => disabled
libmbfl version => 1.3.2

mbstring extension makes use of "streamable kanji code filter and converter",
which is distributed under the GNU Lesser General Public License version 2.1.

Multibyte (japanese) regex support => enabled
Multibyte regex (oniguruma) version => 4.7.1

Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => pass => pass
mbstring.http_output => pass => pass
mbstring.http_output_conv_mimetypes => ^(text/|application/xhtml\+xml) => ^(text/|application/xhtml\+xml)
mbstring.internal_encoding => no value => no value
mbstring.language => neutral => neutral
mbstring.strict_detection => Off => Off
mbstring.substitute_character => no value => no value

PHP5 入れ換え

lang/php5 のコンパイルオプションに、debugをいれたら、extensions のフォルダ名が、20100525-debugとなっていた。

で、debug 無しの環境へ変更するメモ。

# pkg delete php5-\*

Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 65 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
       php5-5.4.44
       php5-bcmath-5.4.44
       php5-bz2-5.4.44
       php5-calendar-5.4.44
       php5-ctype-5.4.44
       php5-curl-5.4.44
       php5-dba-5.4.44
       php5-dom-5.4.44
       php5-exif-5.4.44
       php5-fileinfo-5.4.44
       php5-filter-5.4.44
       php5-ftp-5.4.44
       php5-gd-5.4.44
       php5-gettext-5.4.44
       php5-gmp-5.4.44
       php5-hash-5.4.44
       php5-iconv-5.4.44
       php5-imap-5.4.44
       php5-interbase-5.4.44
       php5-json-5.4.44
       php5-ldap-5.4.44
       php5-mbstring-5.4.44
       php5-mcrypt-5.4.44
       php5-mssql-5.4.44
       php5-mysql-5.4.44
       php5-mysqli-5.4.44
       php5-odbc-5.4.44
       php5-openssl-5.4.44
       php5-pcntl-5.4.44
       php5-pdo-5.4.44
       php5-pdo_dblib-5.4.44
       php5-pdo_firebird-5.4.44
       php5-pdo_mysql-5.4.44
       php5-pdo_odbc-5.4.44
       php5-pdo_pgsql-5.4.44
       php5-pdo_sqlite-5.4.44
       php5-pgsql-5.4.44
       php5-phar-5.4.44
       php5-posix-5.4.44
       php5-pspell-5.4.44
       php5-readline-5.4.44
       php5-recode-5.4.44
       php5-session-5.4.44
       php5-shmop-5.4.44
       php5-simplexml-5.4.44
       php5-snmp-5.4.44
       php5-soap-5.4.44
       php5-sockets-5.4.44
       php5-sqlite3-5.4.44
       php5-sybase_ct-5.4.44
       php5-sysvmsg-5.4.44
       php5-sysvsem-5.4.44
       php5-sysvshm-5.4.44
       php5-tidy-5.4.44
       php5-tokenizer-5.4.44
       php5-wddx-5.4.44
       php5-xml-5.4.44
       php5-xmlreader-5.4.44
       php5-xmlrpc-5.4.44
       php5-xmlwriter-5.4.44
       php5-xsl-5.4.44
       php5-zip-5.4.44
       php5-zlib-5.4.44
       pecl-APC-3.1.14_1
       pecl-pdflib-3.0.4

The operation will free 24 MiB.

php5

# cd /usr/ports/lang/php5
# make config
# portinstall lang/php5

Total access 2166:本日 1:昨日 1

Counter: 2166, today: 1, yesterday: 1

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS