본문 바로가기
서버 Server/웹서버

Install Manual - PHP (edit.2016.04.26)

by #XTRM 2021. 4. 22.
반응형

1. Visual C++ Redistributable for Visual Studio 2012 설치
경로 : http://www.microsoft.com/en-us/download/details.aspx?id=30679
파일 : vcredist_x64.exe
apache v11, php v11 버전들은 Visual C++ Redistributable for Visual Studio 2012 해당 프로그램 필요하니 미리 설치

 


2. PHP다운로드

http://windows.php.net/download/

  VC14 x64 Thread Safe (2016-Mar-30 21:40:43)

  └ http://windows.php.net/downloads/releases/php-7.0.5-Win32-VC14-x64.zip


※VC6 : Apache 용
※VC9 : IIS 용
※Thread Safe 와 Non Thread Safe
  Windows + IIS(ISAPI) : VC9 Thread Safe 버전
  Windows + IIS(CGI or FastCGI) : VC9 Non Thread Safe 버전
  Windows + Apache(MPM worker) : VC6 Thread Safe 버전-----> 선택
  Windows + Apache(MPM prefork) : VC6 Non Thread Safe 버전


3. PHP 설치

메뉴얼 참고 : http://php.net/manual/en/install.windows.manual.php


● "D:/_www/_php" 압축 풀기

● php.ini-development 사본 생성 후 → php.ini 으로 파일명 변경

 

4. PHP.ini 편집

; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
extension_dir="D:\_www\_php\ext"


; http://php.net/log-errors
log_errors=On

error_log="D:\_www\_php\logs\php_error_log"

※아래 설정은 필요시 수정.
cgi.force_redirect = 0
cgi.fix_pathinfo = 1
fastcgi.logging = 0


5. PHP에 아파치 설정 추가

메뉴얼 참고 :http://php.net/manual/en/install.windows.apache2.php

  "D:/_www/_apache/conf/httpd.conf" 파일 편집


LoadModule php5_module "D:\_www\_php\php5apache2.dll"
AddHandler application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "D:/_www/_php"


아무거나 php파일로 인식하지 않도록 아래 구문도 넣어줍니다.

<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>

 

반응형

댓글