Jumat, 21 September 2012

Install phpMyAdmin on Centos 5

Berharap Bahwa paket mysql dan httpd sudah di Install di Linux Centos, tapi klo belom diinstall silakan install menggunakan YUM

# yum -y install mysql-server mysql mysql-devel

install php dan dependenciesnya

# yum -y install php php-gd php-imap php-mysql php-pear php-xml phpxmlrpc curl libxml2 php-mbstring php-mcrypt

Install httpd beserta paketnya

# yum -y install httpd-*

jalankan service mysql dan httpd
#/etc/init.d/mysqld start

 create password untuk akses root
# mysqladmin -u root -p password 'new-password'  <<-- (isi dengan password)

#/etc/init.d/httpd start
#chkconfig mysqld on
#chkconfig httpd on


Install phpMyAdmin
Because the version of php on CentOS 5.6 is 5.1.6, we only can install phpMyAdmin 2.x, I choose 2.11.11.3.
# cd /usr/share
# wget http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/2.11.11.3/phpMyAdmin-2.11.11.3-english.tar.gz/download
# tar xvfz phpMyAdmin-2.11.11.3-english.tar.gz
# mv phpMyAdmin-2.11.11.3-english phpmyadmin
# rm phpMyAdmin-2.11.11.3-english.tar.gz
# cd phpmyadmin
# cp config.sample.inc.php config.inc.php
Edit the config.inc.php file, find the line that contain “blowfish_secret”, and modify like below.
$cfg['blowfish_secret'] = ‘TypeAnything_for_Secure’;
Append a line into the /etc/httpd/conf.d/phpmyadmin.conf file
# echo “Alias /phpMyAdmin /usr/share/phpmyadmin” >> /etc/httpd/conf.d/phpmyadmin.conf
Restart the httpd service
# service httpd restart
Enter the URL http://[IP Address]/phpMyAdmin/ on Firefox browser, we’ll can see the login web page.