Setting steps are MySQL, Apache, PHP, and then PHPMyAdmin here.
1. MySQL
Install MySQL
# yum -y install mysql mysql-server
Activate the service
# chkconfig --levels 235 mysqld on
Start MySQL demon
# /etc/init.d/mysqld start
Set a password for MySQL root account
# mysqladmin -u root password [password]
2. Apache
# yum -y install httpd
Activate the service
# chkconfig --levels 235 httpd on
3. PHP
# yum -y install php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc
4. phpMyadmin
Find a correct version of package information for your system and download it first from this website below.
http://packages.sw.be/rpmforge-release/
e.g.) # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
Install it.
# rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.i386.rpm
Install phpmyadmin
# yum -y install phpmyadmin
Modify phpmyadmin configuration
# vi /etc/httpd/conf.d/phpmyadmin.conf
-----------------------------------------------------------
#
# Web application to manage MySQL
#
#<Directory "/usr/share/phpmyadmin">
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#</Directory>
#
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
----------------------------------------------------------------
Change phpmyadmin authentication type
# vim /usr/share/phpmyadmin/config.inc.php
---------------------------------------------
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http';
---------------------------------------------
5. Start & Confirm
Start Apache
# /etc/init.d/httpd start
Confirm your homepage on a browser
http://localhost/
Confirm php
# echo '<?php phpinfo(); ?>' > /var/www/html/phpinfo.php
Confirm phpmyadmin http://localhost/phpmyadmin/
No comments:
Post a Comment