2015년 1월 29일 목요일

APM(Apache + PHP + Mysql) yum 설치




1. APM 설치

[root@nell /]# yum -y install httpd php mysql mysql-server php-mysql






2. 라이브러리 설치

[root@nell /]# yum -y install zlib zlib-devel freetype freetype-devel freetype-utils gd gd-devel libjpeg libjpeg-devel libpng libpng-devel php-gd php-xml php-mbstring






3. 서비스 시작

[root@nell /]# service httpd restart; service mysqld restart






4. RHEL Repository 추가

[root@nell /]# cd /usr/src
[root@nell /]# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
[root@nell /]# wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
[root@nell /]# rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
[root@nell /]# ls -1 /etc/yum.repos.d/epel* /etc/yum.repos.d/remi.repo
/etc/yum.repos.d/epel.repo
/etc/yum.repos.d/epel-testing.repo
/etc/yum.repos.d/remi.repo







5. php-mcrypt 설치

[root@nell /]# yum -y install libmcrypt libmcrypt-devel php-mcrypt





6. Directory 설정 및 phpMyadmin 설치

1) Apache Directory 설정 (httpd.conf 편집)

[root@nell /]# vi /etc/httpd/conf/httpd.conf

 # UserDir disabled
       UserDir public_html



2) phpMyadmin 설치

[root@nell /]# adduser phpma
[root@nell /]# cd /home/phpma
[root@nell /]# wget http://jaist.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.1.12/phpMyAdmin-4.1.12-all-languages.tar.gz
[root@nell /]# tar xvfz phpMyAdmin-4.1.12-all-languages.tar.gz
[root@nell /]# mv phpMyAdmin-4.1.12-all-languages public_html
[root@nell /]# chown phpma.phpma ./public_html/ -R
[root@nell /]# chmod 755 /home/phpma























댓글 없음: