apache2 failing to start
am 30.03.2010 22:50:02 von Asif Iqbal
I am failing to start apache 2.2.6 on solaris 7. I do not have any
/dev/[u]random file.
I am running prngd for entropy
(root)@www:/usr/local/apache2# ps -ef | grep prng
root 12631 1 0 21:53:46 ? 0:07 /usr/local/sbin/prngd
/var/spool/prngd/pool
(root)@www:/usr/local/apache2# ls -al /var/spool/prngd/pool
srwxrwxrwx 1 root other 0 Mar 29 21:53 /var/spool/prngd/pool
(root)@www:/usr/local/apache2# file /var/spool/prngd/pool
/var/spool/prngd/pool: socket
(root)@www:/usr/local/apache2# ./bin/httpd -v
Server version: Apache/2.2.6 (Unix)
Server built: Nov 29 2007 04:50:40
(root)@www:/usr/local/apache2# tail -f logs/error_log
Configuration Failed
[Tue Mar 30 19:59:48 2010] [notice] Digest: generating secret for
digest authentication ...
[Tue Mar 30 19:59:48 2010] [crit] (2)No such file or directory:
Digest: error generating secret: No such file or directory
Configuration Failed
[Tue Mar 30 20:01:10 2010] [notice] Digest: generating secret for
digest authentication ...
[Tue Mar 30 20:01:10 2010] [crit] (2)No such file or directory:
Digest: error generating secret: No such file or directory
Configuration Failed
[Tue Mar 30 20:25:33 2010] [notice] Digest: generating secret for
digest authentication ...
[Tue Mar 30 20:25:33 2010] [crit] (2)No such file or directory:
Digest: error generating secret: No such file or directory
Configuration Failed
My syntax looks ok
(root)@www:/usr/local/apache2# ./bin/httpd -t
Syntax OK
(root)@www:/usr/local/apache2# ./bin/httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:8443 www.example.net
(/usr/local/apache2/conf/extra/httpd-ssl.conf:8)
Syntax OK
Here is my httpd.conf
(root)@www:/usr/local/apache2# cat conf/httpd.conf
ServerRoot "/usr/local/apache2"
Listen 8080
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule dbd_module modules/mod_dbd.so
LoadModule dumpio_module modules/mod_dumpio.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule include_module modules/mod_include.so
LoadModule filter_module modules/mod_filter.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule log_forensic_module modules/mod_log_forensic.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule ident_module modules/mod_ident.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule version_module modules/mod_version.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
User daemon
Group daemon
ServerAdmin www@example.com
ServerName www.example.net
DocumentRoot "/usr/local/apache2/htdocs"
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.html
Order allow,deny
Deny from all
Satisfy All
ErrorLog logs/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\" %I %O" combinedio
CustomLog logs/access_log common
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
AllowOverride None
Options None
Order allow,deny
Allow from all
DefaultType text/plain
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
Include conf/extra/httpd-ssl.conf
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
Here is my conf/extra/httpd-ssl.conf
(root)@www:/usr/local/apache2# cat conf/extra/httpd-ssl.conf
Listen 8443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog builtin
SSLSessionCache "shmcb:/usr/local/apache2/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
SSLMutex "file:/usr/local/apache2/logs/ssl_mutex"
DocumentRoot "/usr/local/apache2/htdocs"
ServerName www.example.net:8443
ServerAdmin www@example.com
ErrorLog "/usr/local/apache2/logs/error_log"
TransferLog "/usr/local/apache2/logs/access_log"
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+e NULL
SSLCertificateFile "/usr/local/apache2/conf/server.crt"
SSLCertificateKeyFile "/usr/local/apache2/conf/server.key"
SSLOptions +StdEnvVars
SSLOptions +StdEnvVars
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog "/usr/local/apache2/logs/ssl_request_log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
Any idea how to make apache2 start ?
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: apache2 failing to start
am 31.03.2010 02:16:07 von Asif Iqbal
On Tue, Mar 30, 2010 at 4:50 PM, Asif Iqbal wrote:
> I am failing to start apache 2.2.6 on solaris 7. I do not have any
> /dev/[u]random file.
>
> I am running prngd for entropy
>
> (root)@www:/usr/local/apache2# ps -ef | grep prng
> =A0 root 12631 =A0 =A0 1 =A00 21:53:46 ? =A0 =A0 =A0 =A00:07 /usr/local/s=
bin/prngd
> /var/spool/prngd/pool
>
> (root)@www:/usr/local/apache2# ls -al /var/spool/prngd/pool
> srwxrwxrwx =A0 =A01 root =A0 =A0 other =A0 =A0 =A0 =A0 =A0 0 Mar 29 21:53=
/var/spool/prngd/pool
>
> (root)@www:/usr/local/apache2# file /var/spool/prngd/pool
> /var/spool/prngd/pool: =A0socket
>
> (root)@www:/usr/local/apache2# ./bin/httpd -v
> Server version: Apache/2.2.6 (Unix)
> Server built: =A0 Nov 29 2007 04:50:40
>
>
> (root)@www:/usr/local/apache2# tail -f logs/error_log
> Configuration Failed
> [Tue Mar 30 19:59:48 2010] [notice] Digest: generating secret for
> digest authentication ...
> [Tue Mar 30 19:59:48 2010] [crit] (2)No such file or directory:
> Digest: error generating secret: No such file or directory
> Configuration Failed
> [Tue Mar 30 20:01:10 2010] [notice] Digest: generating secret for
> digest authentication ...
> [Tue Mar 30 20:01:10 2010] [crit] (2)No such file or directory:
> Digest: error generating secret: No such file or directory
> Configuration Failed
> [Tue Mar 30 20:25:33 2010] [notice] Digest: generating secret for
> digest authentication ...
> [Tue Mar 30 20:25:33 2010] [crit] (2)No such file or directory:
> Digest: error generating secret: No such file or directory
> Configuration Failed
>
> My syntax looks ok
>
> (root)@www:/usr/local/apache2# ./bin/httpd -t
> Syntax OK
>
> (root)@www:/usr/local/apache2# ./bin/httpd -S
> VirtualHost configuration:
> wildcard NameVirtualHosts and _default_ servers:
> _default_:8443 =A0 =A0 =A0 =A0 www.example.net
> (/usr/local/apache2/conf/extra/httpd-ssl.conf:8)
> Syntax OK
>
> Here is my httpd.conf
>
> (root)@www:/usr/local/apache2# cat conf/httpd.conf
> ServerRoot "/usr/local/apache2"
> Listen 8080
> LoadModule authn_file_module modules/mod_authn_file.so
> LoadModule authn_dbm_module modules/mod_authn_dbm.so
> LoadModule authn_anon_module modules/mod_authn_anon.so
> LoadModule authn_dbd_module modules/mod_authn_dbd.so
> LoadModule authn_default_module modules/mod_authn_default.so
> LoadModule authz_host_module modules/mod_authz_host.so
> LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
> LoadModule authz_user_module modules/mod_authz_user.so
> LoadModule authz_dbm_module modules/mod_authz_dbm.so
> LoadModule authz_owner_module modules/mod_authz_owner.so
> LoadModule authz_default_module modules/mod_authz_default.so
> LoadModule auth_basic_module modules/mod_auth_basic.so
> LoadModule auth_digest_module modules/mod_auth_digest.so
> LoadModule dbd_module modules/mod_dbd.so
> LoadModule dumpio_module modules/mod_dumpio.so
> LoadModule ext_filter_module modules/mod_ext_filter.so
> LoadModule include_module modules/mod_include.so
> LoadModule filter_module modules/mod_filter.so
> LoadModule deflate_module modules/mod_deflate.so
> LoadModule log_config_module modules/mod_log_config.so
> LoadModule log_forensic_module modules/mod_log_forensic.so
> LoadModule logio_module modules/mod_logio.so
> LoadModule env_module modules/mod_env.so
> LoadModule mime_magic_module modules/mod_mime_magic.so
> LoadModule cern_meta_module modules/mod_cern_meta.so
> LoadModule expires_module modules/mod_expires.so
> LoadModule headers_module modules/mod_headers.so
> LoadModule ident_module modules/mod_ident.so
> LoadModule usertrack_module modules/mod_usertrack.so
> LoadModule unique_id_module modules/mod_unique_id.so
> LoadModule setenvif_module modules/mod_setenvif.so
> LoadModule version_module modules/mod_version.so
> LoadModule proxy_module modules/mod_proxy.so
> LoadModule proxy_connect_module modules/mod_proxy_connect.so
> LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
> LoadModule proxy_http_module modules/mod_proxy_http.so
> LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
> LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
> LoadModule ssl_module modules/mod_ssl.so
> LoadModule mime_module modules/mod_mime.so
> LoadModule dav_module modules/mod_dav.so
> LoadModule status_module modules/mod_status.so
> LoadModule autoindex_module modules/mod_autoindex.so
> LoadModule asis_module modules/mod_asis.so
> LoadModule info_module modules/mod_info.so
> LoadModule cgi_module modules/mod_cgi.so
> LoadModule dav_fs_module modules/mod_dav_fs.so
> LoadModule vhost_alias_module modules/mod_vhost_alias.so
> LoadModule negotiation_module modules/mod_negotiation.so
> LoadModule dir_module modules/mod_dir.so
> LoadModule imagemap_module modules/mod_imagemap.so
> LoadModule actions_module modules/mod_actions.so
> LoadModule speling_module modules/mod_speling.so
> LoadModule userdir_module modules/mod_userdir.so
> LoadModule alias_module modules/mod_alias.so
> LoadModule rewrite_module modules/mod_rewrite.so
>
> User daemon
> Group daemon
>
> ServerAdmin www@example.com
> ServerName www.example.net
> DocumentRoot "/usr/local/apache2/htdocs"
>
> =A0 Options FollowSymLinks
> =A0 AllowOverride None
> =A0 Order deny,allow
> =A0 Deny from all
>
>
> =A0 Options Indexes FollowSymLinks
> =A0 AllowOverride None
> =A0 Order allow,deny
> =A0 Allow from all
>
>
> =A0 DirectoryIndex index.html
>
>
> =A0 Order allow,deny
> =A0 Deny from all
> =A0 Satisfy All
>
> ErrorLog logs/error_log
> LogLevel warn
>
> =A0 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> \"%{User-Agent}i\"" combined
> =A0 LogFormat "%h %l %u %t \"%r\" %>s %b" common
> =A0
> =A0 =A0 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> \"%{User-Agent}i\" %I %O" combinedio
> =A0
> =A0 CustomLog logs/access_log common
>
>
> =A0 ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
>
>
>
>
> =A0 AllowOverride None
> =A0 Options None
> =A0 Order allow,deny
> =A0 Allow from all
>
> DefaultType text/plain
>
> =A0 TypesConfig conf/mime.types
> =A0 AddType application/x-compress .Z
> =A0 AddType application/x-gzip .gz .tgz
>
> Include conf/extra/httpd-ssl.conf
> SSLRandomSeed startup builtin
> SSLRandomSeed connect builtin
>
>
> Here is my conf/extra/httpd-ssl.conf
>
> (root)@www:/usr/local/apache2# cat conf/extra/httpd-ssl.conf
> Listen 8443
> AddType application/x-x509-ca-cert .crt
> AddType application/x-pkcs7-crl =A0 =A0.crl
> SSLPassPhraseDialog =A0builtin
> SSLSessionCache =A0 =A0 =A0 =A0"shmcb:/usr/local/apache2/logs/ssl_scache(=
512000)"
> SSLSessionCacheTimeout =A0300
> SSLMutex =A0"file:/usr/local/apache2/logs/ssl_mutex"
>
> DocumentRoot "/usr/local/apache2/htdocs"
> ServerName www.example.net:8443
> ServerAdmin www@example.com
> ErrorLog "/usr/local/apache2/logs/error_log"
> TransferLog "/usr/local/apache2/logs/access_log"
> SSLEngine on
> SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:=
+eNULL
> SSLCertificateFile "/usr/local/apache2/conf/server.crt"
> SSLCertificateKeyFile "/usr/local/apache2/conf/server.key"
>
> =A0 SSLOptions +StdEnvVars
>
>
> =A0 SSLOptions +StdEnvVars
>
> BrowserMatch ".*MSIE.*" \
> =A0 =A0 =A0 =A0nokeepalive ssl-unclean-shutdown \
> =A0 =A0 =A0 =A0downgrade-1.0 force-response-1.0
> CustomLog "/usr/local/apache2/logs/ssl_request_log" \
> =A0 =A0 =A0 =A0 "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
>
>
>
> Any idea how to make apache2 start ?
After removing most of the 56 LoadModules and only keeping the
following 5 I were able to start apache2. Thanks to jMCg from
#httpd on freenode for the suggestion on trying to remove most of the modul=
es.
(root)@www:/usr/local/apache2# grep ^LoadModule conf/httpd.conf
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule mime_module modules/mod_mime.so
--=20
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Re: apache2 failing to start
am 31.03.2010 12:19:42 von Jeff Trawick
On Tue, Mar 30, 2010 at 8:16 PM, Asif Iqbal wrote:
> On Tue, Mar 30, 2010 at 4:50 PM, Asif Iqbal wrote:
>> I am failing to start apache 2.2.6 on solaris 7. I do not have any
>> /dev/[u]random file.
>>
>> [Tue Mar 30 19:59:48 2010] [notice] Digest: generating secret for
>> digest authentication ...
>> [Tue Mar 30 19:59:48 2010] [crit] (2)No such file or directory:
>> Digest: error generating secret: No such file or directory
>> Configuration Failed
....
>> Any idea how to make apache2 start ?
>
>
> After removing most of the 56 LoadModules and only keeping the
> following 5 I were able to start apache2. Thanks to jMCg from
> #httpd on freenode for the suggestion on trying to remove most of the modules.
>
>
> (root)@www:/usr/local/apache2# grep ^LoadModule conf/httpd.conf
> LoadModule authz_host_module modules/mod_authz_host.so
> LoadModule log_config_module modules/mod_log_config.so
> LoadModule setenvif_module modules/mod_setenvif.so
> LoadModule ssl_module modules/mod_ssl.so
> LoadModule mime_module modules/mod_mime.so
FWIW, your problem symptom was related specifically to mod_auth_digest.so.
It is great to trim down the set of loaded modules though.
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org