You cannot see this page without javascript.

PHP Suhosin 설치

APM 조회 수 231 추천 수 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 조회 수

Programing Magic Square (마방진) - 마방진코드와 나의 생각 03

  • LynX
  • 2016-08-09
  • 조회 수 1734

Linux firewalld DDOS 차단

  • LynX
  • 2016-08-22
  • 조회 수 958

Linux Apache httpd mod_evasive compile

  • LynX
  • 2016-08-22
  • 조회 수 260

Linux 하위 디렉토리 문자열 일괄검색,치환

  • LynX
  • 2016-08-24
  • 조회 수 251

Server 웹 동접자 수 확인 코드

  • LynX
  • 2016-09-08
  • 조회 수 843

Xpress Engine 현재접속과 로그인 수 표시 addon file

  • LynX
  • 2016-09-10
  • 조회 수 1690

Linux DDOS 방어

  • LynX
  • 2016-09-19
  • 조회 수 462

Xpress Engine xe 현재접속과 로그인 수 표시 addon 수정본 file [1]

  • LynX
  • 2016-09-20
  • 조회 수 2436

Xpress Engine xe 포인트 레벨과 등급 동기화 에드온 2.0 file

  • LynX
  • 2016-09-21
  • 조회 수 1419

Xpress Engine xe 현재접속과 로그인 수 표시 addon 1.3.0 file

  • LynX
  • 2016-09-22
  • 조회 수 1746

APM php7에 memcache.so 확장 모듈 적용 file

  • LynX
  • 2016-09-23
  • 조회 수 420

APM php에 memcached.so 확장 모듈 적용 file

  • LynX
  • 2016-09-23
  • 조회 수 224

Xpress Engine XE에 memcache 사용 설정

  • LynX
  • 2016-09-23
  • 조회 수 244

Xpress Engine mobileex 사용하여 모바일에서 첨부파일 올릴때 무한 로딩 현상

  • LynX
  • 2016-09-27
  • 조회 수 244

APM PHP Suhosin 설치 file

  • LynX
  • 2016-09-28
  • 조회 수 231

Linux MAME file

  • LynX
  • 2016-09-28
  • 조회 수 322

LinuxMint joystick install file

  • LynX
  • 2016-09-30
  • 조회 수 487

Linux linux 시간설정 file

  • LynX
  • 2016-10-07
  • 조회 수 401

APM php opcache 설치 file

  • LynX
  • 2016-10-14
  • 조회 수 1527

Network pka파일 만드는 방법 file

  • LynX
  • 2016-10-24
  • 조회 수 1613

XE Login