windows下配置php+apache+mysql
来源:互联网 发布:华工网络教育平台v3 编辑:程序博客网 时间:2024/05/16 10:17
Install apache_1.3.34-win32-x86-no_src
When installing it, choose CUSTOM, change the path to C:/
This will install it to C:/Apache
Open php-4.4.1-Win32.zip in WinZip
Extract this to C:/
After extracting it, rename the directory C:/php-4.4.1-Win32 to C:/php
Extract mysql-4.0.17-win.zip to a temp folder
Run Setup.exe
This will install mySQL to C:/mysql
PHP
---
move all files from c:/php/dlls to c:/php
move all files from c:/php/sapi to c:/php
copy php-ini-recomended to c:/WINNT/php.ini
edit C:/WINNT/php.ini file:
Around line 569:
uncomment ;extension=php_gd2.dll
Around line 436:
edit doc_root =
for example, doc_root = c:/Apache/htdocs
Around line 443:
edit extension_dir =
for example extension_dir = "c:/php/extensions"
Around line 285:
edit error_reporting =
change to E_ALL | E_PARSE
mySQL
-----
Copy the configuration file:
copy c:/mysql/my-small.cnf to c:/WINNT/my.cnf
Install the service:
cd c:/mysql/bin
mysqld --install
net start mysql
do a test if the client works:
mysql (this should start the client)
exit the client:
set the root password:
mysqladmin -u root password NEWPASSWORD
Apache
------
edit /apache/conf/httpd.conf
Add this to the LOADMODULE section, around line 193
LoadModule php4_module "C:/php/php4apache.dll"
Add this to the ADDMODULE section, around line 241
AddModule mod_php4.c
Change this around line 386
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>
to this
<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>
Find this around line 728
AddType application/x-tar .tgz
Add this under it:
AddType application/x-httpd-php .php
Save this file
net stop apache
net start apache (there should be no errors)
Test Apache
-----------
make a new file, phpinfo.php, and save it in your htdocs directory
<?php
phpinfo();
?>
Access this file with your web browser:
http://localhost/phpinfo.php
Did it work?
Setup phpMyAdmin
----------------
Using WinZip, extract the phpMyAdmin file to c:/apache/htdocs
It will make a folder there, phpMyAdminXXXXXX - rename this folder to pma
edit config.default.php
around like 73, put in your root password, and save the file
access phpmyadmin here:
http://localhost/pma/
- windows下配置php+apache+mysql
- windows下配置Apache+php+mysql學習筆記
- windows下apache + php + mysql 安装配置
- Windows下Apache、PHP、MySQL的配置
- Windows XP下Apache+php+MySQL配置
- Windows 下配置 apache + php + MySQL 5
- windows下初级配置apache+mysql+php
- windows下配置apache php mysql
- windows下配置apache+mysql+php
- Windows 环境下配置Apache 、PHP、Mysql
- Windows下Apache+PHP+MySQL环境配置
- Windows下配置Apache+PHP+MySQL
- windows下 Apache+MySQL+PHP环境配置
- windows下 简单配置PHP + apache +mysql
- windows下安装配置apache、mysql、php
- Apache+PHP+Mysql(Windows下配置)
- Windows 7 下PHP环境配置:PHP+Apache+Mysql
- windows php apache mysql 配置
- 启动控制面板大全
- 等待一個程序執行完畢
- 提升進程令牌殺死進程
- VISTA开启半透明效果
- zt ASP学习史上最强的数据分页方法
- windows下配置php+apache+mysql
- Ajax相关资源收集与整理...
- [书摘]Issues about RTTI (Run Time Type Identification)
- [企业管理]国家实验室再遭“人才贫血”困境 [ZT]——青润分析
- 基本控件
- P2P 之 UDP穿透NAT的原理与实现
- 英语学习每天一点
- 窗口过程,窗口过程函数
- windows xp自动更新失败的原因!