Virtualhost block contents have error

Created many sites with default enabled features. Am using a virtualmin server as a web hosting only server (mail/dns etc on other servers). One new site is a redirect only so set it up with only 'Apache website enabled' checked. Wasn't accessing the site correctly (was reverting to the default first site in httpd.conf) so checked the httpd.conf file. After review found virtualmin had added

User "#123"
Group "#1234"
...

rather than the relevant

SuexecUserGroup "#123" "#1234"

edited the ip into the Virtual rather than an *, the Suexec etc and restarted apache.

SuexecUserGroup "#123" "#1234"
...

and starts/runs fine.

Status: 
Active

Comments

Howdy -- thanks for your report!

That's an unusual issue... can you confirm what Apache version you have there? You can determine that by running this command:

rpm -qa | grep httpd

Thanks!

httpd-2.2.15-15.el6.vm.1.x86_64

The vm provider claimed it is Centos 6.3 final, however it appears to be tweaked for their virtual environment. (as per the vm in the rpm name).

The issue may be that webmin detected the wrong apache version. Could you post the contents of reply of the /etc/webmin/apache/site file from your system.

modules=core/. mod_mime/. mod_access/. mod_auth/. mod_include/. mod_negotiation/. mod_dir/. mod_cgi/. mod_userdir/. mod_alias/. mod_env/. mod_log_common/. mod_auth_basic/. mod_auth_digest/. mod_authn_file/. mod_authn_dbm/. mod_authz_host/. mod_authz_owner/. mod_authz_groupfile/. mod_authz_dbm/. mod_log_config/. mod_ext_filter/. mod_mime_magic/. mod_setenvif/. mod_dav/. mod_status/. mod_autoindex/. mod_info/. mod_vhost_alias/. mod_actions/. mod_speling/. mod_rewrite/. mod_proxy/. mod_proxy_balancer/. mod_cache/. mod_suexec/. mod_disk_cache/. mod_fcgid/. mod_perl/. mod_ssl/. webmin=1.590 path=/usr/sbin/httpd size=355008

I'm going to take a guess at where Jamie was going with this one -- that all looks good, but can you run this command:

/usr/sbin/httpd -v

I don't think that's going to be the problem, as it looks like you have the correct Apache package installed... but knowing the output there will assist in getting to the bottom of what's going on. Thanks!

Server version: Apache/2.2.15 (Unix) Server built: May 16 2012 22:32:26

Regards kevin

That looks OK ..

Could you also post the contents of the file /etc/webmin/apache/config from your system?

virt_name= defines_mods= link_dir= test_manual=0 show_list=1 access_conf= mime_types=/etc/mime.types auto_mods=1 stop_cmd=/etc/rc.d/init.d/httpd stop virt_file= pid_file= srm_conf= test_apachectl=1 max_servers=100 httpd_dir=/etc/httpd start_cmd=/etc/rc.d/init.d/httpd start show_order=0 graceful_cmd= test_always=0 httpd_conf= defines_file= apachectl_path=/usr/sbin/apachectl show_names=0 httpd_version=Apache test_config=1 apply_cmd=/etc/rc.d/init.d/httpd graceful httpd_path=/usr/sbin/httpd apache_docbase= defines_name=

Hmm, the paste will be easy to work on (not), so here is a better formatted file.

RegaRds kevin

I see the issue - the httpd_version line is set to "Apache", which seems wrong. Normally that should be set to something like "1.3.10" to force Webmin to think Apache is running at a specific version.

The quick fix is to edit /etc/webmin/apache/config and remove the line httpd_version=Apache . Then delete the file /etc/webmin/apache/site (it will be re-generated).