Oct 26

所使用的程序版本

httpd-2.2.25-win32-x86-no_ssl

PHP Version 5.2.17

mysql-5.5.25-win32

 

http一路next

php放在d:\php5

mysql开发者模式, 编码选utf8, 防火墙例外,密码,允许远程root登陆,把mysql加入path

apache要设定的几项 (httpd.conf)

网站根目录,这两项要改就一起改

DocumentRoot "d:/www"
<Directory "d:/www">
 

外网访问

<Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all # 默认Deny 需要修改成Allow, 否则外网不能访问
</Directory>

解析.php

DirectoryIndex index.html index.php

AddType application/x-httpd-php .php
AddType application/x-httpd-php .html

指定php配置文件目录,否则默认为C:/php

PHPIniDir "D:/php5"

php要设定的几项 php.ini

拓展路径

extension_dir = "d:/php5/ext/"

启用模块

extension=php_mbstring.dll ;字符串....
extension=php_exif.dll ; Must be after mbstring as it depends on it
extension=php_mysql.dll
extension=php_mysqli.dll

extension=php_pdo_mysql.dll

extension=php_pdo.dll