Summary: | upgrading to apache-2.0.50-r1 and server cant load modules at startup | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | p cooper <pdcooper> |
Component: | New packages | Assignee: | Apache Team - Bugzilla Reports <apache-bugs> |
Status: | VERIFIED WORKSFORME | ||
Severity: | blocker | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
p cooper
2004-09-18 03:32:17 UTC
Could you post the contents of apache2.conf? I just hit this myself while re-emerging apache. The module that causes the error is quite often random (at least here). Using the overlay'ed apr (apr-0.9.5_pre20040917) fixed it. outer ~ # cat /etc/apache2/conf/apache2.conf |grep -v '^#' ServerRoot /etc/apache2 PidFile /var/run/apache2.pid ErrorLog logs/error_log LogLevel warn DocumentRoot /var/www/localhost/htdocs LoadModule access_module modules/mod_access.so LoadModule auth_module modules/mod_auth.so LoadModule auth_anon_module modules/mod_auth_anon.so LoadModule auth_dbm_module modules/mod_auth_dbm.so LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule include_module modules/mod_include.so LoadModule log_config_module modules/mod_log_config.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 usertrack_module modules/mod_usertrack.so LoadModule unique_id_module modules/mod_unique_id.so LoadModule setenvif_module modules/mod_setenvif.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 mime_module modules/mod_mime.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 cgid_module modules/mod_cgid.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 imap_module modules/mod_imap.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 LoadModule file_cache_module modules/mod_file_cache.so LoadModule echo_module modules/mod_echo.so LoadModule charset_lite_module modules/mod_charset_lite.so LoadModule cache_module modules/mod_cache.so LoadModule disk_cache_module modules/mod_disk_cache.so LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule ext_filter_module modules/mod_ext_filter.so LoadModule case_filter_module modules/mod_case_filter.so LoadModule case_filter_in_module modules/mod_case_filter_in.so LoadModule deflate_module modules/mod_deflate.so LoadModule logio_module modules/mod_logio.so Include conf/modules.d/*.conf Include conf/commonapache2.conf Listen 80 <IfModule mod_log_config.c> SetEnvIf Request_URI \webcam.$ webcam CustomLog logs/access_log combined env=!webcam CustomLog logs/access_log combined env=!VLOG </IfModule> Include conf/vhosts/vhosts.conf Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 <IfModule prefork.c> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 </IfModule> <IfModule worker.c> StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule> <IfModule perchild.c> NumServers 5 StartThreads 5 MinSpareThreads 5 MaxSpareThreads 10 MaxThreadsPerChild 20 MaxRequestsPerChild 0 </IfModule> Alias /awstatsclasses "/var/www/localhost/cgi-bin/wwwroot/classes/" Alias /awstatscss "/var/www/localhost/cgi-bin/wwwroot/css/" Alias /awstatsicons "/var/www/localhost/cgi-bin/wwwroot/icon/" ScriptAlias /awstats/ "/var/www/localhost/cgi-bin/wwwroot/cgi-bin/" <Directory "/var/www/localhost/cgi-bin/wwwroot"> Options None AllowOverride None Order allow,deny Allow from all </Directory> router ~ # adding this /ln -s modules/*.so . to /usr/lib/apache2 has got rid of the module problem now I get router ~ # /etc/init.d/apache2 start * Starting apache2... [Sun Sep 19 07:42:16 2004] [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443 no listening sockets available, shutting down Unable to open logs router apache2 # cat /etc/apache2/conf/vhosts/vhosts.conf |grep 443 router apache2 # AFAIK I havent configured anything on 443 it says port 443 is already in use. so check with netstat: netstat -anp |grep 443 I unmerged apache and then re-emerged it , which avoided the module errors. the error message only occurs if apache2.conf contains the include conf/vhosts/vhosts.conf line (even if vhosts.conf contains commented lines) router conf # cat /etc/apache2/conf/apache2.conf |grep vhosts #If VLOG is defined in conf/vhosts/vhosts.conf, we use this entry # vhosts directory and modify to suit your needs. #Include conf/vhosts/vhosts.conf #Include conf/vhosts/dynamic-vhosts.conf #Include conf/vhosts/virtual-homepages.conf router conf # /etc/init.d/apache2 start * Starting apache2... [ ok ] router conf # /etc/init.d/apache2 stop * Stopping apache2... [ ok ] router conf # nano apache2.conf router conf # cat /etc/apache2/conf/apache2.conf |grep vhosts #If VLOG is defined in conf/vhosts/vhosts.conf, we use this entry # vhosts directory and modify to suit your needs. Include conf/vhosts/vhosts.conf #Include conf/vhosts/dynamic-vhosts.conf #Include conf/vhosts/virtual-homepages.conf router conf # ps -A |grep apache router conf # /etc/init.d/apache2 start * Starting apache2... [Sun Sep 19 23:22:10 2004] [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results [ ok ] router conf # Just a note to say that you should be using apache-2.0.51; all earlier versions contain known security / denial of service exploits. Best regards, Stu ive unmerged what i had and emerged 2.0.51 the original problem that was raised with 2.0.50-r1 the symlinks seemd to be sorted - i this a different problem ( and a different bug) sorted - the virtualhost definition needs a port adding ( didnt before......) Solved per reporter, closing. Closing. Not yet solved for me. I've unmerged apache and mod_php. I've deleted /etc/apache2. No matter which version of apache ( version 2 ) I emerge, *NO* modules are placed in /usr/lib/apache2/modules If I'm not missing something ( please tell me if I am ), could someone re-open this bug? |