Home  >  Article  >  php教程  >  Windows Apache PHP MySQL 搭建

Windows Apache PHP MySQL 搭建

WBOY
WBOYOriginal
2016-06-06 19:55:231009browse

安装php,有两种方式,这里采用其中一种,成为apache的组件 下载php: php-5.1.2-win32 和 php-5.1.2-installer.exe我就下了这两个~~~ 然后将php里面的dll文件拷贝到windows/system32里面,将php.ini-dist 改位php-ini拷贝到windows目录 下载apache 安装

安装php,有两种方式,这里采用其中一种,成为apache的组件

下载php: php-5.1.2-win32 和 php-5.1.2-installer.exe我就下了这两个~~~

然后将php里面的dll文件拷贝到windows/system32里面,将php.ini-dist 改位php-ini拷贝到windows目录

下载apache 安装到一个文件夹

然后修改安装后文件夹/apache2/conf

里面的配置文件httpd.conf

修改

Listen 127.0.0.1:80  // 其中127.0.0.1是你的ip地址

添加

LoadModule php5_module c:/php/php5apache2.dll
AddType application/x-httpd-php .phtml .php
MySQL的安装下回再记录
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