How to Install and Configure Munin on CentOS 6.2

Munin is a network/system monitoring application that presents output in graphs through a web interface.
Munin is a monitoring tool surveys all your computers and remembers what it saw. Munin is a simple to configure tool that make real nice graph about your server status. This post will show how to install munin on linux CentOS 6.2 server.

Prerequisites:
How to Install Httpd on CentOS 6.2

[root@centos62 ~]# yum --enablerepo=epel install munin munin-node -y
..
..
..
Dependencies Resolved

====================================================================================================
 Package                              Arch           Version                     Repository    Size
====================================================================================================
Installing:
 munin                                noarch         1.4.7-5.el6                 epel         124 k
 munin-node                           noarch         1.4.7-5.el6                 epel         375 k
Installing for dependencies:
 mailx                                i686           12.4-6.el6                  base         224 k
 munin-common                         noarch         1.4.7-5.el6                 epel          71 k
 perl-Compress-Raw-Zlib               i686           2.023-119.el6_1.1           base          67 k
 perl-Compress-Zlib                   i686           2.020-119.el6_1.1           base          43 k
 perl-Crypt-DES                       i686           2.05-9.el6                  epel          19 k
 perl-Date-Manip                      noarch         6.24-1.el6                  base         1.4 M
 perl-Digest-HMAC                     noarch         1.01-22.el6                 base          22 k
 perl-Digest-SHA1                     i686           2.12-2.el6                  base          49 k
 perl-Email-Date-Format               noarch         1.002-5.el6                 base          16 k
 perl-HTML-Parser                     i686           3.64-2.el6                  base         109 k
 perl-HTML-Tagset                     noarch         3.20-4.el6                  base          17 k
 perl-HTML-Template                   noarch         2.9-10.el6                  epel          70 k
 perl-IO-Compress-Base                i686           2.020-119.el6_1.1           base          66 k
 perl-IO-Compress-Zlib                i686           2.020-119.el6_1.1           base         133 k
 perl-IO-Multiplex                    noarch         1.13-1.el6                  epel          24 k
 perl-Log-Dispatch                    noarch         2.27-1.el6                  epel          71 k
 perl-Log-Dispatch-FileRotate         noarch         1.19-4.el6                  epel          24 k
 perl-Log-Log4perl                    noarch         1.30-1.el6                  epel         392 k
 perl-MIME-Lite                       noarch         3.027-2.el6                 base          82 k
 perl-MIME-Types                      noarch         1.28-2.el6                  base          32 k
 perl-Mail-Sender                     noarch         0.8.16-3.el6                epel          54 k
 perl-MailTools                       noarch         2.04-4.el6                  base         101 k
 perl-Net-CIDR                        noarch         0.14-1.el6                  epel          17 k
 perl-Net-SNMP                        noarch         5.2.0-4.el6                 epel         100 k
 perl-Net-Server                      noarch         0.97-7.el6                  epel         142 k
 perl-Params-Validate                 i686           0.92-3.el6                  base          75 k
 perl-TimeDate                        noarch         1:1.16-11.1.el6             base          34 k
 perl-URI                             noarch         1.40-2.el6                  base         117 k
 perl-XML-DOM                         noarch         1.44-7.el6                  base         136 k
 perl-XML-Parser                      i686           2.36-7.el6                  base         224 k
 perl-XML-RegExp                      noarch         0.03-7.el6                  base         9.8 k
 perl-YAML-Syck                       i686           1.07-4.el6                  base          75 k
 perl-libwww-perl                     noarch         5.833-2.el6                 base         387 k
 rrdtool-perl                         i686           1.3.8-6.el6                 base          36 k
 sysstat                              i686           9.0.4-18.el6                base         216 k

Transaction Summary
====================================================================================================
Install      37 Package(s)

Total download size: 5.0 M
Installed size: 19 M
Downloading Packages:
(1/37): mailx-12.4-6.el6.i686.rpm                                            | 224 kB     00:01
(2/37): munin-1.4.7-5.el6.noarch.rpm                                         | 124 kB     00:00
(3/37): munin-common-1.4.7-5.el6.noarch.rpm                                  |  71 kB     00:00
(4/37): munin-node-1.4.7-5.el6.noarch.rpm                                    | 375 kB     00:02
(5/37): perl-Compress-Raw-Zlib-2.023-119.el6_1.1.i686.rpm                    |  67 kB     00:00
(6/37): perl-Compress-Zlib-2.020-119.el6_1.1.i686.rpm                        |  43 kB     00:00
(7/37): perl-Crypt-DES-2.05-9.el6.i686.rpm                                   |  19 kB     00:00
(8/37): perl-Date-Manip-6.24-1.el6.noarch.rpm                                | 1.4 MB     00:11
(9/37): perl-Digest-HMAC-1.01-22.el6.noarch.rpm                              |  22 kB     00:00
(10/37): perl-Digest-SHA1-2.12-2.el6.i686.rpm                                |  49 kB     00:00
(11/37): perl-Email-Date-Format-1.002-5.el6.noarch.rpm                       |  16 kB     00:00
(12/37): perl-HTML-Parser-3.64-2.el6.i686.rpm                                | 109 kB     00:00
(13/37): perl-HTML-Tagset-3.20-4.el6.noarch.rpm                              |  17 kB     00:00
(14/37): perl-HTML-Template-2.9-10.el6.noarch.rpm                            |  70 kB     00:00
(15/37): perl-IO-Compress-Base-2.020-119.el6_1.1.i686.rpm                    |  66 kB     00:00
(16/37): perl-IO-Compress-Zlib-2.020-119.el6_1.1.i686.rpm                    | 133 kB     00:01
(17/37): perl-IO-Multiplex-1.13-1.el6.noarch.rpm                             |  24 kB     00:00
(18/37): perl-Log-Dispatch-2.27-1.el6.noarch.rpm                             |  71 kB     00:00
(19/37): perl-Log-Dispatch-FileRotate-1.19-4.el6.noarch.rpm                  |  24 kB     00:00
(20/37): perl-Log-Log4perl-1.30-1.el6.noarch.rpm                             | 392 kB     00:02
(21/37): perl-MIME-Lite-3.027-2.el6.noarch.rpm                               |  82 kB     00:00
(22/37): perl-MIME-Types-1.28-2.el6.noarch.rpm                               |  32 kB     00:00
(23/37): perl-Mail-Sender-0.8.16-3.el6.noarch.rpm                            |  54 kB     00:00
(24/37): perl-MailTools-2.04-4.el6.noarch.rpm                                | 101 kB     00:01
(25/37): perl-Net-CIDR-0.14-1.el6.noarch.rpm                                 |  17 kB     00:00
(26/37): perl-Net-SNMP-5.2.0-4.el6.noarch.rpm                                | 100 kB     00:00
(27/37): perl-Net-Server-0.97-7.el6.noarch.rpm                               | 142 kB     00:01
(28/37): perl-Params-Validate-0.92-3.el6.i686.rpm                            |  75 kB     00:00
(29/37): perl-TimeDate-1.16-11.1.el6.noarch.rpm                              |  34 kB     00:00
(30/37): perl-URI-1.40-2.el6.noarch.rpm                                      | 117 kB     00:00
(31/37): perl-XML-DOM-1.44-7.el6.noarch.rpm                                  | 136 kB     00:00
(32/37): perl-XML-Parser-2.36-7.el6.i686.rpm                                 | 224 kB     00:01
(33/37): perl-XML-RegExp-0.03-7.el6.noarch.rpm                               | 9.8 kB     00:00
(34/37): perl-YAML-Syck-1.07-4.el6.i686.rpm                                  |  75 kB     00:00
(35/37): perl-libwww-perl-5.833-2.el6.noarch.rpm                             | 387 kB     00:02
(36/37): rrdtool-perl-1.3.8-6.el6.i686.rpm                                   |  36 kB     00:00
(37/37): sysstat-9.0.4-18.el6.i686.rpm                                       | 216 kB     00:02
----------------------------------------------------------------------------------------------------
Total                                                               115 kB/s | 5.0 MB     00:44
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : perl-IO-Compress-Base-2.020-119.el6_1.1.i686                                    1/37
  Installing : perl-URI-1.40-2.el6.noarch                                                      2/37
  Installing : munin-common-1.4.7-5.el6.noarch                                                 3/37
warning: user munin does not exist - using root
warning: group munin does not exist - using root
  Installing : 1:perl-TimeDate-1.16-11.1.el6.noarch                                            4/37
  Installing : perl-MailTools-2.04-4.el6.noarch                                                5/37
  Installing : perl-HTML-Tagset-3.20-4.el6.noarch                                              6/37
  Installing : perl-HTML-Parser-3.64-2.el6.i686                                                7/37
  Installing : perl-Net-CIDR-0.14-1.el6.noarch                                                 8/37
  Installing : perl-MIME-Types-1.28-2.el6.noarch                                               9/37
  Installing : perl-Email-Date-Format-1.002-5.el6.noarch                                      10/37
  Installing : perl-MIME-Lite-3.027-2.el6.noarch                                              11/37
  Installing : perl-Mail-Sender-0.8.16-3.el6.noarch                                           12/37
  Installing : perl-YAML-Syck-1.07-4.el6.i686                                                 13/37
  Installing : perl-Date-Manip-6.24-1.el6.noarch                                              14/37
  Installing : perl-XML-RegExp-0.03-7.el6.noarch                                              15/37
  Installing : perl-IO-Multiplex-1.13-1.el6.noarch                                            16/37
  Installing : perl-Net-Server-0.97-7.el6.noarch                                              17/37
  Installing : perl-HTML-Template-2.9-10.el6.noarch                                           18/37
  Installing : perl-Compress-Raw-Zlib-2.023-119.el6_1.1.i686                                  19/37
  Installing : rrdtool-perl-1.3.8-6.el6.i686                                                  20/37
  Installing : perl-Params-Validate-0.92-3.el6.i686                                           21/37
  Installing : perl-Log-Dispatch-2.27-1.el6.noarch                                            22/37
  Installing : perl-Digest-SHA1-2.12-2.el6.i686                                               23/37
  Installing : perl-Digest-HMAC-1.01-22.el6.noarch                                            24/37
  Installing : perl-Log-Dispatch-FileRotate-1.19-4.el6.noarch                                 25/37
  Installing : perl-IO-Compress-Zlib-2.020-119.el6_1.1.i686                                   26/37
  Installing : perl-Compress-Zlib-2.020-119.el6_1.1.i686                                      27/37
  Installing : perl-libwww-perl-5.833-2.el6.noarch                                            28/37
  Installing : perl-XML-Parser-2.36-7.el6.i686                                                29/37
  Installing : perl-XML-DOM-1.44-7.el6.noarch                                                 30/37
  Installing : perl-Log-Log4perl-1.30-1.el6.noarch                                            31/37
  Installing : perl-Crypt-DES-2.05-9.el6.i686                                                 32/37
  Installing : perl-Net-SNMP-5.2.0-4.el6.noarch                                               33/37
  Installing : mailx-12.4-6.el6.i686                                                          34/37
  Installing : sysstat-9.0.4-18.el6.i686                                                      35/37
  Installing : munin-node-1.4.7-5.el6.noarch                                                  36/37
  Installing : munin-1.4.7-5.el6.noarch                                                       37/37

Installed:
  munin.noarch 0:1.4.7-5.el6                     munin-node.noarch 0:1.4.7-5.el6

Dependency Installed:
  mailx.i686 0:12.4-6.el6                           munin-common.noarch 0:1.4.7-5.el6
  perl-Compress-Raw-Zlib.i686 0:2.023-119.el6_1.1   perl-Compress-Zlib.i686 0:2.020-119.el6_1.1
  perl-Crypt-DES.i686 0:2.05-9.el6                  perl-Date-Manip.noarch 0:6.24-1.el6
  perl-Digest-HMAC.noarch 0:1.01-22.el6             perl-Digest-SHA1.i686 0:2.12-2.el6
  perl-Email-Date-Format.noarch 0:1.002-5.el6       perl-HTML-Parser.i686 0:3.64-2.el6
  perl-HTML-Tagset.noarch 0:3.20-4.el6              perl-HTML-Template.noarch 0:2.9-10.el6
  perl-IO-Compress-Base.i686 0:2.020-119.el6_1.1    perl-IO-Compress-Zlib.i686 0:2.020-119.el6_1.1
  perl-IO-Multiplex.noarch 0:1.13-1.el6             perl-Log-Dispatch.noarch 0:2.27-1.el6
  perl-Log-Dispatch-FileRotate.noarch 0:1.19-4.el6  perl-Log-Log4perl.noarch 0:1.30-1.el6
  perl-MIME-Lite.noarch 0:3.027-2.el6               perl-MIME-Types.noarch 0:1.28-2.el6
  perl-Mail-Sender.noarch 0:0.8.16-3.el6            perl-MailTools.noarch 0:2.04-4.el6
  perl-Net-CIDR.noarch 0:0.14-1.el6                 perl-Net-SNMP.noarch 0:5.2.0-4.el6
  perl-Net-Server.noarch 0:0.97-7.el6               perl-Params-Validate.i686 0:0.92-3.el6
  perl-TimeDate.noarch 1:1.16-11.1.el6              perl-URI.noarch 0:1.40-2.el6
  perl-XML-DOM.noarch 0:1.44-7.el6                  perl-XML-Parser.i686 0:2.36-7.el6
  perl-XML-RegExp.noarch 0:0.03-7.el6               perl-YAML-Syck.i686 0:1.07-4.el6
  perl-libwww-perl.noarch 0:5.833-2.el6             rrdtool-perl.i686 0:1.3.8-6.el6
  sysstat.i686 0:9.0.4-18.el6

Complete!

2. On line 60, change the following to your hostname :

[root@centos62 ~]# vi /etc/munin/munin.conf

Original :

# a simple host tree
[x86-06.phx2.fedoraproject.org]
    address 127.0.0.1
    use_node_name yes

Change to :

# a simple host tree
[centos62.ehowstuff.local]
    address 127.0.0.1
    use_node_name yes

3. On line 29, please uncomment and change to your hostname :

[root@centos62 ~]# vim /etc/munin/munin-node.conf

Original :

#host_name x86-06.phx2.fedoraproject.org

Change to :

host_name centos62.ehowstuff.local

4. Change the following and allowed your network to access munin :

[root@centos62 ~]# vim /etc/httpd/conf.d/munin.conf
<directory /var/www/html/munin>
  Order Deny,Allow
  Deny from all
  Allow from 127.0.0.1 192.168.1.0/24
</directory>

5. Restart Apache httpd service :

[root@centos62 ~]# /etc/rc.d/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

5. Start Munin :

[root@centos62 ~]# /etc/rc.d/init.d/munin-node start
Starting Munin Node:                                       [  OK  ]

6. Make munin start at boot :

[root@centos62 ~]# chkconfig munin-node on

7. Access to “http://(hostname or IP address)/munin/” with web browser after 5 minutes later.
munin

How to Check CentOS or Red Hat Version

rhelIn this post, i will share the quick steps on how to check linux CentOS version. This steps may working on any version of CentOS and Redhat Enterprise linux (RHEL) server. CentOS versions can easily be checked with some simple commands. There are two common command to check linux version :

1. Execute the issue command :

[root@centos62 ~]# cat /etc/issue
CentOS release 6.2 (Final)
Kernel \r on an \m

2. Execute redhat-release command :

[root@centos62 ~]# cat /etc/redhat-release
CentOS release 6.2 (Final)

Both command above return the same result.

How to Configure Persistent Static Routes on Linux CentOS 6.2

In this post, i will share on how to configure persistent static routes on linux CentOS 6.2 server. By using Static routes, we can improves overall performance of the network. Static route can be added and delete using “route” command. But the drawback is when linux server is rebooted, it will forget the static routes configuration. To avoid network interruption the following condition should be follow :

1. The static route configuration should take effect immediately without rebooting.
2. The static route configuration should also apply after the next reboot.

Solutions :
To make configuration take effect immediately, run the following command :

[root@centos62 ~]# route add -net <network> netmask <netmask> gw <gateway_ip> dev <interface>

Examples :

[root@centos62 ~]# route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0
[root@centos62 ~]# route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1 dev eth1
[root@centos62 ~]# route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.3.1 dev eth2

To apply the configuration on next reboot, configure the following in /etc/sysconfig/static-routes :

[root@centos62 ~]# vi /etc/sysconfig/static-routes

Add the followings :

any -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1
any -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1
any -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.3.1

How to Setup phpMyAdmin 3.5.1 on CentOS 6.2 using Remi Repository

phpmyadminphpMyAdmin is a free and open source tool written in PHP intended to handle the administration of MySQL with the use of a Web browser. It is a tools that giving users the ability to interact with their MySQL databases to perform the task such as creating, modifying or drop databases, executing SQL statements, managing users and set permissions. This post will show you the steps on how to setup phpMyAdmin 3.5.1 on CentOS 6.2 using remi repository.

Prerequisites :
How to Install Remi yum Repository on CentOS 6.2 x86 and x86_64

Simply execute the following command to install phpmyadmin :

[root@centos62 ~]# yum install phpmyadmin -y
Loaded plugins: fastestmirror, priorities
Determining fastest mirrors
 * base: mirror.averse.net
 * extras: mirror.yourconnect.com
 * remi: iut-info.univ-reims.fr
 * remi-test: iut-info.univ-reims.fr
 * updates: mirror.yourconnect.com
base                                                                         | 3.7 kB     00:00
base/primary_db                                                              | 3.5 MB     00:34
extras                                                                       | 3.5 kB     00:00
extras/primary_db                                                            | 9.1 kB     00:00
remi                                                                         | 2.9 kB     00:00
remi/primary_db                                                              | 259 kB     00:02
remi-test                                                                    | 2.9 kB     00:00
remi-test/primary_db                                                         |  80 kB     00:01
updates                                                                      | 3.5 kB     00:00
updates/primary_db                                                           | 3.9 MB     00:35
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package phpMyAdmin.noarch 0:3.5.1-1.el6.remi will be installed
--> Processing Dependency: php-mysql >= 5.2.0 for package: phpMyAdmin-3.5.1-1.el6.remi.noarch
--> Processing Dependency: php-mcrypt >= 5.2.0 for package: phpMyAdmin-3.5.1-1.el6.remi.noarch
--> Processing Dependency: php-mbstring >= 5.2.0 for package: phpMyAdmin-3.5.1-1.el6.remi.noarch
--> Processing Dependency: php-gd >= 5.2.0 for package: phpMyAdmin-3.5.1-1.el6.remi.noarch
--> Running transaction check
---> Package php-gd.i686 0:5.4.4-1.el6.remi will be installed
---> Package php-mbstring.i686 0:5.4.4-1.el6.remi will be installed
---> Package php-mcrypt.i686 0:5.4.4-1.el6.remi will be installed
---> Package php-mysql.i686 0:5.4.4-1.el6.remi will be installed
--> Processing Dependency: php-pdo(x86-32) = 5.4.4-1.el6.remi for package: php-mysql-5.4.4-1.el6.remi.i686
--> Running transaction check
---> Package php-pdo.i686 0:5.4.4-1.el6.remi will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                 Arch              Version                       Repository            Size
====================================================================================================
Installing:
 phpMyAdmin              noarch            3.5.1-1.el6.remi              remi                 4.7 M
Installing for dependencies:
 php-gd                  i686              5.4.4-1.el6.remi              remi-test            132 k
 php-mbstring            i686              5.4.4-1.el6.remi              remi-test            921 k
 php-mcrypt              i686              5.4.4-1.el6.remi              remi-test             41 k
 php-mysql               i686              5.4.4-1.el6.remi              remi-test            122 k
 php-pdo                 i686              5.4.4-1.el6.remi              remi-test            107 k

Transaction Summary
====================================================================================================
Install       6 Package(s)

Total download size: 6.0 M
Installed size: 21 M
Downloading Packages:
(1/6): php-gd-5.4.4-1.el6.remi.i686.rpm                                      | 132 kB     00:11
(2/6): php-mbstring-5.4.4-1.el6.remi.i686.rpm                                | 921 kB     00:28
(3/6): php-mcrypt-5.4.4-1.el6.remi.i686.rpm                                  |  41 kB     00:01
(4/6): php-mysql-5.4.4-1.el6.remi.i686.rpm                                   | 122 kB     00:02
(5/6): php-pdo-5.4.4-1.el6.remi.i686.rpm                                     | 107 kB     00:01
(6/6): phpMyAdmin-3.5.1-1.el6.remi.noarch.rpm                                | 4.7 MB     01:14
----------------------------------------------------------------------------------------------------
Total                                                                50 kB/s | 6.0 MB     02:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : php-gd-5.4.4-1.el6.remi.i686                                                     1/6
  Installing : php-mcrypt-5.4.4-1.el6.remi.i686                                                 2/6
  Installing : php-pdo-5.4.4-1.el6.remi.i686                                                    3/6
  Installing : php-mysql-5.4.4-1.el6.remi.i686                                                  4/6
  Installing : php-mbstring-5.4.4-1.el6.remi.i686                                               5/6
  Installing : phpMyAdmin-3.5.1-1.el6.remi.noarch                                               6/6

Installed:
  phpMyAdmin.noarch 0:3.5.1-1.el6.remi

Dependency Installed:
  php-gd.i686 0:5.4.4-1.el6.remi                  php-mbstring.i686 0:5.4.4-1.el6.remi
  php-mcrypt.i686 0:5.4.4-1.el6.remi              php-mysql.i686 0:5.4.4-1.el6.remi
  php-pdo.i686 0:5.4.4-1.el6.remi

Complete!
[root@centos62 ~]# vim /etc/httpd/conf.d/phpMyAdmin.conf

Original configuration file :

Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
<Directory /usr/share/phpMyAdmin/>
   order deny,allow
   deny from all
   allow from 127.0.0.1
   allow from ::1
</Directory>

Modify to the following :

Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
<Directory /usr/share/phpMyAdmin/>
   order deny,allow
   deny from all
   allow from 127.0.0.1
   allow from all
</Directory>

Once configured, restart the httpd as below :

[root@centos62 ~]# service httpd restart

Login to the phpmyadmin as below :
http://192.168.1.44/phpmyadmin

How to Install MySQL 5.5 Database on CentOS 6.2 using Remi Repository

MySQLRemi Repository or Les RPM de Remi repository is one of the popular 3rd party repositories for CentOS. (See http://rpms.famillecollet.com/) Remi repository provides and maintains the latest version of MySQL and PHP. Remi repository can be very useful
when you need the latest version of Linux Apache MySQL and PHP (LAMP) server. In this post, i will share on how to install MySQL 5.5 database on linux CentOS 6.2 using 3rd party repository, Remi repository.

Prerequisites :
How to Install Remi yum Repository on CentOS 6.2 x86 and x86_64

Simply run the following command to install latest MySQL Server packages :

[root@centos62 ~]# yum install mysql mysql-server -y
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * base: centos.ipserverone.com
 * extras: centos.ipserverone.com
 * remi: rpms.famillecollet.com
 * remi-test: rpms.famillecollet.com
 * updates: centos.ipserverone.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.i686 0:5.5.25-1.el6.remi will be installed
--> Processing Dependency: mysql-libs(x86-32) = 5.5.25-1.el6.remi for package: mysql-5.5.25-1.el6.remi.i686
---> Package mysql-server.i686 0:5.5.25-1.el6.remi will be installed
--> Processing Dependency: libaio.so.1(LIBAIO_0.4) for package: mysql-server-5.5.25-1.el6.remi.i686
--> Processing Dependency: libaio.so.1(LIBAIO_0.1) for package: mysql-server-5.5.25-1.el6.remi.i686
--> Processing Dependency: libaio.so.1 for package: mysql-server-5.5.25-1.el6.remi.i686
--> Running transaction check
---> Package libaio.i686 0:0.3.107-10.el6 will be installed
---> Package mysql-libs.i686 0:5.5.25-1.el6.remi will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                   Arch              Version                        Repository         Size
====================================================================================================
Installing:
 mysql                     i686              5.5.25-1.el6.remi              remi              5.8 M
 mysql-server              i686              5.5.25-1.el6.remi              remi               10 M
Installing for dependencies:
 libaio                    i686              0.3.107-10.el6                 base               21 k
 mysql-libs                i686              5.5.25-1.el6.remi              remi              771 k

Transaction Summary
====================================================================================================
Install       4 Package(s)

Total download size: 17 M
Installed size: 77 M
Downloading Packages:
(1/4): libaio-0.3.107-10.el6.i686.rpm                                        |  21 kB     00:00
(2/4): mysql-5.5.25-1.el6.remi.i686.rpm                                      | 5.8 MB     12:36
(3/4): mysql-libs-5.5.25-1.el6.remi.i686.rpm                                 | 771 kB     01:35
(4/4): mysql-server-5.5.25-1.el6.remi.i686.rpm                               |  10 MB     21:41
----------------------------------------------------------------------------------------------------
Total                                                               8.0 kB/s |  17 MB     35:56
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : mysql-libs-5.5.25-1.el6.remi.i686                                                1/4

WARNING : This MySQL RPM is not an official Fedora/Redhat build and it
overrides the official one. Don't file bugs on Fedora Project nor Redhat.
Use dedicated forums http://forums.famillecollet.com/

  Installing : mysql-5.5.25-1.el6.remi.i686                                                     2/4
  Installing : libaio-0.3.107-10.el6.i686                                                       3/4
  Installing : mysql-server-5.5.25-1.el6.remi.i686                                              4/4

Installed:
  mysql.i686 0:5.5.25-1.el6.remi                mysql-server.i686 0:5.5.25-1.el6.remi

Dependency Installed:
  libaio.i686 0:0.3.107-10.el6                  mysql-libs.i686 0:5.5.25-1.el6.remi

Complete!

Start the MySQL daemon service :

[root@centos62 ~]# service mysqld start
Starting mysqld:                                           [  OK  ]

Login to database :

[root@centos62 ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.5.25 MySQL Community Server (GPL) by Remi

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> exit

Check existing MySQL installed related packages :

[root@centos62 ~]# rpm -qa | grep mysql
compat-mysql51-5.1.54-1.el6.remi.i686
mysql-libs-5.5.25-1.el6.remi.i686
mysql-5.5.25-1.el6.remi.i686
mysql-server-5.5.25-1.el6.remi.i686

Check mysql version :

[root@centos62 ~]# mysql -V
mysql  Ver 14.14 Distrib 5.5.25, for Linux (i686) using readline 5.1
[root@centos62 ~]#

How to Install PHP 5.4.4 using Remi Repository on CentOS 6.2

In This post, I will show you on how to install the PHP 5.4.4 packages on CentOS 6.2 using Remi repository. PHP: Hypertext Preprocessor is a widely used, free and open-source server-side scripting language that was especially designed for web development to produce dynamic web pages and can be embedded into HTML. PHP applications are commonly found with the filename extensions .php, .php4, or .php5. PHP does not included in CentOS 6.2 with minimum type of installation.

Prerequisites :
How to Install Remi yum Repository on CentOS 6.2 x86 and x86_64

Simply run the following command to install latest PHP packages :

[root@centos62 ~]# yum install php -y
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * base: centos.ipserverone.com
 * extras: centos.ipserverone.com
 * remi: rpms.famillecollet.com
 * remi-test: rpms.famillecollet.com
 * updates: centos.ipserverone.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.i686 0:5.4.4-1.el6.remi will be installed
--> Processing Dependency: php-common(x86-32) = 5.4.4-1.el6.remi for package: php-5.4.4-1.el6.remi.i686
--> Processing Dependency: php-cli(x86-32) = 5.4.4-1.el6.remi for package: php-5.4.4-1.el6.remi.i686
--> Running transaction check
---> Package php-cli.i686 0:5.4.4-1.el6.remi will be installed
---> Package php-common.i686 0:5.4.4-1.el6.remi will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                Arch             Version                        Repository             Size
====================================================================================================
Installing:
 php                    i686             5.4.4-1.el6.remi               remi-test             2.5 M
Installing for dependencies:
 php-cli                i686             5.4.4-1.el6.remi               remi-test             2.5 M
 php-common             i686             5.4.4-1.el6.remi               remi-test             874 k

Transaction Summary
====================================================================================================
Install       3 Package(s)

Total download size: 5.9 M
Installed size: 21 M
Downloading Packages:
(1/3): php-5.4.4-1.el6.remi.i686.rpm                                         | 2.5 MB     05:58
(2/3): php-cli-5.4.4-1.el6.remi.i686.rpm                                     | 2.5 MB     04:56
(3/3): php-common-5.4.4-1.el6.remi.i686.rpm                                  | 874 kB     01:39
----------------------------------------------------------------------------------------------------
Total                                                               8.0 kB/s | 5.9 MB     12:36
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : php-common-5.4.4-1.el6.remi.i686                                                 1/3

WARNING : These php-* RPM are not official Fedora/Redhat build and
overrides the official ones. Don't file bugs on Fedora Project nor Redhat.

Use dedicated forums http://forums.famillecollet.com/

  Installing : php-cli-5.4.4-1.el6.remi.i686                                                    2/3
  Installing : php-5.4.4-1.el6.remi.i686                                                        3/3

Installed:
  php.i686 0:5.4.4-1.el6.remi

Dependency Installed:
  php-cli.i686 0:5.4.4-1.el6.remi                 php-common.i686 0:5.4.4-1.el6.remi

Complete!

Check the php packages installed :

[root@centos62 ~]# rpm -qa | grep php
php-common-5.4.4-1.el6.remi.i686
php-5.4.4-1.el6.remi.i686
php-cli-5.4.4-1.el6.remi.i686

How to Fix “scp: command not found” on CentOS 6.2/RHEL 6

I get the following error when I try to use SCP command line on CentOS linux server. SCP command is usually used to safely copy files and directories between the remote host without FTP sessions or log in to a remote system directly. SCP command line utility uses SSH to transfer data, so it requires a password or passphrase for confirmation before proceeding with the transfer.

-bash: scp: command not found

The above issue is related to openshh. There are two openssh packages that usually exist on the linux, openssh-server and openssh-clients. You can use the telnet command to check whether the openssh server has been installed or not.

[root@centos62 ~]# telnet localhost 22
Trying ::1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.3

Above telnet command shows that openssh-server has been installed. Therefore, the problem on “scp: command not found” is due to openssh-clients not installed.

Verify the installed package :

[root@centos62 ~]# rpm -qa | grep openssh-*
openssh-server-5.3p1-70.el6.i686
openssh-5.3p1-70.el6.i686

To install openssh-clients, execute the following command :

[root@centos62 ~]# yum install openssh-clients -y

Then try to run scp command :

[root@centos62 ~]# scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2

If you have been returned to the scp message above, that’s mean your openssh-clients package has been installed successfully.

How to Configure MySQL Database Server on Ubuntu 11.10

MySQLIn this post, i will share with you on how to perform basic configuration on MySQL database server on Ubuntu 11.10 linux. As we know, MySQL Server is the world’s most popular open source database and the most demanding Web’s database especially for blogging and to run web applications. Assumed that MySQL database has been installed successfully :

Steps Configure MySQL Database Server on Ubuntu 11.10:

1. Change its bind address. This is for security purpose. Skip this step if the applications and MySQ are running on the same machine.

ehowstuff@ehowstuff:~$ vim /etc/mysql/my.cnf

Original bind address :

bind-address           = localhost

Change to something like this :

bind-address            = 192.168.1.0

2. Set mysql root password
Type the following to access the database :

ehowstuff@ehowstuff:~$ mysql -u root

At mysql console, type the following to set the password :

mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('password');

3. Show user info on the database name’s mysql :

mysql> select user,host,password from mysql.user;
+------------------+-----------------------+-------------------------------------------+
| user             | host                  | password                                  |
+------------------+-----------------------+-------------------------------------------+
| root             | localhost             | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |
| root             | ehowstuff.example.com | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |
| root             | 127.0.0.1             | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |
| debian-sys-maint | localhost             | *0D767A6F1808D25DDAFB4AE43C9BA83063C89ED5 |
+------------------+-----------------------+-------------------------------------------+
4 rows in set (0.00 sec)

Alternatively, you can run this :

mysql> select user,host,password from user;
+------------------+-----------------------+-------------------------------------------+
| user             | host                  | password                                  |
+------------------+-----------------------+-------------------------------------------+
| root             | localhost             | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |
| root             | ehowstuff.example.com | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |
| root             | 127.0.0.1             | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |
| debian-sys-maint | localhost             | *0D767A6F1808D25DDAFB4AE43C9BA83063C89ED5 |
+------------------+-----------------------+-------------------------------------------+
4 rows in set (0.00 sec)

How to Install MySQL Server on Ubuntu 11.10

MySQL ServerMySQL Server is the world’s most popular open source database. MySQL Database powers the most demanding Web, E-commerce and blogging tools. It has multi-threaded, multi-user, fast, robust SQL database server and intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. In this post, i will share on how to install MySQL Server on Ubuntu 11.10 server.

To install MySQL, run the following command on your putty or terminal :

ehowstuff@ehowstuff:~$ sudo apt-get install mysql-server

Example :

ehowstuff@ehowstuff:~$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient16 libnet-daemon-perl
  libplrpc-perl mysql-client-5.1 mysql-client-core-5.1 mysql-common mysql-server-5.1
  mysql-server-core-5.1
Suggested packages:
  libipc-sharedcache-perl libterm-readkey-perl tinyca mailx
The following NEW packages will be installed:
  libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient16 libnet-daemon-perl
  libplrpc-perl mysql-client-5.1 mysql-client-core-5.1 mysql-common mysql-server mysql-server-5.1
  mysql-server-core-5.1
0 upgraded, 12 newly installed, 0 to remove and 79 not upgraded.
Need to get 22.5 MB of archives.
After this operation, 54.5 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main mysql-common all 5.1.62-0ubuntu0.11.10.1 [11.8 kB]
Get:2 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libnet-daemon-perl all 0.48-1 [43.1 kB]
Get:3 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libplrpc-perl all 0.2020-2 [36.0 kB]
Get:4 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libdbi-perl i386 1.616-1build1 [852 kB]
Get:5 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main libmysqlclient16 i386 5.1.62-0ubuntu0.11.10.1 [1,805 kB]
Get:6 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libdbd-mysql-perl i386 4.019-1 [110 kB]
Get:7 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main mysql-client-core-5.1 i386 5.1.62-0ubuntu0.11.10.1 [88.3 kB]
Get:8 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main mysql-client-5.1 i386 5.1.62-0ubuntu0.11.10.1 [8,602 kB]
Get:9 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main mysql-server-core-5.1 i386 5.1.62-0ubuntu0.11.10.1 [4,632 kB]
Get:10 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main mysql-server-5.1 i386 5.1.62-0ubuntu0.11.10.1 [6,259 kB]
Get:11 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libhtml-template-perl all 2.10-1 [65.0 kB]
Get:12 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main mysql-server all 5.1.62-0ubuntu0.11.10.1 [6,406 B]
Fetched 22.5 MB in 3min 14s (116 kB/s)
Preconfiguring packages ...
Selecting previously deselected package mysql-common.
(Reading database ... 68437 files and directories currently installed.)
Unpacking mysql-common (from .../mysql-common_5.1.62-0ubuntu0.11.10.1_all.deb) ...
Selecting previously deselected package libnet-daemon-perl.
Unpacking libnet-daemon-perl (from .../libnet-daemon-perl_0.48-1_all.deb) ...
Selecting previously deselected package libplrpc-perl.
Unpacking libplrpc-perl (from .../libplrpc-perl_0.2020-2_all.deb) ...
Selecting previously deselected package libdbi-perl.
Unpacking libdbi-perl (from .../libdbi-perl_1.616-1build1_i386.deb) ...
Selecting previously deselected package libmysqlclient16.
Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.62-0ubuntu0.11.10.1_i386.deb) ...
Selecting previously deselected package libdbd-mysql-perl.
Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.019-1_i386.deb) ...
Selecting previously deselected package mysql-client-core-5.1.
Unpacking mysql-client-core-5.1 (from .../mysql-client-core-5.1_5.1.62-0ubuntu0.11.10.1_i386.deb) ...
Selecting previously deselected package mysql-client-5.1.
Unpacking mysql-client-5.1 (from .../mysql-client-5.1_5.1.62-0ubuntu0.11.10.1_i386.deb) ...
Selecting previously deselected package mysql-server-core-5.1.
Unpacking mysql-server-core-5.1 (from .../mysql-server-core-5.1_5.1.62-0ubuntu0.11.10.1_i386.deb) ...
Processing triggers for man-db ...
Setting up mysql-common (5.1.62-0ubuntu0.11.10.1) ...
Selecting previously deselected package mysql-server-5.1.
(Reading database ... 68814 files and directories currently installed.)
Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.62-0ubuntu0.11.10.1_i386.deb) ...
Selecting previously deselected package libhtml-template-perl.
Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.10-1_all.deb) ...
Selecting previously deselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.1.62-0ubuntu0.11.10.1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up libnet-daemon-perl (0.48-1) ...
Setting up libplrpc-perl (0.2020-2) ...
Setting up libdbi-perl (1.616-1build1) ...
Setting up libmysqlclient16 (5.1.62-0ubuntu0.11.10.1) ...
Setting up libdbd-mysql-perl (4.019-1) ...
Setting up mysql-client-core-5.1 (5.1.62-0ubuntu0.11.10.1) ...
Setting up mysql-client-5.1 (5.1.62-0ubuntu0.11.10.1) ...
Setting up mysql-server-core-5.1 (5.1.62-0ubuntu0.11.10.1) ...
Setting up mysql-server-5.1 (5.1.62-0ubuntu0.11.10.1) ...
mysql start/running, process 2687
Setting up libhtml-template-perl (2.10-1) ...
Setting up mysql-server (5.1.62-0ubuntu0.11.10.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

Enter Password
MySQL
Re-Enter the password for verification
MySQL

Once the installation is complete, the MySQL server should be started automatically. Check MySQL service :

ehowstuff@ehowstuff:~$ sudo netstat -tap | grep mysql
[sudo] password for ehowstuff:
tcp        0      0 localhost:mysql         *:*                     LISTEN      2687/mysqld
ehowstuff@ehowstuff:~$

If the server is not running correctly, run this command to restart the MySQL database :

ehowstuff@ehowstuff:~$ sudo /etc/init.d/mysql restart

Example :

ehowstuff@ehowstuff:~$ sudo /etc/init.d/mysql restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop mysql ; start mysql. The restart(8) utility is also available.
mysql stop/waiting
mysql start/running, process 2853

Configure MySQL to listen for connections from allowed network, simply change the following to ip :

ehowstuff@ehowstuff:~$ sudo vi /etc/mysql/my.cnf
bind-address            = 192.168.1.0

Restart the MySQL database :

ehowstuff@ehowstuff:~$ sudo /etc/init.d/mysql restart

Example :

ehowstuff@ehowstuff:~$ sudo /etc/init.d/mysql restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop mysql ; start mysql. The restart(8) utility is also available.
mysql stop/waiting
mysql start/running, process 2968

How to Setup Zimbra Collaboration Suite 7.2.0 Mail Server on CentOS 6.2 x86_64

Mail ServerIn this post, i will show you the steps to setup Zimbra Collaboration Suite (ZCS) 7.2.0 Mail Server open source edition on CentOS 6.2 64 bit. Zimbra only released the 64 bit version for Redhat Linux Enteprise 6 (RHEL6) or CentOS 6 operating system. Before you start installing ZCS software, please make sure that all the prerequisites has been configured and install. Also, don’t forget to configure the domain name server (DNS), so that you installation will run smoothly as what documented on this guidelines. For more info on this latest ZCS, please refer to official ZCS 7.2 Open Source release note.

1.Perform the following preparations :
https://webhostinggeeks.com/howto/how-to-prepare-for-zimbra-collaboration-suite-7-1-4-mail-server-installation-on-centos-6-2-x86_64/

2. Setup the DNS properly. In this case, you should have dns zone as below :

;
;       Addresses and other host information.
;
@       IN      SOA     zimbra.lab. admin.zimbra.lab. (
                               2012060801      ; Serial
                               43200      ; Refresh
                               3600       ; Retry
                               3600000    ; Expire
                               2592000 )  ; Minimum

;       Define the nameservers and the mail servers

               IN      NS      ns.zimbra.lab.
               IN      A       192.168.1.100
               IN      MX      10 mail.zimbra.lab.

mail            IN      A       192.168.1.100
ns              IN      A       192.168.1.100

3. Download Zimbra Collaboration Suite 7.1.4 from zimbra official website :

[root@mail ~]# wget http://files2.zimbra.com/downloads/7.2.0_GA/zcs-7.2.0_GA_2669.RHEL6_64.20120410002025.tgz

4. Extract the downloaded zcs file and change directory to extracted zcs folder :

[root@mail ~]# tzar xvf zcs-7.2.0_GA_2669.RHEL6_64.20120410002025.tgz
[root@mail ~]# cd zcs-7.2.0_GA_2669.RHEL6_64.2012041000202

5. Start installing zimbra using the following command. Make sure you put “–platform-override” as this zimbra is install on the operating system other than RHEL :

[root@mail zcs-7.2.0_GA_2669.RHEL6_64.20120410002025]# ./install.sh --platform-override

Operations logged to /tmp/install.log.1572
Checking for existing installation...
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-snmp...NOT FOUND
    zimbra-store...NOT FOUND
    zimbra-apache...NOT FOUND
    zimbra-spell...NOT FOUND
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-cluster...NOT FOUND
    zimbra-core...NOT FOUND


PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.

License Terms for the Zimbra Collaboration Suite:
  http://www.zimbra.com/license/zimbra_public_eula_2.1.html



Do you agree with the terms of the software license agreement? [N] y

Checking for prerequisites...
     FOUND: NPTL
     FOUND: nc-1.84-22
     FOUND: sudo-1.7.4p5-7
     FOUND: libidn-1.18-2
     FOUND: gmp-4.3.1-7
     FOUND: /usr/lib64/libstdc++.so.6
Checking for suggested prerequisites...
     FOUND: perl-5.10.1
     FOUND: sysstat
     FOUND: sqlite
Prerequisite check complete.

Checking for installable packages

Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy


Select the packages to install

Install zimbra-ldap [Y]

Install zimbra-logger [Y]

Install zimbra-mta [Y]

Install zimbra-snmp [Y]

Install zimbra-store [Y]

Install zimbra-apache [Y]

Install zimbra-spell [Y]

Install zimbra-memcached [N]

Install zimbra-proxy [N]
Checking required space for zimbra-core
checking space for zimbra-store

Installing:
    zimbra-core
    zimbra-ldap
    zimbra-logger
    zimbra-mta
    zimbra-snmp
    zimbra-store
    zimbra-apache
    zimbra-spell

You appear to be installing packages on a platform different
than the platform for which they were built.

This platform is CentOS6_64
Packages found: RHEL6_64
This may or may not work.

Using packages for a platform in which they were not designed for
may result in an installation that is NOT usable. Your support
options may be limited if you choose to continue.


Install anyway? [N] y

The system will be modified.  Continue? [N] y

Removing /opt/zimbra
Removing zimbra crontab entry...done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/ld.so.conf...done.
Cleaning up /etc/security/limits.conf...done.

Finished removing Zimbra Collaboration Suite.

Installing packages

    zimbra-core......zimbra-core-7.2.0_GA_2669.RHEL6_64-20120410002025.x86_64.rpm...done
    zimbra-ldap......zimbra-ldap-7.2.0_GA_2669.RHEL6_64-20120410002025.x86_64.rpm...done
    zimbra-logger......zimbra-logger-7.2.0_GA_2669.RHEL6_64-20120410002025.x86_64.rpm...done
    zimbra-mta......zimbra-mta-7.2.0_GA_2669.RHEL6_64-20120410002025.x86_64.rpm...done
    zimbra-snmp......zimbra-snmp-7.2.0_GA_2669.RHEL6_64-20120410002025.x86_64.rpm...done
    zimbra-store......zimbra-store-7.2.0_GA_2669.RHEL6_64-20120410002025.x86_64.rpm...done
    zimbra-apache......zimbra-apache-7.2.0_GA_2669.RHEL6_64-20120410002025.x86_64.rpm...done
    zimbra-spell......zimbra-spell-7.2.0_GA_2669.RHEL6_64-20120410002025.x86_64.rpm...done
Operations logged to /tmp/zmsetup.06082012-085913.log
Installing LDAP configuration database...done.
Setting defaults...

DNS ERROR resolving MX for mail.zimbra.lab
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes]
Create domain: [mail.zimbra.lab] zimbra.lab
        MX: mail.zimbra.lab (192.168.1.100)

        Interface: 192.168.1.100
        Interface: 127.0.0.1
done.
Checking for port conflicts

Main menu

   1) Common Configuration:
   2) zimbra-ldap:                             Enabled
   3) zimbra-store:                            Enabled
        +Create Admin User:                    yes
        +Admin user to create:                 admin@zimbra.lab
******* +Admin Password                        UNSET
        +Anti-virus quarantine user:           virus-quarantine.yjeejv_dpa@zimbra.lab
        +Enable automated spam training:       yes
        +Spam training user:                   spam.fgupk8pwc@zimbra.lab
        +Non-spam(Ham) training user:          ham.0r0ct8ky@zimbra.lab
        +SMTP host:                            mail.zimbra.lab
        +Web server HTTP port:                 80
        +Web server HTTPS port:                443
        +Web server mode:                      http
        +IMAP server port:                     143
        +IMAP server SSL port:                 993
        +POP server port:                      110
        +POP server SSL port:                  995
        +Use spell check server:               yes
        +Spell server URL:                     http://mail.zimbra.lab:7780/aspell.php
        +Configure for use with mail proxy:    FALSE
        +Configure for use with web proxy:     FALSE
        +Enable version update checks:         TRUE
        +Enable version update notifications:  TRUE
        +Version update notification email:    admin@zimbra.lab
        +Version update source email:          admin@zimbra.lab

   4) zimbra-mta:                              Enabled
   5) zimbra-snmp:                             Enabled
   6) zimbra-logger:                           Enabled
   7) zimbra-spell:                            Enabled
   8) Default Class of Service Configuration:
   r) Start servers after configuration        yes
   s) Save config to file
   x) Expand menu
   q) Quit

Address unconfigured (**) items  (? - help) 3


Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@zimbra.lab
** 4) Admin Password                           UNSET
   5) Anti-virus quarantine user:              virus-quarantine.yjeejv_dpa@zimbra.lab
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.fgupk8pwc@zimbra.lab
   8) Non-spam(Ham) training user:             ham.0r0ct8ky@zimbra.lab
   9) SMTP host:                               mail.zimbra.lab
  10) Web server HTTP port:                    80
  11) Web server HTTPS port:                   443
  12) Web server mode:                         http
  13) IMAP server port:                        143
  14) IMAP server SSL port:                    993
  15) POP server port:                         110
  16) POP server SSL port:                     995
  17) Use spell check server:                  yes
  18) Spell server URL:                        http://mail.zimbra.lab:7780/aspell.php
  19) Configure for use with mail proxy:       FALSE
  20) Configure for use with web proxy:        FALSE
  21) Enable version update checks:            TRUE
  22) Enable version update notifications:     TRUE
  23) Version update notification email:       admin@zimbra.lab
  24) Version update source email:             admin@zimbra.lab

Select, or 'r' for previous menu [r] 4

Password for admin@zimbra.lab (min 6 characters): [NvRw0ymD] password

Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@zimbra.lab
   4) Admin Password                           set
   5) Anti-virus quarantine user:              virus-quarantine.yjeejv_dpa@zimbra.lab
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.fgupk8pwc@zimbra.lab
   8) Non-spam(Ham) training user:             ham.0r0ct8ky@zimbra.lab
   9) SMTP host:                               mail.zimbra.lab
  10) Web server HTTP port:                    80
  11) Web server HTTPS port:                   443
  12) Web server mode:                         http
  13) IMAP server port:                        143
  14) IMAP server SSL port:                    993
  15) POP server port:                         110
  16) POP server SSL port:                     995
  17) Use spell check server:                  yes
  18) Spell server URL:                        http://mail.zimbra.lab:7780/aspell.php
  19) Configure for use with mail proxy:       FALSE
  20) Configure for use with web proxy:        FALSE
  21) Enable version update checks:            TRUE
  22) Enable version update notifications:     TRUE
  23) Version update notification email:       admin@zimbra.lab
  24) Version update source email:             admin@zimbra.lab

Select, or 'r' for previous menu [r]

Main menu

   1) Common Configuration:
   2) zimbra-ldap:                             Enabled
   3) zimbra-store:                            Enabled
   4) zimbra-mta:                              Enabled
   5) zimbra-snmp:                             Enabled
   6) zimbra-logger:                           Enabled
   7) zimbra-spell:                            Enabled
   8) Default Class of Service Configuration:
   r) Start servers after configuration        yes
   s) Save config to file
   x) Expand menu
   q) Quit

*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes]
Save config in file: [/opt/zimbra/config.7018]
Saving config in /opt/zimbra/config.7018...done.
The system will be modified - continue? [No] yes
Operations logged to /tmp/zmsetup.06082012-085913.log
Setting local config values...done.
Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating SSL certificate...done.
Installing mailboxd SSL certificates...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Creating server entry for mail.zimbra.lab...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on mail.zimbra.lab...done.
Adding mail.zimbra.lab to zimbraMailHostPool in default COS...done.
Installing webclient skins...
        smoke...done.
        pebble...done.
        carbon...done.
        lavender...done.
        waves...done.
        bones...done.
        bare...done.
        hotrod...done.
        oasis...done.
        sky...done.
        tree...done.
        beach...done.
        steel...done.
        twilight...done.
        lemongrass...done.
        sand...done.
        lake...done.
Finished installing webclient skins.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting MTA auth host...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on mail.zimbra.lab...done.
Creating domain zimbra.lab...done.
Setting default domain name...done.
Creating domain zimbra.lab...already exists.
Creating admin account admin@zimbra.lab...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.fgupk8pwc@zimbra.lab...done.
Creating user ham.0r0ct8ky@zimbra.lab...done.
Creating user virus-quarantine.yjeejv_dpa@zimbra.lab...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for mail.zimbra.lab...done.
Configuring SNMP...done.
Checking for default IM conference room...not present.
Initializing default IM conference room...done.
Setting up syslog.conf...done.

You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Suite.
The only information that will be transmitted is:
        The VERSION of zcs installed (7.2.0_GA_2669_CentOS6_64)
        The ADMIN EMAIL ADDRESS created (admin@zimbra.lab)

Notify Zimbra of your installation? [Yes] no
Notification skipped
Starting servers...done.
Installing common zimlets...
        com_zimbra_srchhighlighter...done.
        com_zimbra_cert_manager...done.
        com_zimbra_linkedin...done.
        com_zimbra_adminversioncheck...done.
        com_zimbra_email...done.
        com_zimbra_phone...done.
        com_zimbra_url...done.
        com_zimbra_date...done.
        com_zimbra_attachmail...done.
        com_zimbra_bulkprovision...done.
        com_zimbra_dnd...done.
        com_zimbra_webex...done.
        com_zimbra_social...done.
        com_zimbra_attachcontacts...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Setting up zimbra crontab...done.


Moving /tmp/zmsetup.06082012-085913.log to /opt/zimbra/log


Configuration complete - press return to exit

6. Check zimbra status :

[root@mail ~]# su - zimbra
[zimbra@mail ~]$ zmcontrol status
Host mail.zimbra.lab
        antispam                Running
        antivirus               Running
        ldap                    Running
        logger                  Running
        mailbox                 Running
        mta                     Running
        snmp                    Running
        spell                   Running
        stats                   Running
        zmconfigd               Running

7. How to stop and start zimbra :

[root@mail ~]# su - zimbra
[zimbra@mail ~]$ zmcontrol stop
[zimbra@mail ~]$ zmcontrol start

How to Setup Webmin 1.580 on CentOS 5.8

CentOS 5.8This quick post will show you the steps on installing webmin, the web-based system configuration and administration tool on linux CentOS 5.8 server. There are three alternative way to setup webmin which using RPM, YUM command and using Tar file. After setup webmin, you will be able to do linux system administration task using Graphical User Interface (GUI) which is good for linux newbie who not familiar with command line.

Option 1 : Setup Webmin using RPM

1. Download required RPM file here (http://download.webmin.com/download/yum/)

[root@centos58 ~]# wget http://download.webmin.com/download/yum/webmin-1.580-1.noarch.rpm

or

[root@centos58 ~]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm

Example :

[root@centos58 ~]# wget http://download.webmin.com/download/yum/webmin-1.580-1.noarch.rpm
--2012-06-08 05:34:12--  http://download.webmin.com/download/yum/webmin-1.580-1.noarch.rpm
Resolving download.webmin.com... 67.228.198.100
Connecting to download.webmin.com|67.228.198.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17112780 (16M) [application/x-rpm]
Saving to: `webmin-1.580-1.noarch.rpm'

100%[==========================================================>] 17,112,780   118K/s   in 3m 2s

2012-06-08 05:37:15 (91.9 KB/s) - `webmin-1.580-1.noarch.rpm' saved [17112780/17112780]

2. Download and import my GPG key with which the packages are signed, with the commands :

[root@centos58 ~]# wget http://www.webmin.com/jcameron-key.asc
[root@centos58 ~]# rpm --import jcameron-key.asc

3. Install RPM version of Webmin as below :

[root@centos58 ~]# rpm -Uvh webmin-1.580-1.noarch.rpm
Preparing...                ########################################### [100%]
Operating system is CentOS Linux
   1:webmin                 ########################################### [100%]
Webmin install complete. You can now login to http://centos58.ehowtuff.local:10000/
as root with your root password.

Option 2 : Setup Webmin using YUM

1. Login to your CentOS server with root privileges.
2. Download and import my GPG key with which the packages are signed, with the commands :

[root@centos58 ~]# wget http://www.webmin.com/jcameron-key.asc
[root@centos58 ~]# rpm --import jcameron-key.asc

3. To install and update Webmin via RPM through yum, you have to create webmin.repo on /etc/yum.repos.d directory as below:

[root@centos58 ~]# vi /etc/yum.repos.d/webmin.repo
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1

4. Install with yum command :

[root@centos58 ~]# yum install webmin -y

Example :

[root@centos58 ~]# yum install webmin -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * Webmin: download.webmin.com
 * base: mirror.nus.edu.sg
 * epel: mirror.nus.edu.sg
 * extras: mirror.nus.edu.sg
 * rpmforge: mirror.oscc.org.my
 * updates: mirror.as24220.net
Webmin                                                                       |  951 B     00:00
Webmin/primary                                                               |  13 kB     00:00
Webmin                                                                                      102/102
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package webmin.noarch 0:1.580-1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                Arch                   Version                 Repository              Size
====================================================================================================
Installing:
 webmin                 noarch                 1.580-1                 Webmin                  16 M

Transaction Summary
====================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 16 M
Downloading Packages:
webmin-1.580-1.noarch.rpm                                                    |  16 MB     02:39
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Operating system is CentOS Linux
  Installing     : webmin                                                                       1/1
Webmin install complete. You can now login to http://centos58.ehowtuff.local:10000/
as root with your root password.

Installed:
  webmin.noarch 0:1.580-1

Complete!

Option 3 : Setup Webmin using Tar File

Before downloading Webmin, please make sure that Perl 5 has been installed on your CentOS 5.8.
1. Download and extract the tar file :

[root@centos58 ~]# cd /tmp
[root@centos58 tmp]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580.tar.gz
[root@centos58 tmp]# tar xzf webmin-1.580.tar.gz

2. Run ./setup.sh to install the webmin on /usr/local/webmin.

[root@centos58 tmp]# cd webmin-1.580
[root@centos58 webmin-1.580]# ./setup.sh /usr/local/webmin

This is just an example and the default admin was admin and the password is password.

[root@centos58 webmin-1.580]# ./setup.sh /usr/local/webmin
***********************************************************************
*            Welcome to the Webmin setup script, version 1.580        *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.

Installing Webmin from /tmp/webmin-1.580 to /usr/local/webmin ...

***********************************************************************
Webmin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Webmin at the same time
you can just accept the defaults.

Config file directory [/etc/webmin]:
Log file directory [/var/webmin]:

***********************************************************************
Webmin is written entirely in Perl. Please enter the full path to the
Perl 5 interpreter on your system.

Full path to perl (default /usr/bin/perl):

Testing Perl ...
Perl seems to be installed ok

***********************************************************************
Operating system name:    CentOS Linux
Operating system version: 5.8

***********************************************************************
Webmin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
 - What port to run the web server on. There must not be another
   web server already using this port.
 - The login name required to access the web server.
 - The password required to access the web server.
 - If the webserver should use SSL (if your system supports it).
 - Whether to start webmin at boot time.

Web server port (default 10000):
Login name (default admin):
Login password:
Password again:
The Perl SSLeay library is not installed. SSL not available.
Start Webmin at boot time (y/n): y
***********************************************************************
Copying files to /usr/local/webmin ..
..done

Creating web server config files..
..done

Creating access control file..
..done

Inserting path to perl into scripts..
..done

Creating start and stop scripts..
..done

Copying config files..
..done

Configuring Webmin to start at boot time..
Created init script /etc/rc.d/init.d/webmin
..done

Creating uninstall script /etc/webmin/uninstall.sh ..
..done

Changing ownership and permissions ..
..done

Running postinstall scripts ..
PID file /var/webmin/miniserv.pid does not exist
Subroutine setup_ca redefined at /usr/local/webmin/webmin/webmin-lib.pl line 72.
Subroutine install_webmin_module redefined at /usr/local/webmin/webmin/webmin-lib.pl line 122.
Subroutine grant_user_module redefined at /usr/local/webmin/webmin/webmin-lib.pl line 419.
Subroutine delete_webmin_module redefined at /usr/local/webmin/webmin/webmin-lib.pl line 460.
Subroutine file_basename redefined at /usr/local/webmin/webmin/webmin-lib.pl line 569.
Subroutine gnupg_setup redefined at /usr/local/webmin/webmin/webmin-lib.pl line 583.
Subroutine list_standard_modules redefined at /usr/local/webmin/webmin/webmin-lib.pl line 611.
Subroutine standard_chooser_button redefined at /usr/local/webmin/webmin/webmin-lib.pl line 643.
Subroutine list_third_modules redefined at /usr/local/webmin/webmin/webmin-lib.pl line 656.
Subroutine third_chooser_button redefined at /usr/local/webmin/webmin/webmin-lib.pl line 688.
Subroutine get_webmin_base_version redefined at /usr/local/webmin/webmin/webmin-lib.pl line 699.
Subroutine base_version redefined at /usr/local/webmin/webmin/webmin-lib.pl line 709.
Subroutine get_newmodule_users redefined at /usr/local/webmin/webmin/webmin-lib.pl line 720.
Subroutine save_newmodule_users redefined at /usr/local/webmin/webmin/webmin-lib.pl line 742.
Subroutine get_miniserv_sockets redefined at /usr/local/webmin/webmin/webmin-lib.pl line 766.
Subroutine fetch_updates redefined at /usr/local/webmin/webmin/webmin-lib.pl line 814.
Subroutine check_update_signature redefined at /usr/local/webmin/webmin/webmin-lib.pl line 881.
Subroutine find_cron_job redefined at /usr/local/webmin/webmin/webmin-lib.pl line 912.
Subroutine get_ipkeys redefined at /usr/local/webmin/webmin/webmin-lib.pl line 924.
Subroutine save_ipkeys redefined at /usr/local/webmin/webmin/webmin-lib.pl line 945.
Subroutine validate_key_cert redefined at /usr/local/webmin/webmin/webmin-lib.pl line 977.
Subroutine detect_operating_system redefined at /usr/local/webmin/webmin/webmin-lib.pl line 998.
Subroutine show_webmin_notifications redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1033.
Subroutine get_webmin_notifications redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1049.
Subroutine get_system_uptime redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1238.
Subroutine list_operating_systems redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1285.
Subroutine shared_root_directory redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1310.
Subroutine submit_os_info redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1347.
Subroutine get_webmin_id redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1375.
Subroutine ip_match redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1391.
Subroutine prefix_to_mask redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1477.
Subroutine valid_allow redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1491.
Subroutine get_preloads redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1536.
Subroutine save_preloads redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1548.
Subroutine get_tempdirs redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1559.
Subroutine save_tempdirs redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1576.
Subroutine get_module_install_type redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1595.
Subroutine get_install_type redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1612.
Subroutine list_cached_files redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1642.
Subroutine show_restart_page redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1661.
Subroutine cert_info redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1679.
Subroutine cert_pem_data redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1720.
Subroutine cert_pkcs12_data redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1735.
Subroutine get_blocked_users_hosts redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1761.
Subroutine show_ssl_key_form redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1789.
Subroutine parse_ssl_key_form redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1833.
Subroutine build_installed_modules redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1906.
Subroutine get_latest_webmin_version redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1948.
Subroutine filter_updates redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1981.
Subroutine list_keys redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 23.
Subroutine list_keys_sorted redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 74.
Subroutine list_secret_keys redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 82.
Subroutine key_fingerprint redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 88.
Subroutine get_passphrase redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 105.
Subroutine put_passphrase redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 116.
Subroutine encrypt_data redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 128.
Subroutine decrypt_data redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 167.
Subroutine sign_data redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 224.
Subroutine verify_data redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 283.
Subroutine read_entire_file redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 327.
Subroutine write_entire_file redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 339.
Subroutine get_trust_level redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 349.
Subroutine delete_key redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 371.
Subroutine default_email_address redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 398.
Subroutine fetch_gpg_key redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 415.
Subroutine search_gpg_keys redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 442.
..done

Enabling background status collection ..
PID file /var/webmin/miniserv.pid does not exist
..done

Attempting to start Webmin mini web server..
Starting Webmin server in /usr/local/webmin
Pre-loaded WebminCore
..done

***********************************************************************
Webmin has been installed and started successfully. Use your web
browser to go to

  http://centos58.ehowtuff.local:10000/

and login with the name and password you entered previously.

How to start webmin :

[root@centos58 ~]# service webmin start

or

[root@centos58 ~]# /etc/init.d/webmin start

How to stop webmin :

[root@centos58 ~]# service webmin stop
Stopping Webmin server in /usr/local/webmin

or

[root@centos58 ~]# /etc/init.d/webmin stop
Stopping Webmin server in /usr/local/webmin

How to check webmin status :

[root@centos58 ~]# /etc/init.d/webmin status
webmin (pid 5070) is running

or

[root@centos58 ~]# service webmin status
webmin (pid 4834) is running

How to Create Account on Zimbra using zmprov Tool

zmprovThe zmprov command is a tool that can performs all provisioning tasks in Zimbra LDAP, including creating accounts, aliases, domains, distribution lists, and calendar resources. Each operation or command is invoked through command-line options, each of which has a long name and a short name. In this post i will share on how to create an account on Zimbra Collaboration Suite using zmprov command tool :

1. Login as zimbra user :

[root@mail ~]# su - zimbra

2. Perform the following zmprov tool to create zimbra account with display name but without password. If the zimbra mail host is connected to external ldap, set password is not required :

[zimbra@mail ~]$ zmprov ca demo@zimbra.local "" displayName "Demo Account"
eb0eb381-4018-49d0-92d5-153291e6e18b

3. If the account(demo@zimbra.local) is using the zimbra LDAP password (internal), you can use this command to change any password. Simply enter the address of the password to be changed as below :
SetPassword = sa
zmprov sp {name@domain} {password}

[zimbra@mail ~]$ zmprov sp demo@zimbra.local password