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

PHP环境搭建要点

WBOY
Release: 2016-06-23 14:28:46
Original
971 people have browsed it

工具下载:

  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、

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template