ssouf

centos7 apache php7 mysql 설치 본문

카테고리 없음

centos7 apache php7 mysql 설치

황금니 2016. 6. 4. 01:24

1. php 설치

# yum install epel-release
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
# rpm -Uvh http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

 

 

# yum install php70w

 

 

# yum search php70w

 

 

# yum install php70w-mysql php70w-xml php70w-soap php70w-xmlrpc
# yum install php70w-mbstring php70w-json php70w-gd php70w-mcrypt

 

 

 

# systemctl restart httpd.service

 

 

2. Apache 설치

 

# yum --enablerepo=epel,remi install httpd

 

# systemctl start httpd.service
# systemctl enable httpd.service

 

 

3. mysql 설치

 

# yum install mysql-server

 

# systemctl start mysqld.service
# mysql_secure_installation

 

# systemctl restart mysqld.service
# systemctl enable mysqld.service

 

4. 방화벽오픈

 

# firewall-cmd --permanent --zone=public --add-service=http

# firewall-cmd --permanent --zone=public --add-service=https
# firewall-cmd --reload

 

 

5. 버전확인

#php -v

#httpd -v