Forums » Karesansui Users in Japan »
Added by Anonymous 672 days ago
CentOS5.4環境でhde-lighttpdが起動しないのですが、同様の現象で困っている方はいませんか?
同様の問題を解決された方、ご教示頂けると幸いです。
OS:CentOS5.4
karesansui:1.1.0
hde-lighttpd:1.4.22-3
openssl:0.9.8e-12.el5_4.6
hde-openssl:098-0.9.8k-11
問題点1
# service hde-lighttpd start
hde-lighttpd を起動中: 2010-04-03 13:00:09: (network.c.336) SSL: error:00000000:lib(0):func(0):reason(0)
[失敗]
#
どうもopensslのversionに依存して発生するようです。
(ソースの変更が必要みたいです。)
srpmからrebuildしたrpmでも同様の現象でした。
問題点2
ssl環境を除外して起動したところ、/var/log/hde-lighttpd/error.logに
下記のログが記録され、デーモンが停止します。
2010-04-03 17:56:14: (log.c.97) server started
2010-04-03 17:56:14: (mod_fastcgi.c.1051) the fastcgi-backend /opt/karesansui/bin/karesansui.fcgi failed to start:
2010-04-03 17:56:14: (mod_fastcgi.c.1055) child exited with status 13 /opt/karesansui/bin/karesansui.fcgi
2010-04-03 17:56:14: (mod_fastcgi.c.1058) If you're trying to run PHP as a FastCGI backend, make sure you're using the FastCGI-enabled version.
You can find out if it is the right one by executing 'php -v' and it should display '(cgi-fcgi)' in the output, NOT '(cgi)' NOR '(cli)'.
For more information, check http://trac.lighttpd.net/trac/wiki/Docs%3AModFastCGI#preparing-php-as-a-fastcgi-programIf this is PHP on Gentoo, add 'fastcgi' to the USE flags.
2010-04-03 17:56:14: (mod_fastcgi.c.1365) [ERROR]: spawning fcgi failed.
2010-04-03 17:56:14: (server.c.902) Configuration of plugins failed. Going down.
phpは、cgi-fcgi対応版です。
# php -v
PHP 5.1.6 (cgi-fcgi) (built: Jan 13 2010 17:05:27)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
#
この問題に関しては全く原因不明です。
どなたか解決策ご存知の方いらっしゃいませんか?
返答遅くなり申し訳ありません。
問題1 に関しては、下記コマンドでlighttpdがどの共有ライブラリにリンクしているか確認してみてください。
ldd /opt/hde/sbin/lighttpd
また、unameコマンドでシステムの情報をおしらせください。
uname -a
問題2 に関しては、以下のコマンドで起動して、Webブラウザでアクセスするとエラーがターミナルに表示されると思いますので、試してみてください。
su -s /bin/bash wwwhde -c "KARESANSUI_CONF=/etc/opt/karesansui/application.conf SEARCH_PATH=/opt/karesansui/lib/python:/opt/hde/lib/python:/opt/pysilhouette/lib/python /opt/karesansui/bin/karesansui.fcgi"
# ldd /opt/hde/sbin/lighttpd
libpcre.so.0 => /lib64/libpcre.so.0 (0x00000039bcc00000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003e74200000)
libssl.so.6 => /lib64/libssl.so.6 (0x0000003256a00000)
libcrypto.so.6 => /lib64/libcrypto.so.6 (0x0000003256600000)
libc.so.6 => /lib64/libc.so.6 (0x0000003e73a00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003e73600000)
libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x0000003e7ec00000)
libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x0000003e7f800000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x0000003e7dc00000)
libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x0000003e7e800000)
libz.so.1 => /usr/lib64/libz.so.1 (0x0000003e74e00000)
libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x0000003e7f400000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x0000003e7c400000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x0000003e7d000000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003e7ac00000)
libsepol.so.1 => /lib64/libsepol.so.1 (0x0000003e7b400000)
#
# uname -a
Linux rad-xen.cc.kumamoto-u.ac.jp 2.6.18-164.15.1.el5xen #1 SMP Wed Mar 17 12:04:23 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
#
# su -s /bin/bash wwwhde -c "KARESANSUI_CONF=/etc/opt/karesansui/application.conf SEARCH_PATH=/opt/karesansui/lib/python:/opt/hde/lib/python:/opt/pysilhouette/lib/python /opt/karesansui/bin/karesansui.fcgi"
bash: /opt/karesansui/bin/karesansui.fcgi: 許可がありません
#
# ls -l /opt/karesansui/bin/karesansui.fcgi
-r-xr-x--- 1 root kss 1302 1月 25 12:15 /opt/karesansui/bin/karesansui.fcgi
#
# tail -3 /etc/passwd
pysilhouette:x:300:300:pysilhouette:/home/pysilhouette:/bin/false
kss:x:250:250:Karesansui Project:/home/kss:/bin/false
wwwhde:x:200:200:HDE Web Server:/opt/hde/www:/bin/false
# tail -3 /etc/group
pysilhouette:x:300:
kss:x:250:
wwwhde:x:200:
#
# chown wwwhde.kss /opt/karesansui/bin/karesansui.fcgi
# chown wwwhde.kss /opt/karesansui/bin
# chown -R wwwhde.kss /etc/opt/karesansui/
# chown -R wwwhde.kss /etc/opt/hde/
# chown -R wwwhde.kss /etc/opt/pysilhouette/
# chgrp -R kss /opt/karesansui/bin
# chmod -R g+w /opt/karesansui/bin
# chgrp -R kss /opt/karesansui/lib/python/karesansui
# chmod -R g+w /opt/karesansui/lib/python/karesansui
# chown -R wwwhde.kss /opt/karesansui/lib/
# chown -R wwwhde.kss /opt/karesansui/share/
# chown -R wwwhde.kss /opt/karesansui/tmp
# chown wwwhde.kss /var/log/karesansui
# chown wwwhde.kss /opt/karesansui
# su -s /bin/bash wwwhde -c "KARESANSUI_CONF=/etc/opt/karesansui/application.conf SEARCH_PATH=/opt/karesansui/lib/python:/opt/hde/lib/python:/opt/pysilhouette/lib/python /opt/karesansui/bin/karesansui.fcgi"
# chgrp -R kss /opt/karesansui/bin
# chmod -R g+w /opt/karesansui/bin
# chgrp -R kss /opt/karesansui/lib/python/karesansui
# chmod -R g+w /opt/karesansui/lib/python/karesansui
Or check permission of the following directories.
* log file directory
* configuration file directory
[Error] Only users who belong to 'kss' group are able to run this program.
#
# usermod -a -G kss wwwhde
#
[root@rad-xen ~]# su -s /bin/bash wwwhde -c "KARESANSUI_CONF=/etc/opt/karesansui/application.conf SEARCH_PATH=/opt/karesansui/lib/python:/opt/hde/lib/python:/opt/pysilhouette/lib/python /opt/karesansui/bin/karesansui.fcgi"
http://0.0.0.0:8080/
Session terminated, killing shell... ...killed.
#
起動したようです。
ありがとうございました。
The latest openSSL update in CentOS 5 breaks SSL support in lighttpd.
To fix it for x86_64:
wget http://files.soluslabs.com/solusvm/fixes/openssl-0.9.8e-12.el5_4.1.x86_64.rpm
rpm --force -ihv openssl-0.9.8e-12.el5_4.1.x86_64.rpm
For i386:
wget http://files.soluslabs.com/solusvm/fixes/openssl-0.9.8e-12.el5_4.1.i686.rpm
rpm --force -ihv openssl-0.9.8e-12.el5_4.1.i686.rpm
Hope this helps!
It seems that this happened where a new version of openssl has been installed in.
So the lighttpd package attached on this page will work fine. Please try it.
hde-lighttpd-1.4.22-5.i386.rpm (333.4 KB)
hde-lighttpd-1.4.22-5.x86_64.rpm (363.8 KB)
Copyright © 2009-2011 Karesansui Project. All rights reserved.
