默认安装系统后执行/etc/init.d/httpd start会报错误:
[Mon Oct 10 16:35:19 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 16:35:19 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 16:35:19 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 16:35:43 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 16:35:43 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 16:35:43 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 16:35:47 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 16:35:47 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 16:35:47 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 16:36:22 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 16:36:22 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 16:36:22 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 16:37:55 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 16:37:55 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 16:37:55 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 16:38:01 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 16:38:01 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 16:38:01 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 16:38:10 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 16:38:10 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 16:38:10 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 16:38:32 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 16:38:32 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 16:38:32 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 16:38:41 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 16:38:41 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 16:38:41 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 16:39:35 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 16:39:35 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 16:39:35 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 16:41:35 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 16:41:35 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 16:41:35 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 16:43:03 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 16:43:03 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 16:43:03 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 16:44:23 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 16:44:23 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 16:44:23 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 16:45:24 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 16:45:24 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 16:45:24 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 17:08:54 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 17:08:54 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 17:08:54 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 17:08:58 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 17:08:58 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 17:08:58 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 17:13:48 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 17:13:48 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 17:13:48 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 17:14:03 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 10 17:14:03 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Mon Oct 10 17:14:03 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Mon Oct 10 17:15:00 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
使用命令yum install nss-tools*安装NSS组建,之后执行如下命令:
/usr/sbin/gencert /etc/httpd/alias
之后启动httpd正常。
将/etc/httpd/conf.d/welcom.conf中4句话注释掉。
修改Directory内容如下:
# Options FollowSymLinks
Options Indexes FollowSymLinks
AllowOverride None
从新启动就可以看到目录结构了。
参见:
阅读(4567) | 评论(0) | 转发(0) |