Web Server 만들기 (Aphach + PHP)

★ 오토셋, APM 등의 서버를 설치해도 되지만 따로따로 설치해 보도록 하겠다.

1. Aphache Server 설치
   (1) http://www.apache-kr.org/(새 창으로 열기)  Aphache Server를 다운 받아 설치 한다.
       설치 디렉토리 : C:\Web_Server\Apache2.2
   (2) 아래처럼 작업표시줄에서 실행중인지 확인한다.

사용자 삽입 이미지
   
 

   (3) 더블 클릭하여 아래와 같이 정상적으로 설치 되었는지 확인


2. PHP 설치
   (1) http://php.net/(새 창으로 열기)  우측상단에서 Releases 되어 있는 PHP Version을 다운 받는다.
       PHP 5.2.6 installer 다운
       PHP 5.2.6 zip package 다운
       자세한 설치 내용은 install.txt 파일을 참조 바람.
   (2)  압축을 풀어 설치하거나 Install 하여 설치한다.
       설치디렉토리 : C:\Web_Server\php5.2.6

3. Aphache 에 PHP 및 CGI 설정
   (1) CGI 설정 (httpd.conf)

사용자 삽입 이미지
        해당경로 : C:\Web_Server\Apache2.2\conf\httpd.conf

        ScriptAlias /php/ "C:/Web_Server/php5.2.6/"  
        AddType application/x-httpd-php .php
   
   PHP 4 이면 Action application/x-httpd-php "C:/Web_Server/php5.2.6/php.exe"  추가
   PHP 5 이면 Action application/x-httpd-php "C:/Web_Server/php5.2.6/php-cgi.exe" 추가

   (2) PHP 설정  (httpd.conf)

PHP4이면
LoadModule php4_module "C:/Web_Server/php5.2.6/php4apache2.dll"

PHP5이면
LoadModule php5_module "C:/Web_Server/php5.2.6/php5apache2.dll"


아래의 설정은 홈페이지의 Root 주소를 설정 및 PHP.ini의 경로 지정 하는 부분이다.
기본Root주소  : DocumentRoot "C:/Web_Server/Apache2.2/htdocs"
DocumentRoot "C:/Web_Server/home"
<Directory "C:/Web_Server/Apache2.2/htdocs">  -->  <Directory "C:/Web_Server/home"> 변경

PHPIniDir "C:/Web_Server/php5.2.6"

어렵게 설명 했지만.... httpd.conf 안에 아래의 4줄만 있으면 상관없다.

PHP5이면
ScriptAlias /php/ "C:/Web_Server/php5.2.6/"
Action application/x-httpd-php "C:/Web_Server/php5.2.6/php-cgi.exe"
PHPIniDir "C:/Web_Server/php5.2.6/"
LoadModule php5_module "C:/Web_Server/php5.2.6/php5apache2_2.dll"

PHPIniDir "C:/Web_Server/php5.2.6/"
LoadModule php5_module "C:/Web_Server/php5.2.6/php5apache2.dll"
PHPIniDir "C:/Web_Server/php5.2.6/"
LoadModule php5_module "C:/Web_Server/php5.2.6/php5apache.dll"
사용자 삽입 이미지

PHP4이면
ScriptAlias /php/ "C:/Web_Server/php4.3.1/"
Action application/x-httpd-php "C:/Web_Server/php4.3.1/php-cgi.exe"
PHPIniDir "C:/Web_Server/php4.3.1/"
LoadModule php4_module "C:/Web_Server/php4.3.1/php4apache2_2.dll"
PHPIniDir "C:/Web_Server/php4.3.1/"
LoadModule php4_module "C:/Web_Server/php4.3.1/php4apache2.dll"
PHPIniDir "C:/Web_Server/php4.3.1/"
LoadModule php4_module "C:/Web_Server/php4.3.1/php4apache.dll"

마지막으로 C:\Web_Server\php5.2.6\php5ts.dll 파일을 C:\Windows\system32 폴더에 복사한다.

3. Web Server 고급 설정 (httpd.conf)
   ServerRoot “/etc/httpd” : 웹서버의설정파일, 로그파일등이저장되는최상위디렉토리
Timeout 120 :서버와클라이언트연결시에아무런메시지가없을때오류로처리되는초단위시간.
Listen 80 : 웹서버의포트번호. 기본적으로웹서버는80번포트를사용한다.
ServerAdmin root@localhost : 관리자의메일주소
DocumentRoot “/var/www/html”<280라인> : 웹서버의홈디렉토리“http://localhost 로접속되는디렉토리
DirectoryIndex index.html index.html.var<390라인>  : 기본문서
   AddType application/x-httpd-php .php .php3 .php4 .htm .html .inc : 서버가인식할확장자를추가하는영역

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기
2008/11/14 02:46 2008/11/14 02:46
TAG 이올린 태그검색올블로그 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색티스토리 태그검색

trackback url :: http://dewily.com/tc/dew/trackback/216

댓글을 달아 주세요

  1. Lovie 2017/09/21 13:07

    Thanks for finally writing about >♡ 이슬처럼 ♡ :: Web Server 만들기 (Aphach PHP) <Liked it!

  2. en.wikipedia.org 2017/11/18 20:20

    I believe what you said was actually very logical. But,
    what about this? what if you typed a catchier title? I ain't
    suggesting your information isn't good.,however suppose you
    added a post title that makes people wat more?
    I mean ♡ 이슬처럼 ♡ :: Web Server 만들기 (Aphach PHP) is a little plain. You ought to peek
    at Yahoo's home page aand watch how they write news headlines to grab
    people interested. Yoou might add a related video or a pic or two to grab readers
    interested about everything've written. In my opinion, it might make
    your blog a little bit more interesting.

  3. Dacia 2017/12/31 12:53

    I think that everything said made a bunch of sense.

    However, what about this? suppose you wrote a catchier title?
    I mean, I don't want to tell you how to run your website, however what if you added a titfle
    that grabbed people's attention? I mean ♡ 이슬처럼 ♡ :: Web Server 만들기 (Aphach
    PHP) iss a little plain. You should look at Yahoo's hoe page
    and see hhow they create news headlines to get viewers to click.
    You might add a related video or a pic or two to get people excted about everything've got to
    say. Just my opinion, itt might make yyour blog a litttle bit more interesting.

  4. Micheal 2018/01/02 02:33

    I believe everything said was actgually very reasonable.
    But, what about this? what iif you were to create a wesome title?
    I mean, I don't wwant to tell you how to run your blog, however suppose
    you added something that maakes people want more? I mean ♡
    이슬처럼 ♡ :: Web Server 만들기 (Aphach PHP) iss kinda
    boring. Youu might peek at Yahoo's front page andd note how they write artticle titles to grab viewers to open the links.

    You might addd a related video or a picture or two to get people excited aabout everything've written. Just my opinion, it might bring
    your blog a little livelier.

  5. Loyd 2018/01/11 19:47

    Thanks for finally writing about >♡ 이슬처럼 ♡ :
    : Web Server 만들기 (Aphach PHP) <Liked it!

  6. www.facebook.com 2018/01/22 07:40

    I think everything said made a ton of sense. However,
    what about this? what iff you added a little
    information? I mean, I don't want to tell you
    how to run your blog, but what iif you added a title that
    grabbed people's attention? I mean ♡ 이슬처럼
    ♡ :: Web Server 만들기 (Aphach PHP) is kinda vanilla.

    You ought tto peek at Yahoo's home page and note how they create post headlines to get people to click.
    You might try adding a video or a pic or two tto get people excited about what you've
    got to say. In myy opinion, it might mmake your posts a little bit more interesting.

  7. Miriam 2018/02/18 18:04

    I believe everything publlished was actually very
    logical. However, what about this? what if you added a little content?

    I am not saying your content is not good., but suppose you
    added something to possibly get people's attention? I mean ♡ 이슬처럼 ♡ :: Web
    Server 만들기 (Aphach PHP) is kinda plain. You might glance at Yahoo's front page and
    note how they write news headlines to grab people to open the links.
    You might try adding a video or a related pic or two to get
    people excited about everything've written.
    In my opinion, it could bring your posts a little bit more interesting.

  8. Merry 2018/03/02 02:35

    I think that what you posted was very reasonable.

    But, consider this, what if you added a little content? I am not saying your information isn't good, however suppose you added something
    that makes people want more? I mean ♡ 이슬처럼 ♡ :: Web Server 만들기 (Aphach PHP) is kinda vanilla.

    You should look at Yahoo's front page and note how they create post headlines to get viewers
    to click. You might try adding a video or a pic or two to grab people excited
    about everything've got to say. In my opinion, it could make
    your posts a little bit morre interesting.

  9. Sherman 2018/06/24 13:45

    Thanks for finally writing about >♡ 이슬처럼
    ♡ :: Web Server 만들기 (Aphach PHP) <Loved it!

write a comment

[로그인][오픈아이디란?]