OS

2022.02.16 17:06

php 7.4.21 컴파일 옵션 정리

  • 비아웹 오래 전 2022.02.16 17:06 인기
  • 5,066
    0

안녕하세요 비아웹입니다.

php 7.4 버전 중 최신 버전인 7.4.21 버전 컴파일 옵션 기록 남깁니다.

 

1. 테스트 환경

OS : CentOS Linux release 7.6.1810 (Core)

SELINUX : disabled

openssl : openssl-1.0.2k-21 rpm 설치

apache : 2.4.46 컴파일 설치

mysql : MariaDB-10.3.28 컴파일 설치

설치 관련 에러는 아래의 php 7.4.12 문서를 참조하시기 바랍니다.

https://blog.naver.com/viaweb/222143431873naver.com

1. 컴파일 옵션

apahce / php / mysql 을 제외한 모든 패키지는 CentOS 7 rpm 패키지 입니다.

./configure --prefix=/usr/local/php \ --with-apxs2=/usr/local/apache/bin/apxs \ --with-config-file-path=/usr/local/apache/conf \ --with-config-file-scan-dir=/usr/local/apache/conf \ --with-mysql-sock=/tmp/mysql.sock \ --with-mysqli \ --with-pdo-mysql \ --with-enchant \ --with-openssl \ --with-gettext \ --with-freetype \ --with-jpeg \ --with-webp \ --with-xpm \ --with-zlib \ --with-gmp \ --with-iconv \ --with-gdbm \ --with-bz2 \ --with-curl \ --with-mhash \ --with-xsl \ --with-readline \ --with-pear \ --with-xmlrpc \ --with-ldap \ --with-libxml \ --enable-gd \ --enable-litespeed \ --enable-mysqlnd \ --enable-bcmath \ --enable-sockets \ --enable-pcntl \ --enable-ftp \ --enable-mbstring \ --enable-calendar \ --enable-simplexml \ --enable-json \ --enable-session \ --enable-soap \ --enable-xml \ --enable-opcache \ --enable-intl \ --enable-cli \ --enable-maintainer-zts \ --enable-debug \ --enable-mbregex \ --enable-dba \ --enable-shmop \ --enable-sysvsem \ --enable-sysvshm \ --enable-sysvmsg \ --enable-exif \ --with-zip \ --with-libdir=lib64

 

2. oniguruma 패키지 URL

http://www6.atomicorp.com/channels/atomic/centos/7/x86_64/RPMS/oniguruma-5.9.5-3.el7.art.x86_64.rpm http://www6.atomicorp.com/channels/atomic/centos/7/x86_64/RPMS/oniguruma-devel-5.9.5-3.el7.art.x86_64.rpm

 

3. php 7.3 대비 옵션 변경 사항

--enable-zip ==>--with-zip --with-gd ==>--enable-gd --with-jpeg-dir ==>-with-jpeg --with-libxml-dir ==>--with-libxml --with-freetype-dir ==>--with-freetype

--with-png 옵션은 삭제

 

감사합니다.

서버호스팅 비아웹


 

  • 공유링크 복사
  • 이전글CentOS 7 grub 수정2022.02.16
  • 다음글rm: Argument list too long2022.02.16
  • 댓글목록

    등록된 댓글이 없습니다.