Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Tags
- centos7
- ftp
- CenOS6.10
- 윈도우앱지우기
- 신바람여비서win98
- PHP4
- root직접로그인
- 조성남
- winscp
- MSSQL #TCP/IP Enabled
- 에디트플러스 #sftp안될때
- windows19Server
- IT제어
- 한글2 #hangul2_from_2024_01_17
- sftp
- CapsLock키보드 뽑기
- putty
- php7
- 인터넷안되는문제해결
- utf8mb4
- PID4
- ubunto #네티워크설정
- 코드라마 #AI
- 아이티제어
Archives
- Today
- Total
아이티제어
centOS 6에 http2.4 소스 컴파일 설치 해본다. 본문
참고 주소는 https://medium.com/sjk5766/apache-2-4-x-%EC%86%8C%EC%8A%A4-%EC%84%A4%EC%B9%98-b989281f20b5
wget을 없으면 yum install wget 하여 설치. 설치했다고 나오면 yum remove wget 하고 다시 시도.
1.다운로드
# 다운로드
wget http://apache.tt.co.kr/apr/apr-1.7.0.tar.gz
wget http://apache.tt.co.kr/apr/apr-util-1.6.1.tar.gz
wget http://apache.tt.co.kr/apr/apr-iconv-1.2.2.tar.gz
wget http://archive.apache.org/dist/httpd/httpd-2.4.46.tar.gz
# 압축 풀기
tar -zxvf apr-1.7.0.tar.gz
tar -zxvf apr-util-1.6.1.tar.gz
tar -zxvf apr-iconv-1.2.2.tar.gz
tar -zxvf httpd-2.4.46.tar.gz
# 폴더명 변경
mv apr-1.0.0 apr
mv apr-util-1.6.1 apr-util
mv apr-iconv-1.2.2 apr-iconv
# 변경 폴더 이동
mv apr httpd-2.4.46/srclib/
mv apr-util httpd-2.4.46/srclib/
mv apr-iconv httpd-2.4.46/srclib/

완료모습..
apache 설치에는 pcre와 zlib가 필요하답니다.
# g++ 설치
yum install -y gcc-c++
# zlib 설치
yum install -y zlib-devel
wget https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz
tar -zxvf pcre-8.44.tar.gz
cd pcre-8.44
./configure
make && make install


make && make install 결과 화면
Warning은 뜨지만 Error는 안떴으니
너어감니다.
이젠 http2.4를 컨퍼겨하고 인스톨 해야하겠죠
#요것이 설치안된 분은 설치해주고
yum install -y expat-devel
cd httpd-2.4.46
# 컨피겨
./configure --prefix=/usr/local/apache24 --enable-module=so --enable-mods-shared=all --enable-so --enable-deflate --enable-rewrite --with-included-apr
# 빌드
make && make install

make & make install 결과 화면
잘됬군요.
이제 /usr/local/apache24/conf/httpd.conf 파일 포트 기존 사용80포트로 사용하니 88로 변경하고 봅니다.

apachectl configtest 를 해봅니다. httpd.conf 파일에 dummy-host.example.com 도메인 설정등 해달라는군요.
/usr/local/apache24/conf/httpd.conf 파일 수정
# 서버이름 과 포트 지정 우선 80 대신 88로
ServerName zz80:88
#디렉토리 시작파일명 index.php 추가
DirectoryIndex index.html 를
DirectoryIndex index.html index.php
#로
#php 모듈 적용되게 추가.
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml 를
AddType text/html .shtml
AddType application/x-httpd-php .php .html
AddOutputFilter INCLUDES .shtml
#로
#우선 기존것에서 88포트로만 변경해서
<VirtualHost *:88>
ServerAdmin itcontrol1998@gmail.com
DocumentRoot /home/yjm/public/www/
ServerName 010-.yjm.kr
ServerAlias 010-*.yjm.kr
ErrorLog logs/010-yjm-error_log
CustomLog "|/usr/sbin/cronolog /usr/local/apache24/log/010-yjm_%Y-%m" common
</VirtualHost>
# cronolog는 연월별로 로그파일 생성되게 별도 yum 설치 한것임.

아래같이 curl zz80:88 해보니 403 Fobidden 나오네요 apache는 돌아갑니다. OK 이제 권한 설정을해야죠~

log를 cat 해보면 이해가 더 쉽겠죠 ?

권한 빠졌죠?
이젠 PHP 설치를 다음글에서 해야곘다.
apache 설치는 끝.
PHP 소스설치로
'Linux' 카테고리의 다른 글
| CentOS7 설치후 비밀번호 변경이 안될때 (0) | 2020.10.24 |
|---|---|
| CentOS6 PHP7.3 Continue targeting switch is equivalent 메시지 안나오게 하기 (0) | 2020.09.23 |
| CentOS 6 종말이 2020.11월~ 이젠 SCL툴로~ (0) | 2020.09.20 |
| 방금 저지른 황당한 iptables 실행으로 ssh접속 끊기고 서비스 중지된 사고 (0) | 2020.09.20 |
| CentOS6 에 apache2.4설치를 yun설치는 실패난다. (0) | 2020.09.20 |