Submitted by kevinrmanderson on Sat, 09/15/2012 - 22:46
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
Submitted by andreychek on Sat, 09/15/2012 - 22:52 Comment #1
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!
Submitted by kevinrmanderson on Sat, 09/15/2012 - 23:17 Comment #2
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).
Submitted by JamieCameron on Sun, 09/16/2012 - 14:49 Comment #3
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.
Submitted by kevinrmanderson on Mon, 09/17/2012 - 07:37 Comment #4
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
Submitted by andreychek on Mon, 09/17/2012 - 09:31 Comment #5
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!
Submitted by kevinrmanderson on Thu, 09/27/2012 - 06:55 Comment #6
Server version: Apache/2.2.15 (Unix) Server built: May 16 2012 22:32:26
Regards kevin
Submitted by JamieCameron on Thu, 09/27/2012 - 14:48 Comment #7
That looks OK ..
Could you also post the contents of the file
/etc/webmin/apache/config
from your system?Submitted by kevinrmanderson on Fri, 09/28/2012 - 02:10 Comment #8
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=
Submitted by kevinrmanderson on Fri, 09/28/2012 - 02:12 Comment #9
Hmm, the paste will be easy to work on (not), so here is a better formatted file.
RegaRds kevin
Submitted by JamieCameron on Fri, 09/28/2012 - 13:02 Comment #10
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 linehttpd_version=Apache
. Then delete the file/etc/webmin/apache/site
(it will be re-generated).