Tag: phpmyadmin


Setting Up PHPMyAdmin

July 22nd, 2010 — 3:57pm

Related Post
* MySQL
* PHP
* Apache

Compiling libmcrypt

root@linux:~ # wget -c 'http://easynews.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.7.tar.gz'
root@linux:~ # gunzip libmcrypt-2.5.7.tar.gz
root@linux:~ # tar -xvf libmcrypt-2.5.7.tar
root@linux:~ # cd libmcrypt-2.5.7
root@linux:~ # ./configure --disable-posix-threads
root@linux:~ # make && make install


Config mcrypt extension for PHP5

root@linux:~ # cd php-5.2.10/ext/mcrypt/
root@linux:~ # phpize ; aclocal
root@linux:~ # ./configure
root@linux:~ # make && make install
root@linux:~ # vi /usr/local/lib/php.ini
   #Add or Edit the following line#
   extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/"
   extension=mcrypt.so

Config mbstring extension for PHP5

root@linux:~ # cd php-5.2.10/ext/mbstring/
root@linux:~ # phpize ; aclocal
root@linux:~ # ./configure
root@linux:~ # make && make install
root@linux:~ # vi /usr/local/lib/php.ini
   #Add or Edit the following line#
   extension=mbstring.so


Installing & Configure PHPMyAdmin

root@linux:~ # wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/2.11.10/phpMyAdmin-2.11.10-english.tar.gz?use_mirror=cdnetworks-us-2&ts=1279762815
root@linux:~ # tar -zxvf phpMyAdmin-2.11.10-english.tar.gz
root@linux:~ # mv phpMyAdmin-2.11.10-english.tar.gz /home/mywebsitehtdocs/phpmyadmin/
root@linux:~ # cd /home/mywebsitehtdocs/phpmyadmin/
root@linux:~ # cp config.sample.inc.php config.inc.php
root@linux:~ # vi config.inc.php
   $cfg['blowfish_secret'] = 'fdf943893h8fhu1imvzpe9'; ##Just type your long random character##
   $cfg['Servers'][$i]['AllowNoPassword'] = false;
   $cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock';

Restart Apache2

root@linux:~ # /usr/local/apache2/bin/apachectl restart

Comment » | Linux

Back to top