You cannot see this page without javascript.

PHP Suhosin 설치

APM 조회 수 222 추천 수 0 2016.09.28 15:19:57

수호신의 익스텐션과 패치 다운로드

http://www.hardened-php.net/suhosin/download.html

 

현재 본인의 경우 PHP7을 사용중이라

패치는 적용할 수 없고 익스텐션만 가능하다.

 

이전버전일 경우 패치를 적용하고자 한다면 다음과 같이 하자.

 

# tar -zxvf php-5.x.x.tar.gz
# gzip -d suhosin-patch-5.x.x-0.9.10.patch.gz
# cd php-5.x.x
# patch -p1 -i ../suhosin-patch-5.x.x-0.9.10.patch.gz

 

위와같이 php에 패치를 적용한후에 정상적인 방법으로 php를 컴파일 하면 된다.

 

이번에는 다음과 같이 익스텐션 설치를 해보자.

 

--php5

# git clone https://github.com/sektioneins/suhosin

# cd suhosin
# phpize
# ./configure \
--with-php-config=<php경로>/bin/php-config \
--enable-suhosin-experimental
# make
# make install

 

--php7

# git clone https://github.com/sektioneins/suhosin7
# cd suhosin7
# phpize

# ./configure \
--with-php-config=<php경로>/bin/php-config \
--enable-suhosin-experimental
# make
# make install

 

이후에 php의 익스텐션으로 모듈을 등록한다.

 

extension=suhosin.so

 

phpinfo()명령으로 설치가 정상적으로 되었는지 확인해 보자

 

suhosin.png

 

첨부
엮인글 :
List of Articles
번호 제목 글쓴이 날짜sort 조회 수
29 Programing make - 05 내부 매크로 LynX 2017-02-22 897
28 Programing make - 06 make 규칙 LynX 2017-02-22 242
27 Programing make - 07 접미사 규칙 LynX 2017-02-22 1853
26 APM http 프로토콜 https 로 리다이렉션 LynX 2017-07-14 228
25 CentOS CentOS7 GCC-5.1.1 yum install LynX 2017-11-10 475
24 CentOS CemtOS 7.3 base Trinitycore 3.3.5 Compile file LynX 2017-11-13 520
23 CentOS centos7 groonga install LynX 2017-12-04 583
22 Linux modsecurity LynX 2017-12-06 475
21 Linux 라그나로크 LynX 2017-12-07 2366
20 Linux libiconv LynX 2017-12-08 417
19 APM PHP-7.2.0 LynX 2017-12-12 3015
18 APM mysql ./configure LynX 2017-12-15 731
17 APM LZ4_LIBS Not Found (CentOS7, MariaDB 10.1.29) LynX 2018-01-03 420
16 Linux wkhtmltopdf wkhtmltoimage install LynX 2018-01-31 551
15 HTML Tag CSS 여러가지 모양 만들기 LynX 2018-02-08 710
14 CentOS CentOS7 커널 업데이트 LynX 2018-04-23 645
13 APM MySQLTuner 설치 LynX 2018-04-27 458
12 APM 윈도우에 APM 페키지 설치 file LynX 2018-05-04 475
11 CentOS cli 무선랜 LynX 2018-06-07 365
10 Printer cura usb connection LynX 2018-07-06 614

XE Login