yeonghoon.kim

  • 게시판
  • 갤러리
  • aws

rockylinux8 apache-2.4.16, php-5.3.29 설치

김영훈 2024.10.11 12:48 조회 수 : 616

php.png.jpg


1. 최신 패키지로 업데이트
# yum update -y

 


2. SELINUX 비활성화
# vi /etc/selinux/config
disabled

 


3. 서버 로케일 변경
# vi /etc/locale.conf
#LANG="ko_KR.UTF-8"
LANG="ko_KR.euckr"

 


4. 기본 패키지 설치 1
# yum install -y epel-release

 


5. 기본 패키지 설치 2
# yum install -y vim-enhanced net-tools psmisc wget git ntsysv unzip gcc gcc-c++ pcre-devel libxml2-devel libcurl-devel libjpeg* libpng* freetype* ImageMagick netpbm* libtool openssl openssl-devel libmcrypt libmcrypt-devel cmake ncurses-devel libtirpc gcc* libcurl jpeginfo curl curl-devel nfs-utils rpcbind rsync libnsl

 


6. 기본 패키지 설치 3
# yum groupinstall -y "Development tools"

 

 

7. firewalld 비활성화

# systemctl stop firewalld

# systemctl disable firewalld

 


8. apr 1.5.2 설치
# cd /usr/local
# wget https://archive.apache.org/dist/apr/apr-1.5.2.tar.gz
# tar zxvf apr-1.5.2.tar.gz
# cd apr-1.5.2
# ./configure --prefix=/usr/local/apr
# cp libtool libtoolT
# ./configure --prefix=/usr/local/apr
# make -j 4
# make install

 


9. apr-util 1.5.4 설치
# cd /usr/local
# wget https://archive.apache.org/dist/apr/apr-util-1.5.4.tar.gz
# tar zxvf apr-util-1.5.4.tar.gz
# cd apr-util-1.5.4
# ./configure --with-apr=/usr/local/apr
# make -j 4
# make install

 


10. pcre 설치
# cd /usr/local
# wget http://sourceforge.net/projects/pcre/files/pcre/8.36/pcre-8.36.tar.gz
# tar zxvf pcre-8.36.tar.gz
# cd pcre-8.36
# ./configure
# make -j 4
# make install

 


11. openssl 0.9.8 설치
# cd /usr/local
# wget https://github.com/openssl/openssl/releases/download/OpenSSL_0_9_8zh/openssl-0.9.8zh.tar.gz
# tar zxvf openssl-0.9.8zh.tar.gz
# cd openssl-0.9.8zh
# ./config --prefix=/usr/local/openssl shared
# make -j 4
# make install

 

 

12. apache 2.4.16 설치
# cd /usr/local
# wget https://archive.apache.org/dist/httpd/httpd-2.4.16.tar.gz
# tar zxvf httpd-2.4.16.tar.gz
# cd httpd-2.4.16
# ./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --enable-so --with-ssl=/usr/local/openssl --enable-ssl --enable-rewrite --with-pcre
# make -j 4
# make install

 


13. oracle client 10.2.0.5 설치
# cd /usr/local
# wget ${DOWNLOAD_ADDRESS}/oracle-instantclient-basic-10.2.0.5-1.x86_64.rpm
# wget ${DOWNLOAD_ADDRESS}/oracle-instantclient-devel-10.2.0.5-1.x86_64.rpm
# wget ${DOWNLOAD_ADDRESS}/oracle-instantclient-sqlplus-10.2.0.5-1.x86_64.rpm
# rpm -Uvh oracle-instantclient-basic-10.2.0.5-1.x86_64.rpm
# rpm -Uvh oracle-instantclient-devel-10.2.0.5-1.x86_64.rpm
# rpm -Uvh oracle-instantclient-sqlplus-10.2.0.5-1.x86_64.rpm

 


14. php 5.3.29 설치
# cd /usr/local
# wget https://www.php.net/distributions/php-5.3.29.tar.gz
# tar zxvf php-5.3.29.tar.gz
# cd php-5.3.29
# ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-oci8=instantclient,/usr/lib/oracle/10.2.0.5/client64/lib --with-config-file-path=/usr/local/apache/conf --disable-debug --enable-sigchild --enable-ftp --with-gd --with-png-dir --with-zlib-dir --with-ttf --with-freetype-dir --with-jpeg-dir --enable-exif --with-curl --with-iconv --enable-mbstring --with-openssl=/usr/local/openssl
# make -j 4
# make install

 


15. apache, php 연동
# vi /usr/local/apche/conf/httpd.conf
AddType application/x-httpd-php .php .html .htm .inc
AddType application/x-httpd-php-source .phps
DirectoryIndex index.html index.php

 


*기타 설정은 생략
 


  • 추천 0

  • 비추천 0
  • php.png.jpg [File Size:37.7KB/Download:32]
이 게시물을
목록

댓글 0

사진 및 파일 첨부

여기에 파일을 끌어 놓거나 왼쪽의 버튼을 클릭하세요.

파일 용량 제한 : 0MB (허용 확장자 : *.*)

업로드 중... (0%)

0개 첨부 됨 ( / )
 
번호 제목 글쓴이 날짜 조회 수
공지 2025 일본 여행 계획 김영훈 2024.10.10 983
공지 현금, 저축, 투자, 지출, 예산, 보험 내역(2024-05-30) 김영훈 2024.03.10 636
265 BPFDoor 악성코드 통합 점검 스크립트 (KISA 가이드 기반) 김영훈 2025.05.16 114
264 error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive] 김영훈 2025.05.08 63
263 prometheus, grafana, node-exporter 임시 김영훈 2025.01.03 299
262 MegaCli64 Hotspare 구성 김영훈 2024.11.11 518
261 12월 기타큐슈 2박 3일 관련 김영훈 2024.11.08 444
260 rockylinux8 php7.2 -> php7.4 업그레이드 : dnf module 기능 이용 김영훈 2024.10.14 592
» rockylinux8 apache-2.4.16, php-5.3.29 설치 file 김영훈 2024.10.11 616
258 정보보안기사 오답노트 김영훈 2024.10.01 439
257 달력 이미지(chatgpt) file 김영훈 2024.09.05 643
256 백업된 디스크 복구 김영훈 2024.06.13 549
255 openai api를 이용한 챗봇 구현 샘플 김영훈 2024.06.11 562
254 Dev-C++ 5.11 설치 매뉴얼 file 김영훈 2024.03.09 861
253 오라클 클라우드 arm 환경에서 Palworld 서버 구축 [11] 김영훈 2024.01.29 1506
252 리눅스 공인 아이피 확인 - curl ipinfo.io 김영훈 2024.01.29 562
251 Oracle 9i cx_Oracle 클라이언트 연결 방법 [1] 김영훈 2024.01.12 660
250 error: rpmdb: BDB2034 unable to allocate memory for mutex; resize mutex region [1] 김영훈 2024.01.08 710
249 마크다운 TIL 템플릿 김영훈 2024.01.03 560
248 Stable Diffusion 설치 - rockylinux9 [테스트 - 나 / 정리 -chatgpt] [1] 김영훈 2024.01.02 738
247 AttributeError: module 'tarfile' has no attribute 'data_filter' 에러 김영훈 2024.01.02 718
246 2023년 월간 소비 비중 file 김영훈 2024.01.01 359
쓰기 태그
 첫 페이지 1 2 3 4 5 6 7 8 9 10 끝 페이지