FrontPage

php5をportupgrade したら、SNSへのアクセスで、

Fatal error: Call to undefined function ctype_digit() in /usr/local/www/apache22/data/OpenPNE3/lib/vendor/symfony/lib/yaml/sfYamlInline.php on line 401

というエラー。apacheのエラーログは、

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/gd.so' - Cannot open "/usr/local/lib/php/20100525/gd.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/bcmath.so' - Cannot open "/usr/local/lib/php/20100525/bcmath.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/bz2.so' - Cannot open "/usr/local/lib/php/20100525/bz2.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/calendar.so' - Cannot open "/usr/local/lib/php/20100525/calendar.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/ctype.so' - Cannot open "/usr/local/lib/php/20100525/ctype.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/curl.so' - Cannot open "/usr/local/lib/php/20100525/curl.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/dba.so' - Cannot open "/usr/local/lib/php/20100525/dba.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/dom.so' - Cannot open "/usr/local/lib/php/20100525/dom.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/fileinfo.so' - Cannot open "/usr/local/lib/php/20100525/fileinfo.so" in Unknown on line 0

な感じ。 というか、

'/usr/local/lib/php/20100525/

なんぞというディレクトリは、無いw

php5-extensions も、portupgrade

/usr/ports/databases/php5-mysql

サーバが混み合っているかメンテナンス中、というとこまで回復

portupgrade databases/php5-pdo_mysql

これをいれたら、ログインできた。

今現在の

php-v

 k222# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/sqlite.so' - Cannot open "/usr/local/lib/php/20100525/sqlite.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/fribidi.so' - Cannot open "/usr/local/lib/php/20100525/fribidi.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/yaz.so' - Cannot open "/usr/local/lib/php/20100525/yaz.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/apc.so' - Cannot open "/usr/local/lib/php/20100525/apc.so" in Unknown on line 0
PHP 5.4.4 (cli) (built: Jul  4 2012 08:52:30)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
Segmentation fault (core dumped)
k222# apachectl restart

databases/php5-sqlite はなくなって、databases/php5-sqlite3がある。

/usr/local/etc/php/extensions.ini の重複行があるので、もう、いっそ、ソートして重複行をけす。

extension=apc.so
extension=bcmath.so
extension=bz2.so
extension=calendar.so
extension=ctype.so
extension=curl.so
extension=dba.so
extension=dom.so
extension=exif.so
extension=fileinfo.so
extension=filter.so
extension=fribidi.so
extension=ftp.so
extension=gd.so
extension=gettext.so
extension=gmp.so
extension=hash.so
extension=iconv.so
extension=imap.so
extension=json.so
extension=ldap.so
extension=mbstring.so
extension=mcrypt.so
extension=mysql.so
extension=mysqli.so
extension=odbc.so
extension=openssl.so
extension=pcntl.so
extension=pdf.so
extension=pdo.so
extension=pdo_mysql.so
extension=pdo_sqlite.so
extension=phar.so
extension=posix.so
extension=session.so
extension=simplexml.so
extension=snmp.so
extension=soap.so
extension=sockets.so
extension=sqlite.so
extension=sqlite3.so
extension=tidy.so
extension=tokenizer.so
extension=wddx.so
extension=xml.so
extension=xmlreader.so
extension=xmlrpc.so
extension=xmlwriter.so
extension=xsl.so
extension=yaz.so
extension=zip.so
extension=zlib.so

記述の順序によってはエラーが出る事があるが、今回はおk


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