본문 바로가기

프리/설치

IIS에 워드프레스 설치 완벽 가이드 A Complete Guide to Installing WordPress on IIS

서론

워드프레스는 전 세계에서 가장 인기 있는 콘텐츠 관리 시스템(CMS)이며, 워드프레스 웹사이트를 호스팅하는 여러 가지 방법이 있습니다. 대부분의 사람들은 아파치나 엔진엑스가 설치된 리눅스 서버를 선택하지만, IIS (인터넷 정보 서비스)를 사용하는 윈도우 서버에서도 워드프레스를 실행할 수 있습니다. 이 가이드에서는 IIS에 워드프레스를 설치하는 전체 과정을 안내하겠습니다.

선수 준비물

시작하기 전에 다음이 필요합니다:

  1. IIS가 설치된 윈도우 서버.
  2. 서버에 설치된 MySQL 또는 MariaDB.
  3. 서버에 설치된 PHP.

1단계: 윈도우 서버에 PHP 설치

IIS는 PHP에 대한 기본 지원이 없으므로 수동으로 PHP를 설치해야 합니다. - IIS에서 FastCGI로 PHP를 사용하는 경우 NTS(Non-Thread Safe) 버전의 PHP를 사용해야 합니다.

  1. PHP 웹사이트에서 PHP 인스톨러를 다운로드합니다.
  2. 인스톨러를 실행하고 IIS FastCGI 옵션을 선택합니다.
  3. PHP를 설치하라는 프롬프트를 따릅니다.

2단계: PHP를 위해 IIS 구성

  1. IIS 관리자를 엽니다.
  2. 왼쪽의 연결 창에서 서버를 선택합니다.
  3. "핸들러 매핑"을 두 번 클릭합니다.
  4. 오른쪽의 작업 창에서 "모듈 매핑 추가"를 클릭합니다.
  5. 다음 필드를 채웁니다:
    • 요청 경로: *.php
    • 모듈: FastCgiModule
    • 실행 파일: C:\path\to\php-cgi.exe
    • 이름: PHP_via_FastCGI
  6. 확인을 클릭합니다.

3단계: MySQL 또는 MariaDB 설치

아직 데이터베이스 서버를 설치하지 않았다면 지금 설치해야 합니다.

  1. 각각의 웹사이트에서 MySQL 또는 MariaDB 인스톨러를 다운로드합니다.
  2. 인스톨러를 실행하고 데이터베이스 서버를 설치하라는 프롬프트를 따릅니다.

4단계: 워드프레스를 위한 데이터베이스 생성

  1. MySQL 또는 MariaDB 명령줄 클라이언트를 엽니다.
  2. 워드프레스를 위한 데이터베이스와 사용자를 생성하기 위해 다음 명령을 입력합니다:
CREATE DATABASE wordpress;
CREATE USER 'wordpressuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpressuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

5단계: 워드프레스 설치

  1. 워드프레스 웹사이트에서 최신 버전의 워드프레스를 다운로드합니다.
  2. 워드프레스 파일을 서버의 원하는 위치에 압축 해제합니다.
  3. IIS 관리자를 열고 워드프레스 파일을 추출한 폴더를 가리키는 새 웹사이트를 만듭니다.
  4. 웹 브라우저를 열고 새 웹사이트의 URL로 이동합니다.
  5. 워드프레스 설치를 완료하기 위해 프롬프트를 따릅니다.

결론

축하합니다, IIS에 워드프레스를 성공적으로 설치했습니다! 이제 워드프레스 관리 대시보드에 로그인하여 웹사이트를 만들기 시작할 수 있습니다. 웹사이트 설정을 구성하고 웹사이트의 기능을 향상시키기 위해 필요한 플러그인을 설치하는 것을 잊지 마세요.

 

Introduction

WordPress is the most popular content management system (CMS) in the world, and there are several ways to host a WordPress website. Most people choose a Linux server with Apache or Nginx, but you can also run WordPress on a Windows server using IIS (Internet Information Services). In this guide, I will walk you through the complete process of installing WordPress on IIS.

Prerequisites

Before you start, you'll need the following:

  1. A Windows server with IIS installed.
  2. MySQL or MariaDB installed on your server.
  3. PHP installed on your server.

Step 1: Install PHP on Your Windows Server

IIS does not have built-in support for PHP, so you will need to install PHP manually.

  1. Download the PHP installer from the PHP website.
  2. Run the installer and select the IIS FastCGI option.
  3. Follow the prompts to install PHP.

Step 2: Configure IIS for PHP

  1. Open the IIS Manager.
  2. Select your server from the connections pane on the left.
  3. Double click on "Handler Mappings".
  4. Click on "Add Module Mapping" in the actions pane on the right.
  5. Fill out the following fields:
    • Request path: *.php
    • Module: FastCgiModule
    • Executable: C:\path\to\php-cgi.exe
    • Name: PHP_via_FastCGI
  6. Click OK.

Step 3: Install MySQL or MariaDB

If you have not already installed a database server, you will need to do so now.

  1. Download the installer for MySQL or MariaDB from their respective websites.
  2. Run the installer and follow the prompts to install the database server.

Step 4: Create a Database for WordPress

  1. Open the MySQL or MariaDB command line client.
  2. Enter the following commands to create a database and a user for WordPress:
CREATE DATABASE wordpress;
CREATE USER 'wordpressuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpressuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Step 5: Install WordPress

  1. Download the latest version of WordPress from the WordPress website.
  2. Extract the WordPress files to the desired location on your server.
  3. Open the IIS Manager and create a new website that points to the folder where you extracted the WordPress files.
  4. Open a web browser and navigate to the URL of your new website.
  5. Follow the prompts to complete the WordPress installation.

Conclusion

Congratulations, you have successfully installed WordPress on IIS! You can now log in to the WordPress admin dashboard and start building your website. Remember to configure your website settings and install any necessary plugins to enhance your website's functionality.

 

워드프레스 #IIS #윈도우서버 #PHP #MySQL #MariaDB #웹사이트 #웹호스팅 #데이터베이스 #웹서버 #워드프레스설치 #IIS설정 #서버구성

 

 

2023.08.30 - [워크/C# 5.0] - Windows Runtime (WinRT) 지원