Skip to content

ubuntu 10.04 에서 Nginx, Mysql, PHP5

조회 수 5124 추천 수 0 2013.02.28 17:12:43

ubuntu 10.04를 설치했습니다. root로 로그인해서 apt-get update 하고 mysql 서버 설치

 

1.apt-get update
2.apt-get install mysql-server mysql-client

root 비번 설정하고

nginx 설치. 설치된지도 모르게 조용히 설치됨...

1.apt-get install nginx
2./etc/init.d/nginx start

브라우저로 접속...

그리고 php5 설치 + php.init 내용 수정(cgi.fix_pathinfo=1)

1.apt-get install php5-cgi php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-recode php5-snmp php5-sqlite php5-xmlrpc php5-xsl
2.vi /etc/php5/cgi.php.ini

수정 후 FastCGI package 설치 (nginx에는 없다함 그래서 lighttpd 설치 후 삭제)

1.apt-get install lighttpd
2.update-rc.d -f lighttpd remove

FastCGI 데몬 시작 및 rc.local 에 등록

1./usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid

nginx 설정 변경(/etc/nginx/sites-available/default)

1.server_name  _;
2.location ~ \.php$ {
3.    fastcgi_pass   127.0.0.1:9000;
4.    fastcgi_index  index.php;
5.    fastcgi_param  SCRIPT_FILENAME  /var/www/nginx-default$fastcgi_script_name;
6.    include fastcgi_params;
7.}

server_name _; 으로 지정하는 것은 deault로 적용되도록 하기 위해서, nginx 서버 재시작 & info.php 편집 및 테스트

1./etc/init.d/nginx restart
2.vi /var/www/nginx-default/info.php
1.<?php
2.phpinfo();
3.?>

서버 세팅 완료

profile

일요일은 짜빠게뤼~ 먹는날~^^

태그
엮인글 :
http://adminplay.com/180570/805/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수

[ UDP ] packet buffer size 조절

리눅스 메모리 관리, 왜 메모리 여유공간이 없을까? (top ...

sysctl 조정 방법

웹 언어별 no-cache 리스트

ubuntu 부팅시 서비스 자동실행 및 실행방지

Installing NGINX, PHP, and MySQL on Ubuntu 10.04 LTS u...

Bigbluebutton Installation Ubuntu

dpkg 사용법

[Ubuntu] 부팅시 시작되는 데몬 관리하기 – update-rc.d

ubuntu 10.04 에서 Nginx, Mysql, PHP5

우분투(Ubuntu) ssh 설정하기

proxy 서버 통해서 외부문서 불러오기 curl

운영중인 Linux 서버에서 NTFS 파일 시스템 삭제하기

Sample rate(샘플레이트)와 Bit rate (비트레이트)

도메인 Status 상태별 설명 안내

sakai 2.7.0 source installation in ubuntu 10.04.1 file

Ubunt (우분투) 에서 sun-java6-jdk 설치

Unbunt OS 에서 Maven 설치(Install it – apt-get install)

우분투 DNS 변경 및 고정

우분투 네트웍크 설정

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234