emerge -u apache and it emerges apache-2.0.50-r1 then restarting apache router/ # /etc/init.d/apache2 restart * Stopping apache2... Syntax error on line 22 of /etc/apache2/conf/apache2.conf: Cannot load /etc/apache2/modules/mod_access.so into server: /etc/apache2/modules/mod_ac object file: No such file or directory * Starting apache2... On commenting out the line in apache2.conf the error message is the next uncommented module Reproducible: Always Steps to Reproduce: 1.emerge -u apache 2./etc/init.d/apache2 start 3. Actual Results: Syntax error on line 22 of /etc/apache2/conf/apache2.conf: Cannot load /etc/apache2/modules/mod_access.so into server: /etc/apache2/modules/mod_ac object file: No such file or directory * Starting apache2... router modules # emerge info Portage 2.0.50-r11 (default-x86-1.4, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.4.24) ================================================================= System uname: 2.4.24 i586 AMD-K6(tm) 3D processor Gentoo Base System version 1.5.3 distcc 2.11.1 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=k6-3 -O3 -pipe -fomit-frame-pointer" CHOST="i586-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k6-3 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow aalib apache2 arts avi berkdb bitmap-fonts crypt cups dedicated encode foomaticdb gd gdbm gif gtk gtk2 imagemagick imap java jpeg kde libg++ libwww maildir mmx motif mpeg mysql ncurses nls odbc oggvorbis pam pdflib perl php png postgres python qt quicktime readline samba sasl sdl slang snmp spell ssl svga tcpd truetype x86 xml2 xmms xprint xv zlib" router modules #
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?