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
관련문서
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
81 | vmware with centos 7 | 2019.08.23 | 0 |
80 | php-fpm tcp to socket | 2020.01.25 | 0 |
79 | net::ERR_CONNECTION_REFUSED | 2021.10.11 | 0 |
78 | my.cnf | 2019.04.11 | 1 |
77 | To download large files with rsync command. | 2023.05.04 | 24 |
76 | The best configuration of php7.4-fpm / 8GB | 2023.05.04 | 26 |
75 | The best configuration of php7.4-fpm / 1.5GB | 2023.05.04 | 29 |
74 | windows hardware encrypt ssd | 2024.01.23 | 353 |
73 | gearman 은 무엇인가? | 2023.06.21 | 422 |
72 | mysqldump from remote db to my local server. | 2023.05.04 | 426 |
71 | apache2 AllowOverride config | 2023.05.23 | 475 |
70 | php 에서 비동기 처리하는 방법 | 2023.06.22 | 486 |
69 | mysql 백업 (shell script) | 2018.10.14 | 698 |
68 | yum install php 7.1 [6] | 2018.10.10 | 703 |
67 | munin 설치 | 2018.10.13 | 793 |
66 | yum install mariadb [2] | 2018.10.10 | 1151 |
65 | 웹 백업 (쉘 스크립트) | 2018.10.14 | 1207 |
64 | certbot apache multiple domain | 2019.04.10 | 1421 |
63 | yum install php-apcu | 2019.03.12 | 1552 |
62 | yum install latest redis | 2019.03.27 | 1688 |
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