Home >Backend Development >PHP Tutorial >Configuring Apache+PHP5+MySql5_PHP Tutorial under Windows2000ADV

Configuring Apache+PHP5+MySql5_PHP Tutorial under Windows2000ADV

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-13 17:33:47829browse

以前为了图方便,是用套件包.版本很久了,是apache(Unix平台最流行的WEB服务器平台)1.X.MySQL(和PHP搭配之最佳组合)4.X,php(做为现在的主流开发语言)4.X的.现在已经过时很久了..而且漏洞一大堆,幸好我只是在本地使用...不过为了追潮流,就鸟枪换炮咯..

所用软件版本:

MySQL(和PHP搭配之最佳组合)-5.0.4-beta-win32

apache(Unix平台最流行的WEB服务器平台)_2.0.54-win32-x86-no_ssl

php(做为现在的主流开发语言)-5.0.3-Win32

php(做为现在的主流开发语言)MyAdmin-2.6.2-rc1

ZendOptimizerWindows-i386

以上软件可以到各大下载网站下载.或者直接登陆官方网站下载.而且配置教程也是一大堆,我就不做详细的技术文献了..

php(做为现在的主流开发语言)的官方网站 http://www.php(做为现在的主流开发语言).net/?有中文语言服务,你甚至可以找到最新的中文php(做为现在的主流开发语言)手册
php(做为现在的主流开发语言)的下载页面 http://www.php(做为现在的主流开发语言).net/downloads.php(做为现在的主流开发语言)

apache(Unix平台最流行的WEB服务器平台)的官方网站 http://www.apache(Unix平台最流行的WEB服务器平台).org/
apache(Unix平台最流行的WEB服务器平台)的下载页面 http://archive.apache(Unix平台最流行的WEB服务器平台).org/dist/httpd/


MySQL(和PHP搭配之最佳组合)作为一款数据库软件最大的特点就是免费,当然他也非常高效,有和php(做为现在的主流开发语言)相似的特性
MySQL(和PHP搭配之最佳组合)官方网站 http://www.MySQL(和PHP搭配之最佳组合).com/

php(做为现在的主流开发语言)MyAdmin for Windows V2.6.2

我是到天空软件站下载的:http://www.skycn.com/soft/10687.html

ZendOptimizerWindows,这个是用来解析某些源码和优化的.我是到天空软件站下载的

Zend Optimizer V2.5.7 For Windows:

也是到天空软件站下载的:http://www.skycn.com/soft/20133.html

安装好所有程序后.开始着手配置了.:

首先配置apache(Unix平台最流行的WEB服务器平台)2
打开apache(Unix平台最流行的WEB服务器平台)2conf文件夹下面的httpd.conf配置文件
到最后 加入
LoadFile c:/php(做为现在的主流开发语言)/php(做为现在的主流开发语言)5ts.dll    //加载php(做为现在的主流开发语言)5ts.dll,这无论是apache(Unix平台最流行的WEB服务器平台)还是iis(微软的WEB服务器平台)都必须以来的链接库
LoadModule php(做为现在的主流开发语言)5_module c:/php(做为现在的主流开发语言)/php(做为现在的主流开发语言)5apache(Unix平台最流行的WEB服务器平台)2.dll     //加载php(做为现在的主流开发语言)5的apache(Unix平台最流行的WEB服务器平台)模块
AddType application/x-httpd-php(做为现在的主流开发语言) .php(做为现在的主流开发语言)
www.acnow.net
查找DocumentRoot,后面是"C:/apache(Unix平台最流行的WEB服务器平台)2/htdocs"可能因安装路径不同而不同,
是web网页的目录所在地,可改成自己需要的地方,注意,是斜杠"/"不是反斜杠"",毕竟这是linux下面移植过来的
查找DirectoryIndex,后面应该是index.html index.html.var
这是默认的首页名称,要再添加index.php(做为现在的主流开发语言) index.htm

Then configure php(as the current mainstream development language)
Place C:php(as the current mainstream development language)php(as the current mainstream development language).ini-recommended was renamed to php(as the current mainstream development language).iniphp
(as the current mainstream development language) The current mainstream development language) .ini: For security and efficiency reasons, it is recommended to use php (as the current mainstream development language) .ini-recommended as php (as the current mainstream development language) The current mainstream development language) .ini blueprint, instead of using php (as the current mainstream development language) .ini-dist. At the same time, the search path of php(as the current mainstream development language).ini is no longer limited to the %SystemRoot% of the php(as the current mainstream development language)4 era. , php(as the current mainstream development language)5 Follow the following path to find php(as the current mainstream development language).ini:

* php

(As the current mainstream development language)IniDir (apache(The most popular WEB server platform on Unix platform) 2 module only) * Registry key: HKEY_LOCAL_MACHINESOFTWAREphp
(As the current mainstream development language) IniFilePath * Environment variable: %php
(As the current mainstream development language) RC% * php
(As the current mainstream development language) Current mainstream development languages)5 directories (for CLI), or web server directories (for SAPI modules)
* Windows directories (C:windows or C:winnt)
these five In the solution, it is best to use php
(as the current mainstream development language)IniDir when combined with apache(the most popular WEB server platform on the Unix platform)2, followed by %php(as the current mainstream development language)RC% environment variable. In addition, remember to give the server php(as the current mainstream development language).ini read permission on NTFS. Open php
(as the current mainstream development language).ini, search for extension_dir and change it to "C:/php(as the current mainstream development language)/ ext", look at that folder and you will know what it is Look for Windows Extensions, there is a row below; extension=php
(as the current mainstream development language)_***. dll has begun to remove the semicolon. Removing it is to support the component
and at least add extension=php
(as the current mainstream development language)
_gd2.dll extension=php(As the current mainstream development language)
_mbstring.dll extension=php(As the current mainstream development language)
_MySQL(The best combination with PHP ).dllRemove the semicolon in front ofphp
(as the current mainstream development language)
MySQL is not supported by default starting from 5(The best combination with PHP ), so we need to add support for it, in addition to extension=php(as the current mainstream development language)_MySQL(the best combination with PHP). Remove the semicolons from dll There is a libMySQL (the best combination with PHP)
.dll file in the php (as the current mainstream development language) directory. Copy it to the system32 folder of the system, copy php(as the current mainstream development language).ini to the windows directory. There will be online tutorials in the future.. There is no way , lazy...

php

(as the current mainstream development language)

.ini I put it under c:winntsystem32.php(as the current mainstream development language) Language) can be parsed. And MySQL (the best combination with PHP) can also run normally. But I originally turned on iis (Microsoft's WEB server platform) already occupied port 80, so when I installed apache (the most popular WEB server platform on the Unix platform) , I chose port 8080. And instead of installing apache (the most popular WEB server platform on the Unix platform) Popular WEB server platform) is loaded into a service..

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/508539.htmlTechArticleIn the past, for convenience, we used suite packages. The version has been around for a long time, and it is apache (the most popular WEB server on Unix platform) Platform) 1.X.MySQL (the best combination with PHP) 4.X,php (as the current mainstream development...

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