I removed all virtual sites , remove apache and reinstall virtualmin
yum -y remove httpd
yum -y install file
yum -y install patch
yum -y update
wget http://software.virtualmin.com/gpl/scripts/install.sh
sh ./install.sh
log:
Welcome to the Virtualmin GPL installer, version 1.1.0
WARNING:
The installation is quite stable and functional when run on a freshly
installed supported Operating System.
If you have existing websites, email users, or if you manually installed
Virtualmin via a Webmin ‘wbm’ module, you are likely to run into problems.
Please read the Virtualmin Administrators Guide before proceeding if
your system is not a freshly installed and supported OS.
This script is not intended to update your system! It should only be
used to perform your initial Virtualmin installation. If you have previously
run the Virtualmin installer, you can perform upgrades and updates from within
Virtualmin itself, or using your system’s package manager. Once Virtualmin is
installed, you never need to run this script again.
The systems currently supported by install.sh are:
CentOS and RHEL 5-6 on i386 and x86_64
Scientific Linux 6 on i386 and x86_64
Debian 6.0 and 7.0 on i386 and amd64
Ubuntu 8.04 LTS and 10.04 LTS, and 12.04 LTS on i386 and amd64
Amazon Linux 2012.03 on i386 and x86_64
FreeBSD 7.0 and 8 on i386 and amd64
If your OS is not listed above, this script will fail. More details
about the systems supported by the script can be found here:
http://www.virtualmin.com/os-support.html
Continue? (y/n) y
Checking for HTTP client…found /usr/bin/curl -s -O
Checking for perl…found /usr/bin/perl
Loading log4sh logging library…
INFO - Started installation log in /root/virtualmin-install.log
INFO - Checking for fully qualified hostname…
INFO - Hostname OK: fully qualified as server1.kaisatec.com
INFO - Installing serial number and license key into /etc/virtualmin-license
INFO - Loading OS selection library…
INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded.
INFO - Loading OS list…
INFO - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = “UTF-8”,
LANG = “”
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
INFO - Operating system name: CentOS Linux
INFO - Operating system version: 6
INFO - Configuring package manager for CentOS Linux 6…
INFO - Disabling SELinux during installation…
/usr/sbin/setenforce: SELinux is disabled
INFO - setenforce 0 failed: 1
INFO - Download of http://software.virtualmin.com/gpl/rhel/6/x86_64/virtualmin-release-latest.noarch.rpm Succeeded.
Running updatedb so locate works…this will take a little while.
Attempting to import various system RPM-GPG-KEY files…Errors may occur,
if you’ve already imported them. It is safe to ignore these errors.
/var/tmp/rpm-tmp.iAEKUM: line 30: [: Failed to set locale, defaulting to C 3: integer expression expected
/var/tmp/rpm-tmp.iAEKUM: line 33: [[: Failed to set locale, defaulting to C 3: syntax error in expression (error token is “to set locale, defaulting to C 3”)
INFO - Succeeded.
INFO - Installing dependencies using command: /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate
…in progress, please wait…
-Failed to set locale, defaulting to C
|Warning: RPMDB altered outside of yum.
INFO - /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate: Succeeded.
INFO - Succeeded.
INFO - Installing Virtualmin and all related packages now using the command:
INFO - yum clean all
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, security
Cleaning repos: base extras rpmforge updates virtualmin virtualmin-universal
Cleaning up Everything
Cleaning up list of fastest mirrors
INFO - yum -y -d 2 install virtualmin-base
…in progress, please wait…
-Failed to set locale, defaulting to C
INFO - yum -y -d 2 install virtualmin-base: Succeeded.
INFO - Checking for updates to Virtualmin-related packages…
…in progress, please wait…
-Failed to set locale, defaulting to C
INFO - /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate: Succeeded.
INFO - Updating SpamAssassin rules…
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = “UTF-8”,
LANG = “”
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
INFO - Rule updates done
[root@server1 ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]