Home  >  Article  >  Backend Development  >  PHP环境搭建要点

PHP环境搭建要点

WBOY
WBOYOriginal
2016-06-23 14:28:46943browse

工具下载:

  Apache:http://httpd.apache.org/download.cgi

  PHP:http://windows.php.net/download/

  MYSQL:http://dev.mysql.com/downloads/

PHP环境搭建要点主要在于配置文件的修改:

  1、Apache端口修改:

    http.conf文件:46行->Listen 80,172行->ServerName localhost:80。

  2、Apache服务器执行WEB主程序的目录:

    http.conf文件:DocumentRoot "path",

  3、Apache支持PHP:

    http.conf文件:添加

    LoadModule php5_module "phppath/php5apache2_2.dll"
    PHPIniDir "phppath"
    AddType application/x-httpd-php .php .html .htm

  4、

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP运行环境搭建Next article:PHP日期检查函数