Files
freeCodeCamp/guide/chinese/php/php-install/index.md
T

29 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: PHP Install
localeTitle: PHP安装
---
### 我需要安装什么?
要开始使用PHP,您可以:
找到支持PHP和MySQL的Web主机。 在您自己的PC上安装Web服务器,然后安装PHP和MySQL。 您可以查看以下链接以获取PHP服务器和MYSQL,以便为PHP运行创建本地envinonment: Web服务器:https://httpd.apache.org/download.cgi 数据库:https://www.mysql.com/downloads/
### PHP解析器安装
在继续之前,确保在计算机上进行适当的环境设置以使用PHP开发Web程序非常重要。
在浏览器的地址栏中键入以下地址。
```shell
http://127.0.0.1/info.php
```
如果这显示一个显示PHP安装相关信息的页面,则表示您已正确安装了PHP和Webserver。
### 在自己的PC上设置PHP
但是,如果您的服务器不支持PHP,您必须: 安装Web服务器 安装PHP 安装数据库,例如MySQ。
### 更多信息
官方PHP网站(PHP.net)有PHP的安装说明:http://php.net/manual/en/install.php 要在单个包中同时获取Web服务器和数据库,请使用以下链接:https://www.mamp.info/en/