PHP 5.6.16 is available

무엇이 필요한가?

이 튜토리얼은 서버가 PHP를 지원하고, .php 확장자를 가지는 모든 파일을 PHP로 다루고 있다고 가정합니다. 대부분의 서버에서 이는 PHP의 기본 확장자입니다만, 확인하기 위해서 서버 관리자에게 문의해보십시오. 서버가 PHP를 지원하고 있다면, 더 이상 준비할 것은 없습니다. 단순히 .php 파일을 만들어서 웹 디렉토리에 넣으면, 서버가 자동적으로 처리합니다. 컴파일할 필요도 없고, 별도의 툴을 설치할 필요도 없습니다. PHP를 포함한 파일을, 모든 일을 할 수 있는 마법의 태그를 가진 단순한 HTML 파일이라고 생각하십시오. 대부분의 웹 호스트는 PHP를 지원하지만, 지원하지 않을 경우에는 » PHP 링크 섹션에서 PHP를 지원하는 웹 호스트에 대한 정보를 얻을 수 있습니다.

대역폭을 보존하기 위해 로컬 영역에서 개발하고 싶을 수도 있습니다. 이 경우에는, » 아파치 등의 웹 서버와 함께 » PHP를 설치할 수 있습니다. 원한다면 » MySQL 등의 데이터베이스를 설치할 수도 있습니다.

이들은 개별적으로 설치하거나, 보다 간단한 방법을 이용할 수 있습니다. 매뉴얼에는 PHP 설치 안내(이미 설치한 몇몇 웹 서버를 따라서)가 있습니다. 이 경우, PHP 설치시에 문제가 있다면, » 설치 메일링 리스트를 통하여 질문을 할 수 있습니다. 보다 간단한 길을 간다면, 사용하는 OS를 위한 » 미리 설정된 패키지를 사용하여, 이 모든 것을 간단한 마우스 클릭만으로 설치할 수 있습니다. MacOSX, 리눅스, 윈도우를 포함하여, 어떠한 운영 체제 아래에서도 간단히 PHP를 지원하는 웹 서버를 설정합니다. 리눅스에서는, » rpmfind» PBone이 RPM을 찾을 때 유용합니다. » apt-get에서 데비안 패키지를 찾을 수 있습니다.

add a note add a note

User Contributed Notes 13 notes

up
19
wojciech dot fornal at gmail dot com
10 months ago
For really simple ad hoc server working at any location you want, you can use PHP's built-in web server (available since PHP 5.4.0). Just run in the shell/cli in a directory where you have your .php files:

$ php -S localhost:8000

This will run PHP built-in server on your localhost and port 8000. If you want to learn more about available options you can use --help flag.

$ php --help

Please note that enabling directory listing requires additional effort.
up
12
chris_evans at tesco dot net
1 year ago
On Windows I found WampServer an extremely easy install for Apache, PHP and MySQL and thought it may deserve a mention on this topic.  Available at http://www.wampserver.com/en/.
up
1
BIGBEN
8 months ago
Use LAMP in Linux and install it with tasksel easy to go
up
-8
gaodacheng22 at gmail dot com
8 months ago
One word on this page -- "在任何操作系统下建立有 PHP 支持的 web 服务器都十分简单,包括 MacOSX、Linux 和 Windiws",  "windiws" maybe spelled "windows".
up
-16
spiderg at email dot com
1 year ago
If you want to use PHP on Windows, you can use the oficial PHP implementation of Windows, through Microsoft Web Platform. Is free and is integrated with IIS. Check the url http://php.iis.net/
up
-31
rahularora dot net at gmail dot com
1 year ago
Get PHP up and running with WAMP on Windows, MAMP on Mac, LAMP on Linux.
up
-28
me at hemantmaurya dot com
1 year ago
------------------------ MAC OSX ------------------------
Users are always confused that Should they Use MAMP Or XAMP may be sometimes WAMP.

MAMP Got very few updates but xamp Got timely Updated.
up
-2
iraklius
11 days ago
I use EasyPHP DevServer is easy to configure and have same extra tools
up
-102
bloggernitscomp54engg[at]gmail(dot)com
1 year ago
mostly wamp install in window. easy to configure and very easy to use.
up
-124
peaceinoffice at gmail dot com
1 year ago
I use OpenServer is easy to configure and have same extra tools
up
-165
ddiipp at outlook dot com
1 year ago
Use Xampp or Wamp in windows,linux. And MAMP in Mac
To Top