CONTENTS


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


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

Total access 2910:本日 1:昨日 0

Counter: 2910, today: 1, yesterday: 0

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