• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 732
  • Last Modified:

Virtual Hosting in Webmin only produces default Apache site "It Works!"

Hello,
I am trying to setup Virtual Hosting with Webmin on Gentoo Linux. My problem is every time I try to go to either of my sites, it reads the default Apache site of "It Works!".
Right now, I only have 2 virtual hosts running, but I will add more once I get these two up and running. I have set up these Virtual Hosts to the best of my knowledge from reading online documentation.
I feel like I am missing some thing simple, but I have not found any direct answers for this. I am hosting my domain through GoDaddy and as far as I can tell I am reaching my web server at home. Please tell me what the cause of this symptom is and what do I need to look at to fix it.
Let me know if I can provide any other information. Thank you for your help!
# This is a modification of the default Apache 2.2 configuration file
# for Gentoo Linux.
#
# Support:
#   http://www.gentoo.org/main/en/lists.xml   [mailing lists]
#   http://forums.gentoo.org/                 [web forums]
#   irc://irc.freenode.net#gentoo-apache      [irc chat]
#
# Bug Reports:
#   http://bugs.gentoo.org                    [gentoo related bugs]
#   http://httpd.apache.org/bug_report.html   [apache httpd related bugs]
#
#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "var/log/apache2/foo_log"
# with ServerRoot set to "/usr" will be interpreted by the
# server as "/usr/var/log/apache2/foo.log".

# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
ServerRoot "/usr/lib64/apache2"

# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
# GENTOO: Automatically defined based on APACHE2_MODULES USE_EXPAND variable.
#         Do not change manually, it will be overwritten on upgrade.
#
# The following modules are considered as the default configuration.
# If you wish to disable one of them, you may have to alter other
# configuration directives.
#
# Change these at your own risk!

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
<IfDefine AUTHNZ_LDAP>
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
</IfDefine>
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
<IfDefine CACHE>
LoadModule cache_module modules/mod_cache.so
</IfDefine>
LoadModule cgi_module modules/mod_cgi.so
<IfDefine DAV>
LoadModule dav_module modules/mod_dav.so
</IfDefine>
<IfDefine DAV>
LoadModule dav_fs_module modules/mod_dav_fs.so
</IfDefine>
<IfDefine DAV>
LoadModule dav_lock_module modules/mod_dav_lock.so
</IfDefine>
LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
<IfDefine CACHE>
LoadModule disk_cache_module modules/mod_disk_cache.so
</IfDefine>
LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
LoadModule ext_filter_module modules/mod_ext_filter.so
<IfDefine CACHE>
LoadModule file_cache_module modules/mod_file_cache.so
</IfDefine>
LoadModule filter_module modules/mod_filter.so
LoadModule headers_module modules/mod_headers.so
LoadModule include_module modules/mod_include.so
<IfDefine INFO>
LoadModule info_module modules/mod_info.so
</IfDefine>
<IfDefine LDAP>
LoadModule ldap_module modules/mod_ldap.so
</IfDefine>
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
<IfDefine CACHE>
LoadModule mem_cache_module modules/mod_mem_cache.so
</IfDefine>
LoadModule mime_module modules/mod_mime.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule speling_module modules/mod_speling.so
<IfDefine SSL>
LoadModule ssl_module modules/mod_ssl.so
</IfDefine>
<IfDefine STATUS>
LoadModule status_module modules/mod_status.so
</IfDefine>
<IfDefine SUEXEC>
LoadModule suexec_module modules/mod_suexec.so
</IfDefine>
LoadModule unique_id_module modules/mod_unique_id.so
<IfDefine USERDIR>
LoadModule userdir_module modules/mod_userdir.so
</IfDefine>
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so

# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
User apache
Group apache

# Supplemental configuration
#
# Most of the configuration files in the /etc/apache2/modules.d/ directory can
# be turned on using APACHE2_OPTS in /etc/conf.d/apache2 to add extra features
# or to modify the default configuration of the server.
#
# To know which flag to add to APACHE2_OPTS, look at the first line of the
# the file, which will usually be an <IfDefine OPTION> where OPTION is the
# flag to use.
Include /etc/apache2/modules.d/*.conf

# Virtual-host support
#
# Gentoo has made using virtual-hosts easy. In /etc/apache2/vhosts.d/ we
# include a default vhost (enabled by adding -D DEFAULT_VHOST to
# APACHE2_OPTS in /etc/conf.d/apache2).
Include /etc/apache2/vhosts.d/*.conf
NameVirtualHost xxx.xxx.xxx.xxx
NameVirtualHost 192.168.1.16

# vim: ts=4 filetype=apache
<VirtualHost xxx.xxx.xxx.xxx:80>
DocumentRoot /home/theworldsmostawkwardman/public_html
ServerName theworldsmostawkwardman
<Directory "/home/theworldsmostawkwardman/public_html">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:80>
DocumentRoot "/home/pacmtnlog/public_html"
<Directory "/home/pacmtnlog/public_html">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

Open in new window

0
MikeTrottman
Asked:
MikeTrottman
  • 14
  • 9
  • 2
  • +1
1 Solution
 
vaska94Commented:
do you ever tried Vhost managment with puppet ?
0
 
Michael WorshamInfrastructure / Solutions ArchitectCommented:
Do you have an index.html file in the 'public_html' directory?

Unless you do, you most likely are getting the default message for setting up Apache.

Take the following code snippet, save it as index.html and save it under the "/home/theworldsmostawkwardman/public_html" directory, then try accessing the site via your web browser:

<html>
<body>
This is a test
</body>
</html>

Open in new window

0
 
MikeTrottmanAuthor Commented:
@vaska94:
No, I have not tried Puppet. I attempted emerging it and setting up the config file, but I only have one machine and puppet seems to be for multiple machines as far as I can see. How would I set Puppet up to help me with my virtual hosting?

@mwecomputers:
I have an index.html file in place at /home/theworldsmostawkwardman/public_html and /home/pacmtnlog/public_html. It is just a simple splash page with the url of the site so I know it is the right one.

Any other ideas?
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
Michael WorshamInfrastructure / Solutions ArchitectCommented:
Can you post the output of the Apache access and error log files?
0
 
MikeTrottmanAuthor Commented:
/var/log/apache2/error_log

error-log
0
 
MikeTrottmanAuthor Commented:
/var/log/apache2/access_log

access-log
0
 
valainCommented:
Hi Mike,

I have seen this before, too. It looks as if the "NameVirtualhost" directive is not set, or set in one of the configuration files sitting in the conf.d/ directory and thus being loaded "too late". Check your main Apache configuration file (httpd.conf or apache2.conf) for a line containing " NameVirtualhost * ", add it if needed, then restart your apache - should work then!
0
 
MikeTrottmanAuthor Commented:
I went through my httpd.conf and apache2.conf and raised the NameVirtualHost up to the top of the document. At first I had an error that the NameVirtualHost was still not set, but I went through a few Google searches and fixed that as well. But now Apache won't start. I check through my error logs and I can't find anything pointing to why it won't start. I have included my updated httpd.conf, what am I missing?
Let me know if I can provide more information.
# This is a modification of the default Apache 2.2 configuration file
# for Gentoo Linux.
#
# Support:
#   http://www.gentoo.org/main/en/lists.xml   [mailing lists]
#   http://forums.gentoo.org/                 [web forums]
#   irc://irc.freenode.net#gentoo-apache      [irc chat]
#
# Bug Reports:
#   http://bugs.gentoo.org                    [gentoo related bugs]
#   http://httpd.apache.org/bug_report.html   [apache httpd related bugs]
#
#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "var/log/apache2/foo_log"
# with ServerRoot set to "/usr" will be interpreted by the
# server as "/usr/var/log/apache2/foo.log".

# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
ServerRoot "/usr/lib64/apache2"

# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
# GENTOO: Automatically defined based on APACHE2_MODULES USE_EXPAND variable.
#         Do not change manually, it will be overwritten on upgrade.
#
# The following modules are considered as the default configuration.
# If you wish to disable one of them, you may have to alter other
# configuration directives.
#
# Change these at your own risk!

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
<IfDefine AUTHNZ_LDAP>
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
</IfDefine>
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
<IfDefine CACHE>
LoadModule cache_module modules/mod_cache.so
</IfDefine>
LoadModule cgi_module modules/mod_cgi.so
<IfDefine DAV>
LoadModule dav_module modules/mod_dav.so
</IfDefine>
<IfDefine DAV>
LoadModule dav_fs_module modules/mod_dav_fs.so
</IfDefine>
<IfDefine DAV>
LoadModule dav_lock_module modules/mod_dav_lock.so
</IfDefine>
LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
<IfDefine CACHE>
LoadModule disk_cache_module modules/mod_disk_cache.so
</IfDefine>
LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
LoadModule ext_filter_module modules/mod_ext_filter.so
<IfDefine CACHE>
LoadModule file_cache_module modules/mod_file_cache.so
</IfDefine>
LoadModule filter_module modules/mod_filter.so
LoadModule headers_module modules/mod_headers.so
LoadModule include_module modules/mod_include.so
<IfDefine INFO>
LoadModule info_module modules/mod_info.so
</IfDefine>
<IfDefine LDAP>
LoadModule ldap_module modules/mod_ldap.so
</IfDefine>
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
<IfDefine CACHE>
LoadModule mem_cache_module modules/mod_mem_cache.so
</IfDefine>
LoadModule mime_module modules/mod_mime.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule speling_module modules/mod_speling.so
<IfDefine SSL>
LoadModule ssl_module modules/mod_ssl.so
</IfDefine>
<IfDefine STATUS>
LoadModule status_module modules/mod_status.so
</IfDefine>
<IfDefine SUEXEC>
LoadModule suexec_module modules/mod_suexec.so
</IfDefine>
LoadModule unique_id_module modules/mod_unique_id.so
<IfDefine USERDIR>
LoadModule userdir_module modules/mod_userdir.so
</IfDefine>
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so

# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
User apache
Group apache

# Supplemental configuration
#
# Most of the configuration files in the /etc/apache2/modules.d/ directory can
# be turned on using APACHE2_OPTS in /etc/conf.d/apache2 to add extra features
# or to modify the default configuration of the server.
#
# To know which flag to add to APACHE2_OPTS, look at the first line of the
# the file, which will usually be an <IfDefine OPTION> where OPTION is the
# flag to use.
Include /etc/apache2/modules.d/*.conf

# Virtual-host support
#
# Gentoo has made using virtual-hosts easy. In /etc/apache2/vhosts.d/ we
# include a default vhost (enabled by adding -D DEFAULT_VHOST to
# APACHE2_OPTS in /etc/conf.d/apache2).
Include /etc/apache2/vhosts.d/*.conf
NameVirtualHost 98.112.129.153
NameVirtualHost 192.168.1.16

# vim: ts=4 filetype=apache
<VirtualHost 98.112.129.153:80>
DocumentRoot /home/theworldsmostawkwardman/public_html
ServerName theworldsmostawkwardman
<Directory "/home/theworldsmostawkwardman/public_html">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
<VirtualHost 98.112.129.153:80>
DocumentRoot "/home/pacmtnlog/public_html"
<Directory "/home/pacmtnlog/public_html">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

Open in new window

0
 
valainCommented:
Hi,

When Apache doesn't start, you should look at the error_log as it probably contains the exact reason. Can you paste the 10 last lines of your apache error_log ?
0
 
MikeTrottmanAuthor Commented:
Here are the last 10 lines of the my error_log file and I have attached the full error_log file should it be needed.
POOL DEBUG: [3956/140474268735296] PCALLOC (    213236/    573724/    591597) 0x23abc00 "pconf" <config.c:997> (3411/11135/1) 
POOL DEBUG: [3956/140474268735296]  PALLOC (    213237/    573725/    591598) 0x23abc00 "pconf" <strings/apr_strings.c:78> (3412/11136/1) 
POOL DEBUG: [3956/140474268735296]  PALLOC (    213258/    573746/    591619) 0x23abc00 "pconf" <util.c:693> (3413/11137/1) 
POOL DEBUG: [3956/140474268735296] PCALLOC (    213322/    573810/    591683) 0x23abc00 "pconf" <config.c:997> (3414/11138/1) 
POOL DEBUG: [3956/140474268735296]  PALLOC (    213350/    573838/    591711) 0x23abc00 "pconf" <strings/apr_strings.c:78> (3415/11139/1) 
POOL DEBUG: [3956/140474268735296]  PALLOC (    213366/    573854/    591727) 0x23abc00 "pconf" <util.c:693> (3416/11140/1) 
POOL DEBUG: [3956/140474268735296] PCALLOC (    213430/    573918/    591791) 0x23abc00 "pconf" <config.c:997> (3417/11141/1) 
POOL DEBUG: [3956/140474268735296]  PALLOC (    213431/    573919/    591792) 0x23abc00 "pconf" <strings/apr_strings.c:78> (3418/11142/1) 
POOL DEBUG: [3956/140474268735296]  PALLOC (    213479/    573967/    591840) 0x23abc00 "pconf" <util.c:975> (3419/11143/1) 
POOL DEBUG: [3956/140474268735296]  PALLOC (    368680/    368680/    600032) 0x24a8590 "ptemp" <config.c:1210> (46/46/0)

Open in new window

error-log
0
 
Michael WorshamInfrastructure / Solutions ArchitectCommented:
As from your access_log file, it seems you have IPv6 enabled. I would recommend disabling it.

From your error_log, it seems that Apache is running in debug mode. I would recommend turning this off as it is causing your error_log to fill up quickly w/ unneeded information.

The httpd.conf seems to be trying to include additional .conf files. You don't have any additional .conf files located under the '/etc/apache2/vhosts.d/' directory do you? This might be an underlying issue we cannot see.

Another thing I see that sticks out is that you have two 'NameVirtualHost' entries. One is overriding the other.

NameVirtualHost 98.112.129.153
NameVirtualHost 192.168.1.16

In the code snippet below is a copy of how I setup my virtual hosts. Each site has their own access_log & error_log, thus making it easier to see which site is getting accessed or having problems.


NameVirtualHost *:80

<VirtualHost *:80>
 ServerName mydomain.com
 ServerAlias www.mydomain.com
 DocumentRoot /web/mydomain.com/htdocs
 ErrorLog /var/web/mydomain.com/error_log
 CustomLog /var/web/mydomain.com/access_log common
 ScriptAlias /cgi-bin/ "/web/mydomain.com/cgi-bin/"
 <Directory /web/mydomain.com>
     Options Indexes FollowSymLinks Multiviews +Includes
     AllowOverride All
 </Directory>
</VirtualHost>

Open in new window

0
 
MikeTrottmanAuthor Commented:
-I changed my ErrorLogs over to their own individual logs for each virtual host.
-Took out the extra NameVirtualHost with my external IP address, it now reads:
   NameVirtualHost *:80
-I basically copied mwecomputers' httpd.conf entry for both my Virtual Hosts. Apache should only pull from the VHosts I have in my httpd.conf after I commented out the reference to include vhost line.
-Changed the error log level to 'error'
-I don't know how to disable IPv6 in Apache however, how would I do this? I looked around online a bit, but nothing I want to try and accidentally break.

Apache is still not starting up. Here is the httpd.conf as I have it now. Thanks again for the help!
# This is a modification of the default Apache 2.2 configuration file
# for Gentoo Linux.

# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
Listen *:80
Listen *:443
NameVirtualHost *:80
ServerRoot "/usr/lib64/apache2"

# Example:
# LoadModule foo_module modules/mod_foo.so

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
<IfDefine AUTHNZ_LDAP>
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
</IfDefine>
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
<IfDefine CACHE>
LoadModule cache_module modules/mod_cache.so
</IfDefine>
LoadModule cgi_module modules/mod_cgi.so
<IfDefine DAV>
LoadModule dav_module modules/mod_dav.so
</IfDefine>
<IfDefine DAV>
LoadModule dav_fs_module modules/mod_dav_fs.so
</IfDefine>
<IfDefine DAV>
LoadModule dav_lock_module modules/mod_dav_lock.so
</IfDefine>
LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
<IfDefine CACHE>
LoadModule disk_cache_module modules/mod_disk_cache.so
</IfDefine>
LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
LoadModule ext_filter_module modules/mod_ext_filter.so
<IfDefine CACHE>
LoadModule file_cache_module modules/mod_file_cache.so
</IfDefine>
LoadModule filter_module modules/mod_filter.so
LoadModule headers_module modules/mod_headers.so
LoadModule include_module modules/mod_include.so
<IfDefine INFO>
LoadModule info_module modules/mod_info.so
</IfDefine>
<IfDefine LDAP>
LoadModule ldap_module modules/mod_ldap.so
</IfDefine>
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
<IfDefine CACHE>
LoadModule mem_cache_module modules/mod_mem_cache.so
</IfDefine>
LoadModule mime_module modules/mod_mime.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule speling_module modules/mod_speling.so
<IfDefine SSL>
LoadModule ssl_module modules/mod_ssl.so
</IfDefine>
<IfDefine STATUS>
LoadModule status_module modules/mod_status.so
</IfDefine>
<IfDefine SUEXEC>
LoadModule suexec_module modules/mod_suexec.so
</IfDefine>
LoadModule unique_id_module modules/mod_unique_id.so
<IfDefine USERDIR>
LoadModule userdir_module modules/mod_userdir.so
</IfDefine>
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so

# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
User apache
Group apache

# Virtual-host support
#
# Gentoo has made using virtual-hosts easy. In /etc/apache2/vhosts.d/ we
# include a default vhost (enabled by adding -D DEFAULT_VHOST to
# APACHE2_OPTS in /etc/conf.d/apache2).

# Include /etc/apache2/vhosts.d/*.conf

# vim: ts=4 filetype=apache

<VirtualHost *:80>
	ServerName theworldsmostawkwardman.com
	ServerAlias www.theworldsmostawkwardman.com
	DocumentRoot /home/theworldsmostawkwardman/public_html
	ErrorLog /home/theworldsmostawkwardman/logs/error_log
	CustomLog /home/theworldsmostawkwardman/logs/access_log custom
	ScriptAlias /cgi-bin/ "/home/theworldsmostawkwardman/cgi-bin"
		<Directory "/home/theworldsmostawkwardman/public_html">
		Options Indexes FollowSymLinks Multiviews +Includes
		AllowOverride All
		</Directory>
</VirtualHost>

<VirtualHost *:80>
	ServerName pacmtnlog.com
	ServerAlias www.pacmtnlog.com
	DocumentRoot /home/pacmtnlog/public_html
	ErrorLog /home/pacmtnlog/logs/error_log
	CustomLog /home/pacmtnlog/logs/access_log custom
	ScriptAlias /cgi-bin/ "/home/pacmtnlog/cgi-bin"
		<Directory "/home/pacmtnlog/public_html">
		Options Indexes FollowSymLinks Multiviews +Includes
		AllowOverride All
		</Directory>
</VirtualHost>
LogLevel error
KeepAlive on

Open in new window

0
 
MikeTrottmanAuthor Commented:
Here is the most recent Startup Error Log from Apache2.2
startuperror.log
0
 
Michael WorshamInfrastructure / Solutions ArchitectCommented:
Disable IPv6 in Gentoo
http://iamkafai.wordpress.com/2009/08/08/disable-ipv6-in-gentoo/

----

Something in the Gentoo kernel or module is causing the POOL DEBUG messages. I have never seen these under other Linux platforms, so this might be in reference to a bad disk or something else corrupted -- perhaps even an unneeded module that is enabled under Apache.

A 'normal' Apache error log would have this kind of information in it:

[Sun Dec 06 04:02:47 2009] [notice] Digest: generating secret for digest authentication ...
[Sun Dec 06 04:02:47 2009] [notice] Digest: done
[Sun Dec 06 04:02:56 2009] [notice] Apache/2.2.13 (Unix) DAV/2 PHP/5.2.10 configured -- resuming normal operations

Open in new window

0
 
Michael WorshamInfrastructure / Solutions ArchitectCommented:
Gentoo Linux Documentation :: Troubleshooting Apache
http://www.gentoo.org/proj/en/apache/doc/troubleshooting.xml

0
 
MikeTrottmanAuthor Commented:
I think the POOL DEBUG is caused by APR installed with Apache. I am looking online to see how to turn it off, but no luck so far.
I also went over the Troubleshooting document for Gentoo, but apache still won't start and I am not seeing anything in the error_log besides what POOL DEBUG shows. Any other ideas?
0
 
Michael WorshamInfrastructure / Solutions ArchitectCommented:
Before you restart apache (i.e. '/etc/init.d/apache2 restart'), try this: '/etc/init.d/apache2 configtest' to see if it's actually reading the configuration file correctly.
0
 
MikeTrottmanAuthor Commented:
/etc/init.d/apache2 yields:
Checking apache2 configuration ...     [ ok ]
0
 
Michael WorshamInfrastructure / Solutions ArchitectCommented:
Until the APR messages can be removed, I think you are going to keep having the problem as the APR doesn't give a real hint to what is causing the Apache startup problems. However, maybe we can see if we can find what is being hidden from view:

You'll need two terminal windows, but try this in this order:

Window #1: Do 'tail -f' on the error_log file and remove the DEBUG messages (i.e. 'tail -f /var/log/apache2/error_log | grep -v DEBUG')

Window #2: Do '/etc/init.d/apache2 start'

Switch back to Window #1 and see what the output is when you first 'try' the start.
0
 
MikeTrottmanAuthor Commented:
Nothing else appears on Window 1.
0
 
Michael WorshamInfrastructure / Solutions ArchitectCommented:
Then something with the APR build is causing the problem, preventing Apache from starting correctly.

All else fails, reinstall the Apache instance making sure APR isn't part of the build out.
0
 
MikeTrottmanAuthor Commented:
I am trying to do a re-install of all things apache and webmin. I am going to start with just apache and get that going first. I also need to take out all USE flags that may add APR onto my re-install of apache. Let me know if you come up with any other ideas. Thanks again for the help.
0
 
MikeTrottmanAuthor Commented:
I am trying an Apache re-install right now, but why is my site still reading "It Works!" when there is no apache running on my server?
0
 
Michael WorshamInfrastructure / Solutions ArchitectCommented:
It's quite possibly that your browser is caching the message. Try clearing your browser cache to see if that resolves the problem.

I don't have much experience with Gentoo, but if you could use another Linux OS platform (i.e. CentOS, Fedora), setting up Apache is very straightforward.
0
 
MikeTrottmanAuthor Commented:
I tried clearing out all browser cahce and still no change. I was just wonder if apache was working but the site was caged by the host or something like that. I like gentoo, but until I understand apache better I think I will try fedora. I tried getting rid of all my use flags which may have something to do with apr, but apr still installs with apache every time. Plus apache doesn't work when I uninstall just apr. I have an extra box at home I can try fedora on and I will try a revdep-rebuild on apache without apr to see if that will help.  
0
 
MikeTrottmanAuthor Commented:
Not the greatest solution, but I know I need to re-install Gentoo without the "debug" flag at least.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 14
  • 9
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now