Puppet : Automate/Reset first time root password for MySQL 5.7.x

Hello,

This article will help you reset first time root password for MySQL 5.7.x with Puppet.

I was looking for some custom puppet code/module to automate first root password for MySQL 5.7.x, I didn’t get proper puppet code to get through so I have decided to try and run my own code with puppet.

Puppet with MySQL 5.7
Puppet Labs

Pre-requisites :-

1. MySQL 5.7.x version should be installed before running this manifest/module.

Following are the steps to create Puppet module to reset first time password for MySQL 5.7.x

1. Make Puppet Module directory mysql

mkdir /etc/puppetlabs/code/environments/production/modules/

2. Create manifests directory.

mkdir /etc/puppetlabs/code/environments/production/modules/mysqlserver/manifests

3. Now create init.pp and put following code to the file.

class mysql57pwreset(
 $mysql_password = 'MySQL@99#') #Set password of your choice within single quotes
{
 
service { "mysqld":
 enable => true,
 ensure => running,
 }

$mysqlpwstring = "MYPW=$(grep 'temporary password' /var/log/mysqld.log | awk '{print \$NF}' | tail -n1) && mysql -uroot -p\${MYPW} --connect-expired-password -e \"ALTER USER 'root'@'localhost' IDENTIFIED BY '$mysql_password' PASSWORD EXPIRE NEVER;\""

File { "/tmp/mysql-pw.sh":
 content => $mysqlpwstring,
 mode => "0700",
 owner => "root",
 group => "root",
}


exec { "set-mysql-pw":
 path => [ '/bin', '/usr/bin', '/usr/local/bin', '/usr/sbin' ],
 unless => "mysqladmin -uroot -p$mysql_password status",
 require => Service["mysqld"],
 command => "sh /tmp/mysql-pw.sh",
 logoutput => on_failure,
}

}

4. Include mysql57pwreset module to /etc/puppetlabs/code/environments/production/manifests/site.pp

5. That’s it. Now you can execute puppet agent -t on puppet agent node, It will reset MySQL 5.7.x password.

Like us on Facebook : https://www.facebook.com/AllLinuxUsersBlog

Changing LDAP User’s Password Web-Based / 389-ds / Redhat-ds / Fedora-DS / LDAP

Hello,

This article will show you how to change password of LDAP Users.

In This Article, I have demonstrated that How to change your Password for those users which are in 389-ds or Redhat-ds.

This is very simple you just need to change few parameters and You will able to change password of Ldap users from 389-ds.

Note :- If you have not Customized LDAP Attributes or Access Rights for Changing Password then it will work, I have Successfully tested the same on RHEL / CentOS 5.x / CentOS 6.x / RHEL 6.x and 389-ds.

Perform Following steps for the same.

Step 1:- Make Sure your LDAP Configured and You have correct Suffix ( i.e dc=tejasbarot,dc=com )

Step 2 :- Make Sure php-ldap Package is installed.

[root@tejas-barot-linux-support-ahmedabad ~]# yum install php-ldap

Step 3 :- Download the Following PHP Script, Thanks to the Original Script I have Modified Suffix for Understanding Purpose.

[root@tejas-barot-linux-support-ahmedabad ~]# wget -c http://www.tejasbarot.com/Scripts/ldap_pass_change.phps

Steps 4:- Now Rename the Script from ldap_pass_change.phps to ldap_pass_change.php

Step 5 :- Now Modify the Suffix in .php file, Open PHP File and Modify 3rd Line which Contains $dn

Change $dn 
from 
$dn = "dc=tejasbarot,dc=com"
TO
$dn = "dc=your,dc=suffix"
Save and Exit from File

Step 6:- Put this Script to your WebRoot Directory (i.e. /var/www/html/ )

Step 7:- Make Sure That PHP Script is executable by your Webserver through URL (i.e. http://ldap.tejasbarot.com or http://localhost/ldap_pass_change.php or http://192.168.1.10/ldap_pass_change.php )

You will able to see Following Screen :-

LDAP Change Password
LDAP Change Password

 

Step 6:- Now Put Values Like Below Screen Shot :-

 

Fill the Text Boxes
Fill the Text Boxes

 

Step 7 :- Once Password get changed, You will get a Notifications like below :-

 

Successful Password Change
Successful Password Change

 

Thanks to Original Script :- http://www.warden.pl/docs/pass.phps

Hope this will helps you all, If you face any issue regarding the same or its not working for your some how then please raise your questions / issues then comment down below.

If you like this then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

All Linux User’s Blog Mobile Applications :- http://www.tejasbarot.com/download-mobile-apps/

Please Keep in Touch with Social Networking :- 

Facebook Page :- https://www.facebook.com/AllLinuxUsersBlog

Enjoy LDAP 🙂 Enjoy Changing Passwords 🙂 Enjoy Linux 🙂 Enjoy Open Source

 

Virtualization With KVM On A CentOS 6.4 Server

Dear,

This guide explains how you can install and use KVM for creating and running virtual machines on a CentOS 6.4 server. I will show how to create image-based virtual machines and also virtual machines that use a logical volume (LVM). KVM is short for Kernel-based Virtual Machine and makes use of hardware virtualization, i.e., you need a CPU that supports hardware virtualization, e.g. Intel VT or AMD-V.

I do not issue any guarantee that this will work for you!

Virtualization
Virtualization

1 Preliminary Note

I’m using a CentOS 6.4 server with the hostname server1.example.com and the IP address 192.168.0.100 here as my KVM host.

I had SELinux disabled on my CentOS 6.4 system. I didn’t test with SELinux on; it might work, but if not, you better switch off SELinux as well:

vi /etc/selinux/config

Set SELINUX=disabled…

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

… and reboot:

reboot

We also need a desktop system where we install virt-manager so that we can connect to the graphical console of the virtual machines that we install. I’m using a Fedora 17 desktop here.

 

2 Installing KVM

CentOS 6.4 KVM Host:

First check if your CPU supports hardware virtualization – if this is the case, the command

egrep ‘(vmx|svm)’ –color=always /proc/cpuinfo

should display something, e.g. like this:

[root@server1 ~]# egrep ‘(vmx|svm)’ –color=always /proc/cpuinfo
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall
nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy misalignsse
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall
nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy misalignsse
[root@server1 ~]#

If nothing is displayed, then your processor doesn’t support hardware virtualization, and you must stop here.

Now we import the GPG keys for software packages:

rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY*

To install KVM and virtinst (a tool to create virtual machines), we run

yum install kvm libvirt python-virtinst qemu-kvm

Then start the libvirt daemon:

/etc/init.d/libvirtd start

To check if KVM has successfully been installed, run

virsh -c qemu:///system list

It should display something like this:

[root@server1 ~]# virsh -c qemu:///system list
Id Name                 State
———————————-

[root@server1 ~]#

If it displays an error instead, then something went wrong.

Next we need to set up a network bridge on our server so that our virtual machines can be accessed from other hosts as if they were physical systems in the network.

To do this, we install the package bridge-utils…

yum install bridge-utils

… and configure a bridge. Create the file /etc/sysconfig/network-scripts/ifcfg-br0 (please use the IPADDR, PREFIX, GATEWAY, DNS1 and DNS2 values from the /etc/sysconfig/network-scripts/ifcfg-eth0 file); make sure you use TYPE=Bridge, not TYPE=Ethernet:

vi /etc/sysconfig/network-scripts/ifcfg-br0

DEVICE="br0"
NM_CONTROLLED="yes"
ONBOOT=yes
TYPE=Bridge
BOOTPROTO=none
IPADDR=192.168.0.100
PREFIX=24
GATEWAY=192.168.0.1
DNS1=8.8.8.8
DNS2=8.8.4.4
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System br0"

Modify /etc/sysconfig/network-scripts/ifcfg-eth0 as follows (comment out BOOTPROTO, IPADDR, PREFIX, GATEWAY, DNS1, and DNS2 and add BRIDGE=br0):

vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE="eth0"
#BOOTPROTO=none
NM_CONTROLLED="yes"
ONBOOT=yes
TYPE="Ethernet"
UUID="73cb0b12-1f42-49b0-ad69-731e888276ff"
HWADDR=00:1E:90:F3:F0:02
#IPADDR=192.168.0.100
#PREFIX=24
#GATEWAY=192.168.0.1
#DNS1=8.8.8.8
#DNS2=8.8.4.4
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
BRIDGE=br0

Restart the network…

/etc/init.d/network restart

… and run

ifconfig

It should now show the network bridge (br0):

[root@server1 ~]# ifconfig
br0       Link encap:Ethernet  HWaddr 00:1E:90:F3:F0:02
inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0
inet6 addr: fe80::21e:90ff:fef3:f002/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:460 (460.0 b)  TX bytes:2298 (2.2 KiB)

eth0      Link encap:Ethernet  HWaddr 00:1E:90:F3:F0:02
inet6 addr: fe80::21e:90ff:fef3:f002/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:18455 errors:0 dropped:0 overruns:0 frame:0
TX packets:11861 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:26163057 (24.9 MiB)  TX bytes:1100370 (1.0 MiB)
Interrupt:25 Base address:0xe000

lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING  MTU:16436  Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2456 (2.3 KiB)  TX bytes:2456 (2.3 KiB)

virbr0    Link encap:Ethernet  HWaddr 52:54:00:AC:AC:8F
inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

[root@server1 ~]#

 

3 Installing virt-viewer Or virt-manager On Your Fedora 17 Desktop

Fedora 17 Desktop:

We need a means of connecting to the graphical console of our guests – we can use virt-manager for this. I’m assuming that you’re using a Fedora 17 desktop.

Become root…

su

… and run…

yum install virt-manager libvirt qemu-system-x86 openssh-askpass

… to install virt-manager.

(If you’re using an Ubuntu 12.04 desktop, you can install virt-manager as follows:

sudo apt-get install virt-manager

)

 

4 Creating A Debian Squeeze Guest (Image-Based) From The Command Line

CentOs 6.4 KVM Host:

Now let’s go back to our CentOS 6.4 KVM host.

Take a look at

man virt-install

to learn how to use virt-install.

We will create our image-based virtual machines in the directory /var/lib/libvirt/images/ which was created automatically when we installed KVM in chapter two.

To create a Debian Squeeze guest (in bridging mode) with the name vm10, 512MB of RAM, two virtual CPUs, and the disk image /var/lib/libvirt/images/vm10.img (with a size of 12GB), insert the Debian Squeeze Netinstall CD into the CD drive and run

virt-install –connect qemu:///system -n vm10 -r 512 –vcpus=2 –disk path=/var/lib/libvirt/images/vm10.img,size=12 -c /dev/cdrom –vnc –noautoconsole –os-type linux –os-variant debiansqueeze –accelerate –network=bridge:br0 –hvm

Of course, you can also create an ISO image of the Debian Squeeze Netinstall CD (please create it in the /var/lib/libvirt/images/ directory because later on I will show how to create virtual machines through virt-manager from your Fedora desktop, and virt-manager will look for ISO images in the /var/lib/libvirt/images/ directory)…

dd if=/dev/cdrom of=/var/lib/libvirt/images/debian-6.0.5-amd64-netinst.iso

… and use the ISO image in the virt-install command:

virt-install –connect qemu:///system -n vm10 -r 512 –vcpus=2 –disk path=/var/lib/libvirt/images/vm10.img,size=12 -c /var/lib/libvirt/images/debian-6.0.5-amd64-netinst.iso –vnc –noautoconsole –os-type linux –os-variant debiansqueeze –accelerate –network=bridge:br0 –hvm

The output is as follows:

[root@server1 ~]# virt-install –connect qemu:///system -n vm10 -r 512 –vcpus=2 –disk path=/var/lib/libvirt/images/vm10.img,size=12 -c /var/lib/libvirt/images/debian-6.0.5-amd64-netinst.iso –vnc –noautoconsole –os-type linux –os-variant debiansqueeze –accelerate –network=bridge:br0 –hvm

Starting install…
Allocating ‘vm10.img’              |  12 GB     00:00
Creating domain…                 |    0 B     00:00
Domain installation still in progress. You can reconnect to
the console to complete the installation process.
[root@server1 ~]#

Click on Link for Page 2 :- http://www.howtoforge.com/virtualization-with-kvm-on-a-centos-6.4-server-p2

Click on Link for Page 3 :- http://www.howtoforge.com/virtualization-with-kvm-on-a-centos-6.4-server-p3

Click on Link for Page 4 :- http://www.howtoforge.com/virtualization-with-kvm-on-a-centos-6.4-server-p4

Click on Link for Page 5 :- http://www.howtoforge.com/virtualization-with-kvm-on-a-centos-6.4-server-p5

Original Link :- http://www.howtoforge.com/virtualization-with-kvm-on-a-centos-6.4-server

Hope this will helps you all, If you face any issue regarding the same or its not working for your some how then please raise your questions / issues then comment down below.

If you like this then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

All Linux User’s Blog Mobile Applications :- http://www.tejasbarot.com/download-mobile-apps/

Please Keep in Touch with Social Networking :- 

Facebook Page :- https://www.facebook.com/AllLinuxUsersBlog

Enjoy Virtualization on Linux 🙂 Enjoy Linux 🙂 Enjoy Linux Open Source 🙂

Howto: Install VirtualBox 4.2.10 on RHEL / CentOS 6.x / Linux

Dear All,

VirtualBox is an Open Source Cross Virtualization Software, By Installing VirtualBox You can Install Multiple Guest Operating Systems.

I am sharing this Howto to Install VirtualBox 4.2.10 on Linux ( RHEL  and CentOS 6.x ).

By Following Instructions You will able to Install and Run VirtualBox 4.2.10 on Linux.

Oracle VirtualBox
Oracle VirtualBox

Perform Following steps to Install VirtualBox on Linux | CentOs | RHEL 6.x

1. You need to be root to perform this Howto.

2.  Configure Repositories :-

# Download and Install EPEL Repository 

[root@linux-support-ahmedabad-tejas-barot ~]# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

[root@linux-support-ahmedabad-tejas-barot ~]# rpm -Uvh epel-release-6-8.noarch.rpm

# Configure VirtualBox Repository

[root@linux-support-ahmedabad-tejas-barot ~]# cd /etc/yum.repos.d/ 

[root@linux-support-ahmedabad-tejas-barot yum.repos.d]# wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo

[root@linux-support-ahmedabad-tejas-barot yum.repos.d]# cd

3. Installing Dependencies for VirtualBox

[root@linux-support-ahmedabad-tejas-barot ~]# yum install binutils  gcc kernel-headers kernel-devel make libgomp glibc-headers glibc-devel patch  dkms qt

4. Finally Lets Start Installing VirtualBox 4.2.10

[root@linux-support-ahmedabad-tejas-barot ~]# yum install VirtualBox-4.2

5. That’s It.

hope this will helps you all, If you face any issue regarding the same or its not working for your some how then please raise your questions / issues then comment down below.

If you like this then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

All Linux User’s Blog Mobile Applications :- http://www.tejasbarot.com/download-mobile-apps/

Please Keep in Touch with Social Networking :- 

Facebook Page :- https://www.facebook.com/AllLinuxUsersBlog

Enjoy VirtualBox :) Enjoy Guest OS  on Linux :) Enjoy Linux :) Enjoy Open Source :)

Custom Init / Boot Script for teamviewerd service for TeamViewer 8 / Ubuntu / CentOS / RHEL

Dear All,

Main Purpose of this script is :- Running teamviewerd as daemon on Ubuntu and CentOS / RHEL for TeamViewer 8.

As We already know that, TeamViewer 8 is now released and Looking Very nice. I have used the same for few days and Working fine.

But In Ubuntu I have faced the issue is that every time I am getting the error is “TeamViewer Daemon is not Running. Please Start the teamviewerd and Restart teamviewer.”

So To get the rid of above error, I have written a script to start teamviewerd on boot and we don’t need to do that manually. I am sharing the same script and tested on Ubuntu and it is working fine from last 5 days. The same script will work for CentOS / RHEL too but In CentOS / RHEL It is not required to start teamviewerd  manually. Below is the screenshot for the same.

 

teamviewerd
Error TeamViewerd

Script which i am sharing here is Originally written by me and for All Linux User’s Blog Visitors, It is possible that Few people may download and may change the Author Information and share again, I also don’t mind it but Trusted Source for the script is here only.

Usage of the script :- /etc/init.d/tvscript {start|stop|restart|status}

BUGS :- Do not rename this script as teamviewer or teamviewerd else it won’t work as expected.

For Ubuntu :-

1. You need to be root or any user with root rights.

2. Download the Script from below link :-

root@linux-support-ahmedabad-tejas-barot:~# wget -c http://www.tejasbarot.com/Scripts/tvscript.sh

3. Now Copy that Script to /etc/init.d/ and assign permissions

root@linux-support-ahmedabad-tejas-barot:~# cp tvscript.sh /etc/init.d/tvscript

root@linux-support-ahmedabad-tejas-barot:~# chmod 0755 /etc/init.d/tvscript

4. Now Let’s Update it as a Custom Init Script ( Boot Script )

root@linux-support-ahmedabad-tejas-barot:~# update-rc.d tvscript defaults

5. That’s It. Now You can use this script by /etc/init.d/tvscript or By rebooting your system.

For CentOS / RHEL 6.x :-

1. You need to be root or any user with root rights.

2. Download the Script from below link :-

[root@linux-support-ahmedabad-tejas-barot ~#] wget -c http://www.tejasbarot.com/Scripts/tvscript.sh

3. Now Copy that Script to /etc/init.d/ and assign permissions

[root@linux-support-ahmedabad-tejas-barot ~#] cp tvscript.sh /etc/init.d/tvscript

[root@linux-support-ahmedabad-tejas-barot ~#] chmod 0755 /etc/init.d/tvscript

4. Now Let’s Update it as a Custom Init Script ( Boot Script )

[root@linux-support-ahmedabad-tejas-barot ~#] chkconfig –add tvscript

5. That’s It. Now You can use this script by /etc/init.d/tvscript or By rebooting your system.

Hope this helps you all.

I hope this will helps you all, If you face any issue regarding the same or its not working for your some how then please raise your questions / issues then comment down below.

If you like this then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

All Linux User’s Blog Mobile Applications :- http://www.tejasbarot.com/download-mobile-apps/

Please Keep in Touch with Social Networking :- 

Facebook Page :- https://www.facebook.com/AllLinuxUsersBlog

Enjoy TeamViewerd 🙂 Enjoy TeamViewer 8 on Linux 🙂 Enjoy Linux 🙂 Enjoy Open Source 🙂

Howto: Installing BCM43224 Wireless Linux Drivers on RHEL / CentOS / 6.x / 32-Bit / 64-Bit (x86_64)

Hello Everyone,

Today I got a Laptop of Dell 1558 with CentOS 6.2 32-Bit Installed, Broadcom Wireless ( BCM43224 ) was not Installed by default.

So I have downloaded Drivers and Made it work on the same. This Procedure is for Fresh Installation of Broadcom Driver. 

Sharing the same HowTo, Document and Source files So you can easily install BCM43224 on CentOS 6.x

I have tried this on CentOS 6.2 32-Bit but same method will work for RHEL and CentOS 6.x / 32-Bit / 64-Bit architecture.

I have used Drivers which is available from their Official Website.

Please follow below steps to make Broadcom ( BCM43224 ) work on CentOS 6.x :-

1. You need to be a root to Install Module.

2. Now Execute Command to Install Packages which requires to Compile and Build Module.

[root@linux-support-ahmedabad-tejas-barot ~]# yum install gcc* compat-*

3. Now Make Directory and Download Drivers into that Directory.

[root@linux-support-ahmedabad-tejas-barot ~]# mkdir driver_bcm43224

[root@linux-support-ahmedabad-tejas-barot driver_bcm43224]#

3. Now Download Broadcom BCM43224 Drivers for CentOS / RHEL / 6.x / 32-Bit / x86_64 :-

For 32-Bit :- 

[root@linux-support-ahmedabad-tejas-barot driver_bcm43224]#  wget -c http://www.tejasbarot.com/RPMs/downloads/hybrid-portsrc_x86_32-v5_100_82_112.tar.gz

For 64-Bit :- 

[root@linux-support-ahmedabad-tejas-barot driver_bcm43224]# wget -c http://www.tejasbarot.com/RPMs/downloads/hybrid-portsrc_x86_64-v5_100_82_112.tar.gz

4. Now Extract Drivers.

For 32-Bit :- 

[root@linux-support-ahmedabad-tejas-barot driver_bcm43224]# tar zxvf hybrid-portsrc_x86_32-v5_100_82_112.tar.gz

For 64-Bit :- 

[root@linux-support-ahmedabad-tejas-barot driver_bcm43224]# tar zxvf hybrid-portsrc_x86_64-v5_100_82_112.tar.gz

5. Now Let’s Start Compile and Install Drivers For 32-Bit and 64-Bit.

To Compile :- 

[root@linux-support-ahmedabad-tejas-barot driver_bcm43224]# make

To Install Driver :- 

[root@linux-support-ahmedabad-tejas-barot driver_bcm43224]# cp wl.ko /lib/modules/`uname -r`/kernel/net/wireless/

6. Execute Following Commands to Initialize and Make it Work  :-

[root@linux-support-ahmedabad-tejas-barot driver_bcm43224]# depmod

[root@linux-support-ahmedabad-tejas-barot driver_bcm43224]# modprobe wl

8. For Final Testing, Reboot your System once and Check. ( It will work without rebooting system).

7. That’s it, Now “Click NetworkManager Icon” and You will able to See Available Wireless Networks if any.

Check Official Read me :- http://tejasbarot.com/RPMs/docs/bcm43224_centos6.txt

I hope this will helps you all, If you face any issue regarding the same or its not working for your some how then please raise your questions / issues then comment down below.

If you like this then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

All Linux User’s Blog Mobile Applications :- http://www.tejasbarot.com/download-mobile-apps/

Please Keep in Touch with Social Networking :- 

Facebook Page :- https://www.facebook.com/AllLinuxUsersBlog

Enjoy Internet Wirelessly 🙂 Enjoy Broadcom BCM43224 🙂 Enjoy Linux 🙂 Enjoy Open Source 🙂

Zpanel – A Good Cpanel Alternative Open Source

For every paid software, always you can find an opensource alternative, sometimes the alternative is better and complete like (Gimp vs Photoshop) sometimes not. Today we will see a good alternative to Cpanel, the well known paid hosting / server panel, it is zpanel.

ZPanel is a free to download and use Web hosting control panel written to work effortlessly with Microsoft Windows and POSIX (Linux, UNIX and MacOSX) based servers or computers. This solution can turn a home or professional server into a fully fledged, easy to use and manage web hosting server.

Zpanel is easy to install and to configure. In this tutorial i installed Zpanel in CentOS 6.3.

1- Before to start we need to install some requered dependencies:

yum install ld-linux.so.2 curl

2- Download the  installation script from the  Zpnel   website (Last stable  release 10.0.0.2)

wget http://www.zvps.co.uk/sites/default/files/downloads/centos-6-3/package/installer-x86_64-install.sh.x.tar.gz 

3- Now  extract the script  and  run

tar -zxvf installer-x86_64-install.sh.x.tar.gz 

4- Make the script  executable

chmod +x  installer-x86_64-install.sh.x

5- Run the script:

./installer-x86_64-install.sh.x

Screenshot

  • Accept  the  Licence
  • Set up  the  time zone
To contine please agree to the GPL license (y/n/q)? y
Find your timezone from : http://php.net/manual/en/timezones.php e.g Europe/London
Enter Your Time Zone: Europe/Amsterdam
  • Insert the  Install  version and  the  Domainname , Ip address and    the  password you want  to make  for  your  root  Mysql access and GO!!!
Install fresh ZPanel server or enter an upgrade version number e.g 10-0-1 :install
Enter the FQDN of the server (example: zpanel.yourdomain.com): zpanel.unixmen.com
Enter the Public (external) IP of the server: 192.198.1.109
MySQL Password is currently blank, please change it now.

Password you will use for MySQL: ******
Re-enter the password you will use for MySQL: ******

ZPanel will now install, are you sure (y/n/q)?

6- Installation Complted  and  Zadmin password  had  been generated.

Screenshot-1

 The  Server   will  restart automatically.

Please  connect to http://IP and  login with  zadmin user and  the  password  generated

Screenshot-2
Screenshot-3

and is done.

Original Link :- http://www.unixmen.com/zpanel-the-best-alternative-for-cpanel/

Social Networking :-

Facebook Page :- https://www.facebook.com/AllLinuxUsersBlog

Enjoy Zpanel 🙂 Enjoy Cpanel Alternative to Open Source 🙂 Enjoy CentOS 6.3 🙂 Enjoy Linux 🙂 Enjoy Open Source 🙂