yeonghoon.kim

  • 게시판
  • 갤러리
  • aws

rockylinux8 apache-2.4.16, php-5.3.29 설치

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

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:70]
이 게시물을
목록

댓글 0

번호 제목 글쓴이 날짜 조회 수
공지 2025 일본 여행 계획 김영훈 2024.10.10 1997
공지 현금, 저축, 투자, 지출, 예산, 보험 내역(2024-05-30) 김영훈 2024.03.10 1627
27 CentOS7 php 7.4 + composer 설치 김영훈 2023.08.18 651
26 ELK Stack 테스트 [1] 김영훈 2023.08.30 449
25 sar bash 스크립트 [1] 김영훈 2023.09.05 542
24 자바스크립트 화살표 함수 김영훈 2023.10.06 490
23 rocky linux 9 - init_script.sh 김영훈 2023.12.08 537
22 2023년 월간 소비 비중 file 김영훈 2024.01.01 533
21 AttributeError: module 'tarfile' has no attribute 'data_filter' 에러 김영훈 2024.01.02 913
20 Stable Diffusion 설치 - rockylinux9 [테스트 - 나 / 정리 -chatgpt] [1] 김영훈 2024.01.02 1414
19 마크다운 TIL 템플릿 김영훈 2024.01.03 772
18 error: rpmdb: BDB2034 unable to allocate memory for mutex; resize mutex region [1] 김영훈 2024.01.08 1353
17 Oracle 9i cx_Oracle 클라이언트 연결 방법 [1] 김영훈 2024.01.12 1287
16 리눅스 공인 아이피 확인 - curl ipinfo.io 김영훈 2024.01.29 1084
15 오라클 클라우드 arm 환경에서 Palworld 서버 구축 [11] 김영훈 2024.01.29 2146
14 Dev-C++ 5.11 설치 매뉴얼 file 김영훈 2024.03.09 1427
13 openai api를 이용한 챗봇 구현 샘플 김영훈 2024.06.11 1077
12 백업된 디스크 복구 김영훈 2024.06.13 1116
11 달력 이미지(chatgpt) file 김영훈 2024.09.05 1127
10 정보보안기사 오답노트 김영훈 2024.10.01 954
» rockylinux8 apache-2.4.16, php-5.3.29 설치 file 김영훈 2024.10.11 1254
8 rockylinux8 php7.2 -> php7.4 업그레이드 : dnf module 기능 이용 김영훈 2024.10.14 1121
쓰기 태그
 첫 페이지 5 6 7 8 9 10 11 12 13 14 끝 페이지