php配置

WBOY
Release: 2016-06-23 14:36:51
Original
905 people have browsed it

 

1、 将php- 5.2.1 -Win32.zip 解压缩到c:/php/5.2.1路径下。

2、 将php.ini-recommended文件扩展名改为php.ini.

3、 使extension=php_mssql.dll   extension=php_mysql.dll生效

4、 extension_dir = "C:\php\ 5.2.1 \ext"

5、 在D:\Program Files\Apache2.2\conf下找到文件httpd.conf

6、 将侦听端口改为Listen 8080

7、 添加模块并制定添加路经LoadModule php5_module C:/php/ 5.2.1 /php5apache2_2.dll      PHPIniDir "C:/php/ 5.2.1 ".

8、 添加php创建的文件放置路径DocumentRoot "D:/php" 

9、 设置默认页面DirectoryIndex index.php index.html index.htm

10、添加默认类型    AddType application/x-httpd-php .php

    AddType application/x-httpd-php .htm

    AddType application/x-httpd-php .html

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