1. Apache
(1) yum 으로 설치
$ yum install -y httpd
...>> /etc/httpd
- conf : 웹 서버의 주요 설정 파일인 httpd.conf, MIME 형식을 지정하기 위한 파일인 magic 파일이 있는 곳
- conf.d : 아파치의 주요설정을 분리 해서 저장 하는 곳, httpd.conf 설정내용을 분리하여 이곳에 저장하면, httpd.conf 파일에서 불러와서 사용하게 됩니다. httpd.conf 파일 맨 마지막에 ‘IncludeOptional conf.d/*.conf’ 구문이 있습니다.
- logs : 로그파일이 저장 되는 디렉토리
- modules : 아파치 모듈 설치디렉토리
소스다운로드:https://httpd.apache.org/download.cgi
(2) 방화벽 등록/적용
$ firewall-cmd --permanent --add-service=http
$ firewall-cmd --permanent --add-service=https
$ firewall-cmd --reload
(3) 웹서버 활성화/기동
$ systemctl enable httpd
$ systemctl start httpd
2. PHP
(1-1) php 7.2 설치
$ wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
$ wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
$ rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm
$ yum install yum-utils
$ yum-config-manager --enable remi-php72
(1-2) php 5.6 설치
# yum install epel-release
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
# yum remove php*
# yum install -y --enablerepo=remi,remi-php56 php php-bcmath php-cli php-common php-dba php-dbg php-devel php-embedded php-enchant php-fpm php-gd php-gmp php-imap php-interbase php-intl php-ldap php-litespeed php-mbstring php-mcrypt php-mysqlnd php-odbc php-opcache php-pdo php-pgsql php-process php-pspell php-recode php-snmp php-soap php-tidy php-xml php-xmlrpc
소스다운로드: https://www.php.net/downloads.php
$ vi /etc/php.ini
'$ SaVvY > » computer' 카테고리의 다른 글
맥북 15" 2011 Early (0) | 2017.12.21 |
---|---|
VIM Plug-In (0) | 2017.12.14 |
vim: Dr Chip's page (0) | 2017.12.12 |
vifm(VI-like File Manager) (0) | 2017.12.11 |
My Linux Terminal settings (0) | 2016.04.14 |