Friday, 22 January 2016

How to Install MRTG On Centos/RHEL 6


Install MRTG On Centos/RHEL 6

Install MRTG (Multi Router Traffic Grapher) to see network traffic data on the web


Step 1:Install Apache HTTP Server

# yum -y install httpd httpd-devel

Step 2:Install MRTG, SNMP

#  yum -y install net-snmp net-snmp-utils mrtg

Step 3: Configure SNMP (Simple Network Management Protocol)

# vi /etc/snmp/snmpd.conf

# line 41: comment out

#com2sec notConfigUser   default       public

# line 74,75: uncomment and change
# change to your local network for "mynetwork" section
# change comunity name except public or private

com2sec local localhostServerworld
com2sec mynetwork 10.0.0.0/24Serverworld

# line 78,79: uncomment
group MyRWGroup  any        local
group MyROGroup  any        mynetwork

# line 85: uncomment
view all    included  .1                               80

# line 93,94: uncomment
access MyROGroup ""      any       noauth    0      all    none   none
access MyRWGroup ""      any       noauth    0      all    all    all

--- save and quit (:wq) ---

Then start the snmp service:

# service snmpd start
# chkconfig snmpd on

## show status (replace the "Serverworld" to your comunity name)

# snmpwalk -v2c -c Serverworld localhost system

SNMPv2-MIB::sysDescr.0 = STRING: Linux dlp.server.world 2.6.32-504.3.3.el6.x86_64 #1 SMP
Wed Dec 17 01:55:02 UTC 2014 x86_64
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (168142) 0:28:01.42
...
...
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (4) 0:00:00.04
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (4) 0:00:00.04

Step 4: Configure MRTG

# cfgmaker --ifref=descr --ifdesc=descr Serverworld@10.0.0.30 > /etc/mrtg/mrtg.cfg
# vi /etc/mrtg/mrtg.cfg

# line 9: add
WorkDir: /var/www/mrtg

# line 16: uncomment
Options[_]: growright, bits

# near line 73: make sure lines like follows are uncommented (change ip as your and

'Serverworld' as your community name)

Target[10.0.0.30_eth0]: \eth0:Serverworld@192.168.100.156:
SetEnv[10.0.0.30_eth0]: MRTG_INT_IP="10.0.0.30" MRTG_INT_DESCR="eth0"
MaxBytes[10.0.0.30_eth0]: 125000000
Title[10.0.0.30_eth0]: eth0 -- dlp.server.world
PageTop[10.0.0.30_eth0]: <h1>eth0 -- dlp.server.world</h1>

## execute mrtg 3 times (display warnings until 3 times)

# for (( i=1 ; i <= 3 ; i++ )); do env LANG=C mrtg /etc/mrtg/mrtg.cfg; done

2015-01-25 21:33:23, Rateup WARNING: /usr/bin/rateup could not read the primary log file for

10.0.0.30_eth0
2015-01-25 21:33:23, Rateup WARNING: /usr/bin/rateup The backup log file for 10.0.0.30_eth0

was invalid as well
2015-01-25 21:33:23, Rateup WARNING: /usr/bin/rateup Can't remove 10.0.0.30_eth0.old updating

log file
2015-01-25 21:33:23, Rateup WARNING: /usr/bin/rateup Can't rename 10.0.0.30_eth0.log to

10.0.0.30_eth0.old updating log file
2015-01-25 21:33:23, Rateup WARNING: /usr/bin/rateup Can't remove 10.0.0.30_eth0.old updating

log file

## generate index file

# indexmaker --columns=1 /etc/mrtg/mrtg.cfg > /var/www/mrtg/index.html

# updating is done automatically by cron

# cat /etc/cron.d/mrtg

*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file

/var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok

Step 5: Configure httpd to access MRTG

# vi /etc/httpd/conf.d/mrtg.conf

# line 11: add IP address you allow to access
Allow from 127.0.0.1 10.0.0.0/24

##restart httpd:

#  /etc/rc.d/init.d/httpd restart
or
# service httpd restart

Step 6: Access to the MRTG Panel from a client with HTTP

http://(MRTG hostname or IP address)/mrtg/

then it's possible to see MRTG site.


Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog.

How to Install zen-cart on centos 6


Install ZenCart on Centos/RHEL 6.X

Step 1: Configure LAMP

A. Install LAMP 


Step 2: Download the latest version of Zen Cart and Install

# wget http://nchc.dl.sourceforge.net/project/zencart/CURRENT%20-%20Zen%20Cart%201.5.x

%20Series/zen-cart-v1.5.4-12302014.zip
# unzip zen-cart-*.zip -d /var/www/html/
# mv /var/www/html/zen-cart-* /var/www/html/zen-cart/

Step 3: Create Database

# mysql -u root -predhat

mysql> CREATE DATABASE zencart;
mysql> CREATE USER 'zencartuser'@'localhost' IDENTIFIED BY 'your-password-here';
mysql> GRANT ALL PRIVILEGES ON zencart.* TO 'zencartuser'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> \q

Step 4: Also, create a new virtual host in Apache, for example

# vi /etc/httpd/conf.d/zen-cart.conf

<VirtualHost *:80>
ServerAdmin admin@your-domain.com
DocumentRoot /var/www/html/zen-cart/
ServerName your-domain.com
ServerAlias www.your-domain.com
ErrorLog logs/your-domain.com-error_log
CustomLog logs/your-domain.com-access_log common
</VirtualHost>

-- save and quit (:wq) --

Step 5: Set the permissions for these files and directories to 777 using the following commands

# cd /var/www/html/zen-cart/
# mv admin/includes/dist-configure.php admin/includes/configure.php
# mv includes/dist-configure.php includes/configure.php
# chmod 777 admin/includes/configure.php
# chmod 777 includes/configure.php
# chmod 777 cache
# chmod 777 includes/languages/english/html_includes
# chmod 777 logs
# chmod 777 media
# chmod 777 pub
# chmod 777 images/
# chmod 777 admin/backups
# chmod 777 admin/images/graphs

Step 6: Open the following and follow the instructions

http://Your-IP-Address/zen-cart/zc_install/index.php


Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog.

How to Install PHP 7 on Centos



Install PHP 7 on Centos


Step 1: you must add the Webtatic EL yum repository information corresponding to your CentOS/RHEL version to yum


CentOS/RHEL 7.x:


# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

CentOS/RHEL 6.x:


# rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

Step 2: Now you can install PHP 7.0 (along with an opcode cache) by doing

# yum install -y --enablerepo=webtatic-testing php70w php70w-opcache php70w-bcmath php70w-cli
php70w-common php70w-dba php70w-devel php70w-embedded php70w-enchant php70w-fpm php70w-gd php70w-imap php70w-interbase php70w-intl php70w-ldap php70w-mbstring php70w-mcrypt php70w-mysql php70w-mysqlnd php70w-odbc php70w-pdo php70w-pdo_dblib php70w-pgsql php70w-process php70w-pspell php70w-recode php70w-snmp php70w-soap php70w-tidy php70w-xml php70w-xmlrpc

Step 3: Changes on the Module File for Php

# vi /etc/httpd/conf.d/php.conf

-- Line number 6 and 10 replace with these Lines

LoadModule php7_module modules/libphp7.s (replace with line nuber 6)
LoadModule php7_module modules/libphp7-zts.so (replace with line number 10)
AddHandler php7-script .php (replace with line number 16)

-- save and quit (:wq) --

Step 4: Create a php info file and check

# vi /var/www/html/info.php

<?php
phpinfo();
?>

-- save and quit (:wq) --

# service httpd restart

Step 5: check in browser http://IP-Address/info.php or check through CLI

# php -v

PHP 7.0.0RC2 (cli) (built: Sep  4 2015 21:04:20)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0-dev, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies

Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog.

How to Install Mysql 5.7 on Centos 6.X/7.X


Mysql 5.7 on Centos 6.X/7.X

Step 1: Save the Repo File for The MySql 5.7 or Install the RPM for Mysql 5.7

# vi /etc/yum.repos.d/mysql-community.repo

[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/6/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

--- save n quit (:wq) ---

or,

On RHEL/CentOS 7

# wget http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
# yum localinstall mysql57-community-release-el7-7.noarch.rpm

On RHEL/CentOS 6

# wget http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm
# yum localinstall mysql57-community-release-el6-7.noarch.rpm

Step 2: Install Mysql 5.7

# yum install mysql-community-server -y

Step 3: Reset the Mysql Temporary root Password and Chacge the password Policy

# vi /etc/my.cnf

add these lines below [mysqld]

validate_password_policy=LOW
validate_password_length=6
validate_password_dictionary_file=YES
validate_password_special_char_count =0
validate_password_mixed_case_count = 0

--- save and quit (:wq) ---

# service mysqld start


# cat /var/log/mysqld.log |grep "temporary password"
2015-09-06T16:46:46.109066Z 1 [Note] A temporary password is generated for root@localhost: <Password>

# mysql_secure_installation

Enter password for user root: <Enter the Temporary Password>

The existing password for the user account root has expired. Please set a new password.

New password: <New Password>

Re-enter new password: <Retype the Password>

Estimated strength of the password: 100
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.

Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.


Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.

Disallow root login remotely? (Press y|Y for Yes, any other key for No) : n

 ... skipping.
By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.


Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
 - Dropping test database...
Success.

 - Removing privileges on test database...
Success.

Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.

Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.

All done!

Step 4: Check the Version and Mysql Once

# mysql -u root -p<password>

mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 5.7.10 MySQL Community Server (GPL)

Copyright (c) 2000, 2015, 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> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
4 rows in set (0.00 sec)

mysql> \q
Bye

# mysql --version

Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog.

Thursday, 24 December 2015

How to Install Pydio on Centos 6.X


Pydio on Centos 6.X

Pydio is an Open source, secure and powerful online file sharing and synchronization software solution that can be an alternative to many online cloud storage systems. It can be accessed from the web, desktop or mobile platforms and hosting is private therefore you can implement your own security measures.

Requirments: Apache, Php, Mysql (LAMP)

Step 1: Create Database for Pydio

# mysql -u root -predhat -e "create database pydio;"
# mysql -u root -predhat -e "grant all privileges on pydio.* to pydio@'localhost' identified by 'redhat';"
# mysql -u root -predhat -e "grant all privileges on pydio.* to pydio@'%' identified by 'redhat';"
# mysql -u root -predhat -e "flush privileges;"

Step 2: Download and Installing Pydio File Hosting Server

# cd /mnt
# service iptables stop
# chkconfig iptables off
# wget https://download.pydio.com/qtev2upyln3hfi46pcya/pydio-enterprise-6.2.1.zip --no-check-certificate
# unzip pydio-enterprise-6.2.1.zip
# mv pydio-enterprise-6.2.1.zip /var/www/html/pydio
# chmod -R 777 /var/www/html/pydio/data/
# vi /etc/httpd/conf/httpd.conf

Find the line, "AllowOverride None" and Change it to "AllowOverride All"

AllowOverride All (Line Number 339)

--- save and quit (:wq) ---

Step 3: Open pydio on browser to load the web installer

https://ip-address/pydio/

1. Click on "Click here to continue to Pydio"
2. Click on the “Start Wizard” and follow on screen installer instructions….
3. Create Pydio Admin Account
4. Setup Languages
5. Configure Pydio MySQL Database
6. Click "Install Pydio Now"
7. Now open the https://ip-address/pydio/ again after installation and then login with admin Details or Newly Created User and Test it.

Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog.

Monday, 7 December 2015

How to Setup Chat Support On Website With Mibew Messenger on Centos/RHEL 6.X

Setup Chat Support On Your Website With Mibew Messenger

Mibew Messenger, also known as Open Web Messenger, is an open-source live/chat support application written in PHP and MySQL. It enables one-on-one chat assistance in real-time directly from your website. Just place the Mibew Messenger button at your site, the visitors of your site will be able to get assistance from your operators, technical support executives and customer support executives who help them by clicking on the chat button.

Step 1: Prerequisites

* First you have to install and configure LAMP server

Step 2: create a database called “mibewdb” and database user called “mibewuser” with password “redhat” for ProcessWire

# mysql -u root -p
Enter password:

mysql> create database mibewdb;
Query OK, 1 row affected (0.02 sec)

mysql> GRANT ALL ON mibewdb.* TO mibewuser@localhost IDENTIFIED BY 'centos';
Query OK, 0 rows affected (0.01 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit
Bye

Step 3: Getting Mibew

# cd /mnt && wget https://sourceforge.net/projects/webim/files/Mibew%20Messenger/1.6.5/mibew165.zip --no-check-certificate

Step 4: Create a directory called “mibew” under web root folder i.e /var/www/html/

# mkdir /var/www/html/mibew

Step 5: Copy and unzip the mibew installation file in /var/www/html/mibew/ folder

# cp mibew165.zip /var/www/html/mibew/
# cd /var/www/html/mibew/
# unzip mibew165.zip
# rm -rf mibew165.zip

Step 6: Set privileges to mibew directory with command

# chown -R root:apache /var/www/html/mibew/

Step 7: Edit file config.php file

# vi /var/www/html/mibew/libs/config.php

$webimroot = "/mibew";

#### Enter the MySQL details as shown below
*  MySQL Database parameters
 */
$mysqlhost = "localhost";
$mysqldb = "mibewdb";
$mysqllogin = "mibewuser";
$mysqlpass = "redhat";
$mysqlprefix = "";

---- save and quit (:wq) ----

Step 8: Begin Installation

Open up browser and go to to URL http://domain-name/mibew/install/index.php or http://ip-address/mibew/install/index.php

If everything seems ok, the following screen should appear. Click Create required tables link.
and follow the Screen for the Further Instructions

Step 9: login to chat as user admin with empty password. For security reason set the password immediately and remove the /mibew/install/ folder

# rm -fr /var/www/html/mibew/install/

Step 10: Now click on the Proceed to Login page and login as admin with empty password

Step 11: In the next page you will be asked to create your administrator login password and email as shown below


Step 12: From here, you can

– create/delete operators,

– find the waiting users,

– Search chat history,

– View the chat statistics,

– Setup common system behavior and chat options,

– Change administrator profile details and so on.

Step 13: How to add the chat button on my website

It’s very simple. Go to the Mibew admin console. You will see a link called button code in the middle of the admin console window. Open the link in the new window and copy the HTML code and you can paste them in your website at any place. Also can change the chat image using Choose image button and can change the chat window style as well.

Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog.

Saturday, 5 December 2015

Shell Script For Take Backup of Mysql Databases


Shell Script For Take Backup of Mysql Databases


Step 1: Create Directory For Backups Scripts & Backups

# mkdir -p /backups/db_backup /backups/scripts

Step 2: Create Backups Scripts

# vi /backups/scripts/db_backups.sh

#!/bin/bash
export path1=/backups/db_backup  ### Backup Path
date1=`date +%y%m%d_%H%M%S`
/usr/bin/find /backups/db_backup/* -type d -mtime +14 -exec rm -r {} \; 2> /dev/null  ### Retention For Backups of 15 Days
cd $path1/
mkdir $date1
USER="root"  ## Mysql User Name
PASSWORD="redhat"  ## Mysql User's Password
OUTPUTDIR="$path1/$date1"
MYSQLDUMP="/usr/bin/mysqldump"
MYSQL="/usr/bin/mysql"
HOST="localhost"
databases=`$MYSQL --user=$USER --password=$PASSWORD --host=$HOST \
-e "SHOW DATABASES;" | tr -d "| " | grep -v Database`
echo "` for db in $databases; do
   echo $db

       if [ "$db" = "performance_schema" ] ; then
       $MYSQLDUMP --force --opt --single-transaction --lock-tables=false --skip-events --user=$USER --password=$PASSWORD --host=$HOST --routines \
        --databases $db | gzip > "$OUTPUTDIR/$db.gz"
        else

$MYSQLDUMP --force --opt --single-transaction --lock-tables=false --events --user=$USER --password=$PASSWORD --host=$HOST --routines \
   --databases $db | gzip > "$OUTPUTDIR/$db.gz"
fi
done `"
/root/monitor.sh 99 | tee /root/backup_report >> /root/monthly_backup_report #to create a backup report in /root/backup_report file
cat /root/backup_report | mail -s "backup_report of Test Server (192.168.72.240) "  -r root@Test_Server deb.mind009@gmail.com  ### Mail the Backup Report But Need Monitoring Script for this Feature

--- save and quit (:wq) ---

Step 3: Schedule Backup Scripts on Crontab

## Then Schedule the script to Crontab for Run it As per a schedule, Here we are scheduling it Daily Basis at 12:00 AM

# crontab -e

0 0 * * * /backups/scripts/db_backups.sh > /dev/null

--- save and quit (:wq) ---

# crontab -l (To see the Scheduled Crontab List)

Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog.

Shell Script For Take Backup of Web Files on Centos/RHEL

Shell Script For Take Backup of Web Files on Centos/RHEL

Step 1: Create Directory For Backup Scripts and Backups

# mkdir -p /backups/web_backup /backups/scripts

Step 2: Create Backups Backup Script

# vi /backups/scripts/web_backups.sh

#!/bin/bash
export path1=/backups/web_backup ### Backup Path
date1=`date +%y%m%d_%H%M%S`

/usr/bin/find /backups/web_backup/* -type d -mtime +6 -exec rm -r {} \; 2> /dev/null
mkdir $path1/$date1  ### Retention For Backups of 7 Days
cp -r /var/www/html $path1/
cd $path1/html
for i in */; do /bin/tar -zcvf "$path1/$date1/${i%/}.tar.gz" "$i"; done
if [ $? -eq 0 ] ; then
rm -r $path1/html
fi

if [ `date +%d` -eq '01' ] ; then
mv /home/som/monthly_backup_report /root/Test_192.168.72.240_Backup_Report_`date +%B_%G --date="-1 day"`
fi

/root/monitor.sh 99 | tee /root/backup_report >> /root/monthly_backup_report ### to create a backup report in /root/backup_report file
cat /root/backup_report | mail -s "backup_report of Test Server (192.168.72.240)" deb.mind009@gmail.com ### Mail the Backup Report But Need Monitoring Script for this Feature

--- save and quit (:wq) ---

Step 3: Schedule The Script on Crontab

## Then Schedule the script to Crontab for Run it As per a schedule, Here we are scheduling it Daily Basis at 12:00 AM

# crontab -e

0 0 * * * /backups/scripts/web_backups.sh > /dev/null

--- save and quit (:wq) ---

# crontab -l (To see the Scheduled Crontab List)

Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog.

How to Install utorrent on Centos/RHEL 6.X


Install utorrent on Centos/RHEL 6


Step 1: Install needed packages

# yum install -y wget glibc openssl* libgcc unzip

Step 2: Create sym link for libssl because the CentOS 6 has newer version of uTorrent required For x86_64

# ln -s /usr/lib64/libcrypto.so.0.9.8e /usr/lib64/libcrypto.so.0.9.8
# ln -s /usr/lib64/libssl.so.0.9.8e /usr/lib64/libssl.so.0.9.8

Step 3: Download uTorrent for Linux and Extract it

# cd /mnt && wget -qO - http://download.utorrent.com/linux/utorrent-server-3.0-ubuntu-10.10-27079.x64.tar.gz |tar xvzf -

Step 4: change the permission on uTorrent-server folder and link uTorrent server to the /user/bin directory

# chmod -Rf 777 /mnt/utorrent-server-v3_0/
# ln -s /mnt/utorrent-server-v3_0/utserver /usr/bin/uts

Step 5: Finally, run the commands below to start uTorrent (it will run on 8080 port by default)

# uts -settingspath /mnt/utorrent-server-v3_0/

Step 6: open the GUI on the Browser of the Torrent

http://192.168.72.243:8080/gui
User: admin
Pass: none

Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog.

Thursday, 3 December 2015

How to Install Lamp on Centos 7


Install Lamp on Centos 7
1. Install Apache:

# yum -y install httpd httpd-devel

2. Edit httpd.conf file:

# vi /etc/httpd/conf/httpd.conf

add this last line-
RewriteEngine on
CheckCaseOnly On

----Save & Quit (:wq)----

3. make logs directory:

# mkdir /logs

4. Go to /var/www/html :


# vi index.html

Make A HTML
add those line...

<html>
<marquee direction="left">
<font size="12" color="red">
!!!....Restricted zone....!!!
</font>
</marquee>
</html>

----Save & Quit (:wq)----

5. Install MySQL Database Server:

# yum install wget
# wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
# rpm -ivh mysql-community-release-el6-5.noarch.rpm
# yum install -y mysql-server mysql mysql-devel

6. Start Mysqld Service:

# systemctl restart mysqld

7. Changing MySQL Root Password:


# mysql
mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD('new password') WHERE user='root';
mysql> FLUSH PRIVILEGES;
mysql> exit

8. Check by logging in:


# mysql -u root -p
Enter Password: <your new password>


mysql> show databases;
+--------------------------------+
| Database               |
+---------------------------------+
| information_schema |
| mysql                         |
+---------------------------------+
2 rows in set (0.00 sec)


mysql> exit

9. Install PHP5 Scripting Language:

# rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm

# yum install -y  php56w php56w-cli php56w-mysql php56w-pdo php56w-pecl-memcache php56w-xml php56w-imap php56w-mbstring php56w-mcrypt php56w-common php56w-fpm       php56w-odbc php56w-devel  php56w-xmlrpc php56w-soap php56w-pecl-igbinary php56w-pdo php56w-ldap php56w-xml php56w-imap php56w-pear php56w-gd

10. Create a file named /var/www/html/info.php:


# vi /var/www/html/info.php


<?php
  phpinfo();
?>

----Save & Quit (:wq)----

11. Restart Apache to load php:

# systemctl restart httpd

12. Then point your browser to http://ip address/info.php:


Ex- http://192.168.72.249/info.php

13. Download this phpMyAdmin rpm:


# cd /var/www/html
# wget https://files.phpmyadmin.net/phpMyAdmin/4.4.10/phpMyAdmin-4.4.10-english.tar.gz

14. Extract the tar File & Rename it :


# tar -zxvf phpMyAdmin-4.4.10-english.tar.gz
# mv phpMyAdmin-4.4.10-english phpmyadmin

15. Edit the /etc/httpd/conf/httpd.conf File :


# vi /etc/httpd/conf/httpd.conf

Add those Lines : (line number 158)
<Directory /var/www/html/phpmyadmin>
    Options  -Indexes +Multiviews +FollowSymLinks
        DirectoryIndex index.php index.html
    AllowOverride All
    Allow from all
</Directory>

----Save & Quit (:wq)----

16. Rename the config.sample.inc.php File :

#cd /var/www/html/phpmyadmin

# mv config.sample.inc.php config.inc.php

17. Now needs a secret passphrase (blowfish_secret):


# vi /var/www/html/phpmyadmin/config.inc.php


$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
Just Add Password - $cfg['blowfish_secret'] = 'Your Password but wrong pass'


$cfg['blowfish_secret'] = 'wron pass'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

$cfg['Servers'][$i]['host'] = 'MySQL_Server_Name'; ← Database Server Hostname.

----Save & Quit (:wq)----

18. Start the httpd & mysql Service & stop iptables :

# systemctl enable httpd
# systemctl enable mysqld
# systemctl stop firewalld.service

and stop selinux

19. Point your browser to: http://ip.address/phpmyadmin :


ex- http://192.168.72.249/phpmyadmin
User Name: root
Password: Mysql_Password

---- DONE,Thanks ----