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 OCX --> CAB 작성 file LynX 2014-06-13 2801
28 CentOS7 ▒ Doly의 CentOS7 강좌6 2.CenOS 7 설치-4 file LynX 2014-10-23 2929
27 APM PHP-7.2.0 LynX 2017-12-12 3015
26 CentOS samba [22] LynX 2015-06-07 3098
25 Xpress Engine XE - XML 쿼리 언어 LynX 2014-07-11 3104
24 Network GNS3 상세 설정 file [26] LynX 2015-04-29 3111
23 Server Josso file LynX 2013-12-19 3229
22 Linux Postfix 표준 설정 예제 [14] LynX 2014-11-25 3343
21 Linux USB부팅 리눅스의 변경 사항 초기화 [16] LynX 2015-01-07 3609
20 CentOS7 ▒ Doly의 CentOS7 강좌18 6. CentOS 네트워크 4-네트워크 본딩(bonding) file [10] LynX 2014-10-23 3659
19 Linux imap-php 설치 [7] LynX 2014-09-02 3727
18 Linux musescore LynX 2015-03-28 3779
17 CentOS7 ▒ Doly의 CentOS7 강좌19 6. CentOS 네트워크 5-관련 명령어 LynX 2014-10-23 4070
16 Programing Sublime Text License Keys LynX 2016-03-24 4182
15 Programing meadco print LynX 2013-12-12 4267
14 Network VLAN 설정 ① Access mode file [27] LynX 2015-04-29 4270
13 CentOS APM 소스설치 정리 file [18] LynX 2015-06-17 4628
12 CentOS7 ▒ Doly의 CentOS7 강좌29 12. 네트워크 보안설정 12.1 firewalld (2/2) [21] LynX 2015-06-09 5282
11 CentOS7 ▒ Doly의 CentOS7 강좌27 10. 디스크관리 6 XFS 쿼타 file [15] LynX 2015-06-09 5732
10 CentOS7 ▒ Doly의 CentOS7 강좌13 4. 원격접속 - 3.Telnet file [8] LynX 2014-10-23 5922

XE Login