Symptom : I need to install PHPMyAdmin on CentOS 5.5
Solution : Follow the steps :
Notes
I'm assuming Apache and MySQL are already installed .
If not , please install them befure continuing .
This process will probably work for Redhat 5.x and CentOS 5.x versions that I didn't test or document .
Install PHP
The current version of PHPMyAdmin has PHP 5.2 and not 5.1 which is probably currently installed .
To be able to install PHP version 5.2 you need to enable the "testing" repo for "yum" installation .
Edit the file :
/etc/yum.repos.d/CentOS-Base.repo
add to the bottom of the file the following lines :
[c5-testing] name=CentOS-5 Testing baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
To install PHP run the following command :
yum install php php-common php-gd php-mcrypt php-pear php-pecl-memcache php-mhash php-mysql php-xml php-mbstring
When installation succeeds , run :
cd /var/www/html
Now download the latest PHPMyadmin package :
wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.3.10/phpMyAdmin-3.3.10-english.tar.gz?r=http%3A%2F%2Fwww.phpmyadmin.net%2Fhome_page%2Fdownloads.php
It might slightly change when a new version is released .
Now extract the package :
tar zxvf phpMyAdmin-3.3.10-english.tar.gz
Rename the folder to an easier name :
mv phpMyAdmin-3.3.10-english phpmyadmin
Enter the new folder :
cd phpmyadmin
Run :
cp config.sample.inc.php config.inc.php
Now edit the file config.inc.php ,
On line 18 change :
$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
to
$cfg['blowfish_secret'] = 'Enter Your Random Text';
Now restart Apache web server :
service httpd restart
Finalizing and cleaning
Disable the "testing" repo by editing the file /etc/yum.repos.d/CentOS-Base.repo
Change
enabled=1
to
enabled=0