2013. 6. 18. 20:18ㆍOS/Linux
아래의 소스는 ubuntu 12.04 64bit에서 작성했습니다.
관련 프로그램 설치
apt-get install nginx php5-cli php5-fpm php5-cgi php5-mysql mysql-server mysql-client php5-gd php5-mcrypt spawn-fcgi
sysv-rc-conf 에서 mysql nginx를 2345 레벨에서 동작하도록 등록
없다면 apt-get install sysv-rc-conf 로 설치
nginx 설정하기
cd /etc/nginx/sites-available/
vi default
index 리스트에 index.php 추가
php 관련 옵션 부분 아래와 같이 주석 해제
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
#
# # With php5-cgi alone:
fastcgi_pass 127.0.0.1:9000;
# # With php5-fpm:
# fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
'OS > Linux' 카테고리의 다른 글
Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName (0) | 2013.06.20 |
---|---|
서버에 내부 오류가 생겨 요청을 끝까지 처리하지 못했습니다. 서버에 과부하가 걸렸거나 아니면 CGI 프로그램에 오류가 있었습니다. (0) | 2013.06.19 |
리눅스 부팅 프로그램 설정하기 (0) | 2013.06.15 |
centos 에 yum 으로 x-window 설치하기 (0) | 2013.06.14 |
svn 정보 변경하기 (0) | 2013.06.14 |