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
329 Network vpn LynX 2016-06-29 263
328 웹 페이지의 원하는 테이블만 프린트 LynX 2013-03-15 268
327 Xyview DVR서버 연결 [8] LynX 2012-04-19 269
326 웹 프린트 작업시 픽셀과 밀리미터간의 상관관계 (1mm=3.8px ) [8] LynX 2013-03-15 271
325 Xpress Engine XML 쿼리 대신 직접 mysql 사용하기 LynX 2014-07-19 273
324 CentOS CentOS7 WHEEL 계정 추가 file LynX 2017-02-03 275
323 Windows 윈도우 8 pro key LynX 2014-05-26 277
322 32bit Driver을 64bi로 설치하기 [8] LynX 2011-06-21 282
321 윈도우서버2008 - 06 (보안 정책 및 감사) file [10] LynX 2012-11-28 285
320 Linux Linux Apache 2.4 설치 LynX 2014-06-27 286
319 Linux cinnamon [10] LynX 2014-12-11 287
318 Programing cab파일에 인증서 포함하기 LynX 2014-06-13 293
317 Linux [Linux] 특정 계정만 su -(root)를 통한 root접근 허용 LynX 2014-07-04 294
316 Server Windows7에 Apache 설치 file LynX 2013-09-05 297
315 LinuxMint LinuxMint PHP source 설치 [1] LynX 2014-12-30 297
314 Linux 10 - NFS,apache file [10] LynX 2012-11-29 298
313 Programing print script LynX 2013-12-11 300
312 CentOS7 ▒ Doly의 CentOS7 강좌15 5. CentOS 기본설정 2 - 날짜 및 시간설정 file [6] LynX 2014-10-23 300
311 Windows7 에서 시스템을 백업/복원하는 가장 쉬운 방법!! file LynX 2010-11-07 305
310 Linux 03 - VMware,네트워크,VMware인터넷설정,리눅스인터넷 file LynX 2012-11-29 305

XE Login