기본적으로 apt-get 명령을 이용해서는 최신버전이 아닌 "안정적인" 최신버전이 설치되도록 되어 있습니다.


PPA라고 하는 Personal Package Archives의 공식 패키징이 아닌 사용자가 제작한 패키지를 이용해서 최신버전을 설치할 수 있습니다.



Basically, you can install "stable" version of nginx and PHP using "apt-get install" command.


You can install newest version of nginc, PHP with PPA(Personal Package Archives).



* 시스템에 PPA를 추가하기(Adding PPA to Ubuntu)

nginx : add-apt-repository ppa:nginx/stable

PHP5 : add-apt-repository ppa:ondrej/php5


* add-apt-repository 명령어가 동작하지 않는 경우, (in case of "add-apt-repository command not found")

apt-get install python-software-properties

명령으로 추가 프로그램 설치(Install the package includes "add-apt-repository"


* PPA가 추가된 이후에는 반드시 패키지 정보를 업데이트 (update your package information)

apt-get update


* 이후 설치되는 nginx, php5 는 모두 최신버전임. (you can install newest nginx, PHP5)

nginx : apt-get install nginx

PHP5 : apt-get install php5-fpm


+ Recent posts