PHP+Apache+Mysql 配置流程【配置之后才能正常使用】
你需要的软件:
1、服务器:apache_2.2.4-win32-x86-no_ssl.msi
http://pan.baidu.com/share/link?shareid=3837123167&uk=1947764420
2、模块【解压即可】:php-5.3.5-Win32-VC6-x86.zip
http://pan.baidu.com/share/link?shareid=3839517926&uk=1947764420
3、IDE:ZendStudioForEclipse-6.1.2.zip
http://pan.baidu.com/share/link?shareid=3829887035&uk=1947764420
4、数据库:mysql-5.1.51-win32.msi
http://pan.baidu.com/share/link?shareid=3842636766&uk=1947764420
5、Navicat:navicat8_mysql_cs.zip
http://pan.baidu.com/share/link?shareid=3842636766&uk=1947764420
6、jdk:jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008.exe
http://pan.baidu.com/share/link?shareid=3847223604&uk=1947764420
安装顺序无要求,傻瓜式安装
安装之后配置:
1、jdk配置环境变量
java_home:C:\Program Files\Java\jdk1.6.0_10
path:%java_home%/bin;D:\Program Files\Apache Software Foundation\Apache2.2\bin
classpath:.;%java_home%/lib
2、服务器配置环境变量【上面已写
D:\Program Files\Apache Software Foundation\Apache2.2\bin】
3、配置虚拟目录
打开httpd.conf
把下面的粘贴进去,路径要改成你自己的
#配置虚拟目录
<IfModule dir_module>
DirectoryIndex index.html index.htm index.php
Alias /exchange "C:/Documents and Settings/fuzhengwei/Zend/workspaces/DefaultWorkspace/exchange"
<Directory "C:/Documents and Settings/fuzhengwei/Zend/workspaces/DefaultWorkspace/exchange">
Order allow,deny
Allow from all
</Directory>
</IfModule>
4、配置php处理模块【这个模块就是上面需要软件的2】
#让apache载入php处理模块
LoadModule php5_module "D:/Program Files/Apache Software Foundation/php-5.3.5/php5apache2_2.dll"
PHPIniDir "D:/Program Files/Apache Software Foundation/php-5.3.5"
AddType application/x-httpd-php .php .phtml
5、打开php模块把里面的文件php.ini.XXX 把后面的去掉,只保留php.ini
6、打开php.ini
把下面这两个前面的分号去掉,打开数据库操作
extension=php_mysql.dll
extension=php_mysqli.dll
之后在把下面这个extension_dir路径修改为你自己的路径【解压后的路径】
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
extension_dir = "D:/Program Files/Apache Software Foundation/php-5.3.5/ext"
不出以外,你现在就可以正常开启apache服务器,访问你做的项目了