1. MySQL 설치
[root@ruo91 ~]# yum -y install mysql mysql-server
[root@ruo91 ~]# chkconfig --levels 235 mysqld on
[root@ruo91 ~]# /etc/init.d/mysqld start
[root@ruo91 ~]# mysqladmin -u root password 비밀번호
[root@ruo91 ~]# mysqladmin -u root password 123456
2. Apache 설치
[root@ruo91 ~]# yum -y install httpd
[root@ruo91 ~]# chkconfig --levels 235 httpd on
3. PHP 설치
[root@ruo91 ~]# yum -y install php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc
4. phpMyadmin 설치
http://packages.sw.be/rpmforge-release/
[root@ruo91 ~]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
[root@ruo91 ~]# rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
[root@ruo91 ~]# yum -y install phpmyadmin
phpmyadmin 설정 파일에 알리아스(Alias) 부분만 남기고 모두 주석(#) 처리 합니다.
[root@ruo91 ~]# 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
[root@ruo91 ~]# vi /usr/share/phpmyadmin/config.inc.php
$cfg['Servers'][$i]['auth_type'] = 'http';
[root@ruo91 ~]# /etc/init.d/httpd start
[root@ruo91 ~]# echo '<?php phpinfo(); ?>' > /var/www/html/phpinfo.php
댓글 없음:
댓글 쓰기