CONTENTS


Lastmodified 2013-06-15 (土) 13:50:21


# portupgrade -r php5-5.4.13

とすると、php-extensions とか phpmyadmin とかもUPされますた。

[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 268 packages found (-0 +1) . done]
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        * www/php5-session (php5-session-5.4.5)
        * archivers/php5-zip (php5-zip-5.3.10_1)
        * security/php5-filter (php5-filter-5.3.10_1)
        * archivers/php5-zlib (php5-zlib-5.4.5)
        * textproc/php5-ctype (php5-ctype-5.3.10_1)
        * devel/php5-json (php5-json-5.3.10_1)
        * archivers/php5-bz2 (php5-bz2-5.3.10_1)
        * security/php5-openssl (php5-openssl-5.3.10_1)
        * graphics/php5-gd (php5-gd-5.4.5)
        * converters/php5-mbstring (php5-mbstring-5.4.5)
        * print/pecl-pdflib (pecl-pdflib-2.1.8_1)
root@blackcube2:/usr/local/etc/php #

ここからは、落ち穂拾い・・・

# portupgrade -r www/php5-session
# portupgrade -r php5-zip-5.3.10_1 php5-filter-5.3.10_1 php5-zlib-5.4.5
# portupgrade -r php5-ctype-5.3.10_1 php5-json-5.3.10_1 php5-bz2-5.3.10_1 php5-openssl-5.3.10_1
  php5-gd-5.4.5 php5-mbstring-5.4.5 pecl-pdflib-2.1.8_1

ここまでで、取り敢えずApacheは再起動可能

portupgrade -a したらApacheが起動しなくなった

cat /var/log/httpd-error.log

[Tue Jun 11 08:33:09 2013] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Jun 11 08:33:09 2013] [error] python_init: Python version mismatch, expected '2.7.3', found '2.7.5'.
[Tue Jun 11 08:33:09 2013] [error] python_init: Python executable found '/usr/local/bin/python'.
[Tue Jun 11 08:33:09 2013] [error] python_init: Python path being used '/usr/local/lib/python27.zip
                          :/usr/local/lib/python2.7/:/usr/local/lib/python2.7/plat-freebsd9:/usr/local/lib/python2.7/lib-tk
                          :/usr/local/lib/python2.7/lib-old:/usr/local/lib/python2.7/lib-dynload'.
[Tue Jun 11 08:33:09 2013] [notice] mod_python: Creating 8 session mutexes based on 256 max processes and 0 max threads.
[Tue Jun 11 08:33:09 2013] [notice] mod_python: using mutex_directory /tmp
PHP Warning:  Module 'apc' already loaded in Unknown on line 0

エラーログは、こんな感じ。errorはあるものの、おそらく起動しない原因は、こちら(勘w

/usr/local/etc/php/extensions.ini

http://piano2nd.smb.net/~kuji/pukiwiki-1.4.7/index.php?cmd=read&page=munin%20on%20FreeBSD%209.0&word=%E4%B8%8B%E6%89%8B%E4%BA%BA#n97666e8 以下の2つをコメントアウトすると、Apacheは起動しますたが・・・

extension=mysqli.so
      :       :  
extension=fileinfo.so
#extension=sybase_ct.so  ← これ
extension=posix.so
      :       :  
extension=pdo_dblib.so
#extension=recode.so    ← これ
extension=mbstring.so

/var/log/httpd-error.log

[Tue Jun 11 08:42:10 2013] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Jun 11 08:42:10 2013] [error] python_init: Python version mismatch, expected '2.7.3', found '2.7.5'.
[Tue Jun 11 08:42:10 2013] [error] python_init: Python executable found '/usr/local/bin/python'.
[Tue Jun 11 08:42:10 2013] [error] python_init: Python path being used '/usr/local/lib/python27.zip:/usr/local/lib/python2.7/
                           :/usr/local/lib/python2.7/plat-freebsd9:/usr/local/lib/python2.7/lib-tk:/usr/local/lib/python2.7/lib-old
                           :/usr/local/lib/python2.7/lib-dynload'.
[Tue Jun 11 08:42:10 2013] [notice] mod_python: Creating 8 session mutexes based on 256 max processes and 0 max threads.
[Tue Jun 11 08:42:10 2013] [notice] mod_python: using mutex_directory /tmp
PHP Deprecated:  Comments starting with '#' are deprecated in /usr/local/etc/php/extensions.ini on line 8 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /usr/local/etc/php/extensions.ini on line 52 in Unknown on line 0
[Tue Jun 11 08:42:10 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Jun 11 08:42:10 2013] [notice] Digest: done

と同じようなエラーが出ているので、

portupgrade -f www/mod_python3

してから、apachectl restart

[Tue Jun 11 08:58:20 2013] [notice] SIGHUP received.  Attempting to restart
[Tue Jun 11 08:58:20 2013] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter
[Tue Jun 11 08:58:20 2013] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter
PHP Deprecated:  Comments starting with '#' are deprecated in /usr/local/etc/php/extensions.ini on line 8 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /usr/local/etc/php/extensions.ini on line 52 in Unknown on line 0
[Tue Jun 11 08:58:20 2013] [notice] mod_python: Creating 8 session mutexes based on 256 max processes and 0 max threads.
[Tue Jun 11 08:58:20 2013] [notice] mod_python: using mutex_directory /tmp
[Tue Jun 11 08:58:20 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Jun 11 08:58:20 2013] [notice] Digest: done
[Tue Jun 11 08:58:21 2013] [notice] Apache/2.2.24 (FreeBSD) SVN/1.7.10 PHP/5.4.16 mod_python/3.3.1 Python/2.7.5 mod_ssl/2.2.24
                            OpenSSL/0.9.8y DAV/2 configured -- resuming normal operations

で、例の、

[warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter

を頂いておりますので、次回の起動時のために、

echo 'accf_http_load="YES"' >> /etc/boot/loader.conf

して、「今でしょ」のために

# kldload accf_http.ko

したら、

kldload: can't load accf_http.ko: File exists

っていわれた。(?_?)

あれ?

# kldstat
Id Refs Address            Size     Name
1   27 0xffffffff80200000 1323408  kernel
2    1 0xffffffff81524000 2084f8   zfs.ko
3    2 0xffffffff8172d000 5c68     opensolaris.ko
4    1 0xffffffff81733000 17d8     accf_http.ko
5    1 0xffffffff81735000 29e0     coretemp.ko
6    1 0xffffffff81739000 fec8     ipmi.ko
7    4 0xffffffff81749000 2550     smbus.ko
8    1 0xffffffff8174c000 2f38     smb.ko
9    1 0xffffffff8174f000 54e0     ichsmb.ko
  985  5:36    portsdb -Uu
  986  5:51    portversion -Fvl "<"
  987  5:53    portupgrade -a
  988  8:13    rehash
  989  8:13    portversion -Fvl "<"
  990  8:14    mysql_upgrade -u root -p
  991  8:16    cd /usr/home/mysql
  992  8:16    mysql_upgrade -u root -p
  993  8:16    top
  994  8:17    apachectl restart
  995  8:17    top
  996  8:17    cat /var/log/messages
  997  8:17    cat /var/log/httpd-access.log
  998  8:17    apachectl restart
  999  8:18    cat /var/log/httpd-error.log
 1000  8:18    reboot
 1001  8:24    cd /usr/home/mysql
 1002  8:24    mysql_upgrade -u root -p
 1003  8:27    top
 1004  8:28    cat /var/log/messages
 1005  8:28    cat /var/log/console.log
 1006  8:29    cat /var/log/httpd-error.log
 1007  8:31    locate apache22
 1008  8:31    cd /usr/ports/www/apache22
 1009  8:31    make deinstall
 1010  8:32    portinstall /usr/ports/www/apache22
 1011  8:33    apachectl start
 1012  8:33    top
 1013  8:33    cat /var/log/httpd-error.log
 1014  8:42    apachectl start
 1015  8:42    top
 1016  8:45    nslookup
 1017  8:55    cat /var/log/httpd-error.log
 1018  8:56    locate mod_python
 1019  8:57    portupgrade -f www/mod_python3
 1020  8:58    apachectl restart
 1021  8:58    cat /var/log/httpd-error.log
 1022  9:32    kldload accf_http.ko
 1023  9:46    kld
 1024  9:49    kldstat
 1025  9:57    apachectl restart
 1026  9:58    cat /var/log/httpd-error.log
 1027  11:10   cat /var/log/httpd-error.log
 1028  11:10   cat /var/log/httpd-error.log
 1029  11:10   cat /var/log/httpd-error.log
 1030  11:10   cat /var/log/httpd-error.log
 1031  11:11   cat /var/log/httpd-error.log
 1032  11:11   locate munin
 1033  11:16   freebsd-update fetch
 1034  11:17   freebsd-update install
 1035  11:17   uname -a
 1036  12:30   cat /var/log/messages
 1037  17:31   history

Total access 2910:本日 1:昨日 0

Counter: 2910, today: 1, yesterday: 0

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