©
This document uses PHP Chinese website manual Release
在本教程中,假设用户的服务器已经安装并运行了 PHP,所有以 .php 结尾的文件都将由 PHP 来处理。在大部分的服务器上, 这是 PHP 的默认扩展名,不过,也请询问服务器管理员以确认。如果服务器支持 PHP ,则不需要做任何事情。只用建立 .php 文件,并把它们放置 到 web 目录中,服务器将神奇地自动解析这些文件。不用编译任何东西,也不用安装 任何其它的工具,仅仅只需把这些使用了 PHP 的文件想象成简单的 HTML 文件,其中 只不过多了一种新的标识符,在这里可以做各种各样的事情。
假设用户希望在本地机器开发以节约宝贵的带宽。在这种情况下,需要安装一个诸如 » Apache 的 web 服务器,当然还有 » PHP。可能还希望安装一个数据库,例如 » MySQL。
可以一个个的安装它们或选择一个更简单的方法。可以参考本手册中 PHP 安装说明的相关章节(假设已经配置好了某个 web 服务器)。若在自己安装 PHP 时出现了问题,建议在» 安装邮件列表中询问。如果想使用更简便的方法安装 PHP,那么可以考虑» 获取一个预先配置的安装包,用这个安装包,只用点击几下鼠标,就可以自动地安装所有这些系统。在任何操作系统下建立有 PHP 支持的 web 服务器都十分简单,包括 MacOSX、Linux 和 Windiws。在 Linux 下,会发现 » rpmfind 和 » PBone 能够在获取 RPM 时提供帮助。也可以使用 » apt-get 搜索 Debian 的相关软件包。
[#1] iraklius [2015-11-19 13:14:35]
I use EasyPHP DevServer is easy to configure and have same extra tools
[#2] jairo dot sanchez dot olvera at gmail dot com [2015-10-13 20:08:31]
The link http://www.apt-get.org/ is broken.
[#3] gaodacheng22 at gmail dot com [2015-03-26 02:29:24]
One word on this page -- "???κβ???????????? PHP ???? web ????????????????? MacOSX??Linux ?? Windiws", "windiws" maybe spelled "windows".
[#4] BIGBEN [2015-03-09 10:02:49]
Use LAMP in Linux and install it with tasksel easy to go
[#5] wojciech dot fornal at gmail dot com [2015-01-04 09:30:32]
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.
[#6] me at hemantmaurya dot com [2014-11-11 19:16:14]
------------------------ 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.
[#7] rahularora dot net at gmail dot com [2014-09-20 08:47:15]
Get PHP up and running with WAMP on Windows, MAMP on Mac, LAMP on Linux.
[#8] chris_evans at tesco dot net [2014-09-18 15:48:44]
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/.
[#9] spiderg at email dot com [2014-09-13 20:57:12]
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/
[#10] peaceinoffice at gmail dot com [2014-06-03 13:18:05]
I use OpenServer is easy to configure and have same extra tools
[#11] bloggernitscomp54engg[at]gmail(dot)com [2014-05-09 12:05:26]
mostly wamp install in window. easy to configure and very easy to use.
[#12] josejayesh at gmail dot com [2014-02-19 15:01:38]
Use vagrant (http://www.vagrantup.com/ ) , https://www.virtualbox.org/ and https://puphpet.com/ to setup the environment
[#13] ddiipp at outlook dot com [2013-12-19 03:45:31]
Use Xampp or Wamp in windows,linux. And MAMP in Mac