보안을 위해서 5.3 미만을 사용하는 곳은 5.3 이상으로 업그레이드를 하는것이 좋습니다.
# UPDATE THE SYSTEM 시스템 업데이트 sudo apt-get update sudo apt-get upgrade -y # INSTALL BUILD DEPENDENCIES, PHP 빌드 종속성 설치 apt-get install libfcgi-dev libfcgi0ldbl libjpeg62-dbg libmcrypt-dev libssl-dev libbz2-dev libjpeg-dev \ libfreetype6-dev libpng12-dev libxpm-dev libxml2-dev libpcre3-dev libbz2-dev libcurl4-openssl-dev \ libjpeg-dev libpng12-dev libxpm-dev libfreetype6-dev libmysqlclient-dev libt1-dev libgd2-xpm-dev \ libgmp-dev libsasl2-dev libmhash-dev unixodbc-dev freetds-dev libpspell-dev libsnmp-dev libtidy-dev \ libxslt1-dev libmcrypt-dev libdb5.3-dev # DOWNLOAD PHP, PHP 소스 다운로드 PHP_VERSION=5.3.29 wget -O /var/tmp/php-${PHP_VERSION}.tar.bz2 \ http://bg2.php.net/get/php-${PHP_VERSION}.tar.bz2/from/this/mirror # EXTRACT PHP SOURCESㅡ PHP 소스 압축해제 mkdir -p /opt/build tar jxf /var/tmp/php-${PHP_VERSION}.tar.bz2 -C /opt/build cd /opt/build/php-${PHP_VERSION} # CONFIGURE PHP SOURCES, PHP 소스구성 ./configure \ --enable-fpm \ --with-mcrypt \ --enable-mbstring \ --with-openssl \ --with-mysql \ --with-mysql-sock \ --with-gd \ --with-jpeg-dir=/usr/lib \ --enable-gd-native-ttf \ --with-pdo-mysql \ --with-libxml-dir=/usr/lib \ --with-mysqli=/usr/bin/mysql_config \ --with-curl \ --enable-zip \ --enable-sockets \ --with-zlib \ --enable-exif \ --enable-ftp \ --with-iconv \ --with-gettext \ --enable-gd-native-ttf \ --with-t1lib=/usr \ --with-freetype-dir=/usr \ --prefix=/opt/PHP-5.3 \ --with-config-file-path=/opt/PHP-5.3/etc \ --with-fpm-user=www-data \ --with-fpm-group=www-data # COMPILE PHP, PHP 컴파일 make make test # INSTALL PHP, PHP 설치 make install # VERIFY PHP VERSION, PHP 버전 확인 /opt/PHP-5.3/bin/php -v PHP 5.3.29 (cli) (built: Aug 20 2014 07:33:45) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies
configure: error: freetype.h not found # freetype.h 에러시 링크 연결 mkdir /usr/include/freetype2/freetype ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h
반응형
'lang > php' 카테고리의 다른 글
CodeIgniter Lib (0) | 2014.09.15 |
---|---|
mcrypt (0) | 2014.08.30 |
PHP Cheat Sheet (0) | 2014.07.31 |
PHP RESTful Micro Frameworks (0) | 2014.07.20 |
PHP 가속기 (0) | 2014.07.17 |