server CentOS 6 - PHP 5.3.10 컴파일 / 보안
2012.04.15 10:08
참고 문서 |
---|
운영중인 CMS에 어울리는 php 버전을 선택해주세요.
라이브러리
# yum install libxml2-devel openssl-devel bzip2-devel curl-devel libjpeg-devel libpng-devel freetype-devel gmp-devel ncurses-devel unixODBC-devel pspell-devel net-snmp-devel libmcrypt-devel mysql-devel libtool-ltdl-devel
Suhosin (수호신)
# wget http://download.suhosin.org/suhosin-patch-5.3.9-0.9.10.patch.gz
# gunzip suhosin-patch-5.3.9-0.9.10.patch.gz
# wget http:
# tar xvfz php-5.3.10.tar.gz
# yum install patch
# cd php-5.3.10
# patch -p 1 -i ../suhosin-patch-5.3.9-0.9.10.patch
다운로드 / 컴파일
# cd php-5.3.10
# ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=mysqlnd --with-mysqli --disable-magic-quotes --disable-dmalloc --enable-bcmath --enable-gd-native-ttf --enable-inline-optimization --enable-mbstring --enable-mbregex --enable-gd-native-ttf --enable-ftp --with-jpeg-dir --with-freetype-dir --with-curl --with-zlib --with-gd --with-iconv --disable-debug --with-mcrypt --enable-suhosin --enable-exif --enable-sysvsem --enable-sysvshm
# make && make install
# cp php.ini-production /usr/local/php/lib/php.ini
expose_php = Off
post_max_size = 200M
allow_url_fopen = Off
date.timezone = "Asia/Seoul"
open_basedir = "/tmp:/home/"
disable_functions=exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
memory_limit=64M ; 32M 일 경우 XE Core 쉬운설치시 문제가 발생할 수 있습니다
php.ini
관련문서
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
60 | yum install php 7.1 [6] | 2018.10.10 | 685 |
59 | yum install mariadb [2] | 2018.10.10 | 1139 |
58 |
위젯 많은 페이지 - 부하 분산으로 속도 향상하기
![]() | 2014.12.12 | 8539 |
57 | 간단하고 강력한 xe 보안 향상 | 2014.11.08 | 1862 |
56 |
XE Core 최적화 - html/js/css
![]() | 2014.11.07 | 2166 |
55 | 스패머 알려주는 사이트 | 2014.09.11 | 2445 |
54 | 75mb 페이지에 lazy load 적용해보기 | 2014.09.03 | 2606 |
53 | date — 로컬 날짜/시간을 형식화합니다 | 2014.07.03 | 2607 |
52 | [뻘글] 컴퓨터의 언어와 사람의 기억법 | 2014.06.24 | 2214 |
51 | 서식문자 출력 대상(자료형) 출력 형태 | 2014.04.06 | 4477 |
50 | vmware workstation performance tips [2] | 2013.10.25 | 13883 |
49 | 유닉스 계정 관리 | 2013.10.15 | 14647 |
48 | 솔라리스 mount options | 2013.10.06 | 15314 |
47 | 솔라리스 디렉토리 | 2013.10.06 | 14259 |
46 |
Linux Memory 사용량
![]() | 2012.05.16 | 24975 |
45 |
Linux 설치시 파티션 관리
![]() | 2012.05.12 | 19199 |
44 |
Apache Module mod_ratelimit (아파치 트래픽 제한)
![]() | 2012.05.11 | 13662 |
43 |
SSL 설치 (Apache)
[1] ![]() | 2012.04.19 | 12857 |
42 |
계정 자동 생성
[2] ![]() | 2012.04.15 | 10725 |
41 | 자동 백업 / 삭제 (data + mysql) [1] | 2012.04.15 | 13579 |
php 5.3.11
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=mysqlnd --with-mysqli --disable-magic-quotes --disable-dmalloc --enable-bcmath --enable-gd-native-ttf --enable-inline-optimization --enable-mbstring --enable-mbregex --enable-gd-native-ttf --enable-ftp --with-jpeg-dir --with-freetype-dir --with-curl --with-zlib --with-gd --with-iconv --disable-debug --with-mcrypt --enable-exif --enable-maintainer-zts --enable-sysvsem --enable-sysvshm # --enable-suhosin