PHP 5.4.36 Released


在本教程中,假设用户的服务器已经安装并运行了 PHP,所有以 .php 结尾的文件都将由 PHP 来处理。在大部分的服务器上,这是 PHP 的默认扩展名,不过,也请询问服务器管理员以确认。如果服务器支持 PHP,则不需要做任何事情。只用建立 .php 文件,并把它们放置到 web 目录中,服务器将神奇地自动解析这些文件。不用编译任何东西,也不用安装任何其它的工具,仅仅只需把这些使用了 PHP 的文件想象成简单的 HTML 文件,其中只不过多了一种新的标识符,在这里可以做各种各样的事情。大多数的 web 主机都提供 PHP 的支持,如果你的主机不支持,可以访问 » PHP 相关链接来查找支持 PHP 的 web 主机。

假设用户希望在本地机器开发以节约宝贵的带宽。在这种情况下,需要安装一个诸如 » Apache 的 web 服务器,当然还有 » PHP。可能还希望安装一个数据库,例如 » MySQL

可以一个个的安装它们或选择一个更简单的方法。可以参考本手册中 PHP 安装说明的相关章节(假设已经配置好了某个 web 服务器)。若在自己安装 PHP 时出现了问题,建议在» 安装邮件列表中询问。如果想使用更简便的方法安装 PHP,那么可以考虑» 获取一个预先配置的安装包,用这个安装包,只用点击几下鼠标,就可以自动地安装所有这些系统。在任何操作系统下建立有 PHP 支持的 web 服务器都十分简单,包括 MacOSX、Linux 和 Windiws。在 Linux 下,会发现 » rpmfind» PBone 能够在获取 RPM 时提供帮助。也可以使用 » apt-get 搜索 Debian 的相关软件包。

add a note add a note

User Contributed Notes 11 notes

chris_evans at tesco dot net
3 months 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
santanaviny at gmail dot com
8 hours ago
If you are comfortable if the command line interface, it might be a good idea to use virtualization to build you development environment.

I found it really easy to user Oracle Virtual Box combined with Vagrant. They are both well documented and easy to use.

Once you get Vagrant, you can install pre-configured environments as laravel Homestead.

Just google those terms. It might blow your mind.
me at hemantmaurya dot com
1 month 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.
spiderg at email dot com
3 months 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
3 months ago
Easy PHP does not install any service and can be run just as needed:
rahularora dot net at gmail dot com
3 months ago
Get PHP up and running with WAMP on Windows, MAMP on Mac, LAMP on Linux.
peaceinoffice at gmail dot com
6 months ago
I use OpenServer is easy to configure and have same extra tools
7 months ago
mostly wamp install in window. easy to configure and very easy to use.
ddiipp at outlook dot com
1 year ago
Use Xampp or Wamp in windows,linux. And MAMP in Mac
josejayesh at gmail dot com
10 months ago
Use vagrant ( ) , and to setup the environment
info at fahdi dot tk
1 year ago
Hey , get yourself WAMP for fast forwarding on this one.
To Top