WindowsXP中快速配置Apache+PHP5+Mysql
汗。废话不多说,先罗列出我下载的相关程序的版本:
Mysql-4.1.8-essential-win
Mysql-gui-tools-5.0-r12-win32
php-5.2.5-win32-installer
apache_2.2.4-win32-x86-no_ssl
phpMyAdmin-2.11.5.1-all-languages
navicat8_mysql_cs-v8.0
对这些软件稍作说明:
Mysql选用了比较旧的版本,反正够用就行,本来也就是个学习的过程,相信大家也不会有什么疑义。
因为是菜鸟,Mysql GUI(Mysql可视化工具)还是有必要安一下的,建议初学者也装一下吧,当然,高手别BS。。。
PHP正好看到新版本发布,那就拿来用吧~
Apache也一样,随便挑了一个。
PHPMyAdmin是一个基于web的mysql可视化工具,别小看它哟~一般空间提供商提供的虚拟空间如果支持Mysql的话,其操作界面多数就是它了。所以,学习一个也无妨。
navicat,又是一款Mysql的GUI,第三方做的比较好的GUI,值得一用!
如果有朋友不明白他们具体是派什么用处的,我会在今后的专题中加以补充。
正式开始配置!
1.首先安装Mysql,没什么特别的,一路next,遇到让你Sign up的环节,选择skip Sign-Up就可。之后选择Configure the MySQL Server now,开始配置Mysql,普通的开发用户选择Standard Configuration标准配置即可,一路按照给出的默认值Next,到了让你输入密码的环节,键入你想要的Mysql的root密码再Next(可以理解成管理员密码)。随后Execute,不出意外的话,恭喜你,Mysql就配置完毕了。
2.Mysql GUI Tool安装没有什么特别的,一路Next就可完成,完成后,可以打开它的一个程序MySQL Adsministraotr,如果是本机数据库的话,在Server Host中填入localhost,Username 为root,密码就是刚才安装Mysql时所输入的管理员密码。如果可以顺利进入,那么再次证明刚才Mysql的配置没有问题,也可以确定GUI也安装到位了。
3.Apache的安装有一点要说明,一开始全部Next,到了让你配置Server Information时,上面三项可以任意填,只要符合域名、主机名以及电子邮件的格式即可,可以参照它给出的书写方法。要提醒的是, Apache HTTP的端口设置,它默认是使用80端口作为HTTP的服务端口,这原本没有什么奇怪,只是如果你在同一台机器上之前安装过IIS的话,那么就会有问题了,IIS中HTTP服务的端口也是80,如果在这里你让Apache的HTTP端口还是用80 的话,那么,它会因为端口冲突而无法启动Apache服务。那么,就只有两种解决方法,要么停止或者修改IIS的HTTP服务端口,要么修改Apache的HTTP服务端口。在这里,我只能先假设大家没有安装过IIS,那么就让Apache来占用80端口。好了,接下来全部Next。Apache的安装就算结束了。以后的帖子中,我会叙述如何修改IIS以及Apache的端口。
4.最后PHP的安装,一开始按照惯例Next,Web Server Setup时选择Apache 2.2.x Module,因为我们刚才安装的Apache就是这个。接下去选择Apache的配置文件夹路经,就是在之前 Apache安装路径中Apache2.2\conf目录。之后选择要安装的组件,注意,因为将来要连接Mysql,所以要在Extensions下选择MySQL组建,这是关键哦!下一步,安装宣告完毕!接下去,将先前你PHP安装目录的libmysql.dll与安装目录下的ext目录里的php_mysql.dll一同复制到windows\system32目录下,然后,重起一下Apache服务,或者干脆重新启动一下机器,到这里,真个安装配置工作就算告一段落了。
赶快,我们来测试一下吧。在浏览器中键入localhost,看是不是出现了It works!如果是,再次恭喜你,Apache的服务没有问题了。随后我们来到Apache安装目录中的htdocs目录下,创建一个test.php的文件,其中的内容为
echo phpinfo();
?>
再次进入浏览器,在地址栏中输入localhost/test.php,应该会看到PHP的版本信息及其其它一些信息,这样的话,说明PHP的配置工作也很成功了!
最后测试一下与Mysql数据库连接情况,新建test2.php文件中,在其中加入
$link=mysql_connect("localhost","root","之前的管理员密码 ");
if(!$link) echo "没有连接成功!";
else echo "连接成功!";
mysql_close();
?>
回到浏览器,键入localhost/test2.php,一定是连接成功吧!
好啦~至此,Apache+PHP5+Mysql的安装、配置、测试工作全部完成了~是不是觉得很兴奋~

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Hongguo Short Play is not only a platform for watching short plays, but also a treasure trove of rich content, including novels and other exciting content. This is undoubtedly a huge surprise for many users who love reading. However, many users still don’t know how to download and watch these novels in Hongguo Short Play. In the following, the editor of this website will provide you with detailed downloading steps. I hope it can help everyone in need. Partners. How to download and watch the Hongguo short play? The answer: [Hongguo short play] - [Audio book] - [Article] - [Download]. Specific steps: 1. First open the Hongguo Short Drama software, enter the homepage and click the [Listen to Books] button at the top of the page; 2. Then on the novel page we can see a lot of article content, here

When you log in to someone else's steam account on your computer, and that other person's account happens to have wallpaper software, steam will automatically download the wallpapers subscribed to the other person's account after switching back to your own account. Users can solve this problem by turning off steam cloud synchronization. What to do if wallpaperengine downloads other people's wallpapers after logging into another account 1. Log in to your own steam account, find cloud synchronization in settings, and turn off steam cloud synchronization. 2. Log in to someone else's Steam account you logged in before, open the Wallpaper Creative Workshop, find the subscription content, and then cancel all subscriptions. (In case you cannot find the wallpaper in the future, you can collect it first and then cancel the subscription) 3. Switch back to your own steam

Recently, many users have been asking the editor, how to download links starting with 115://? If you want to download links starting with 115://, you need to use the 115 browser. After you download the 115 browser, let's take a look at the download tutorial compiled by the editor below. Introduction to how to download links starting with 115:// 1. Log in to 115.com, download and install the 115 browser. 2. Enter: chrome://extensions/ in the 115 browser address bar, enter the extension center, search for Tampermonkey, and install the corresponding plug-in. 3. Enter in the address bar of 115 browser: Grease Monkey Script: https://greasyfork.org/en/

The superpeople game can be downloaded through the steam client. The size of this game is about 28G. It usually takes one and a half hours to download and install. Here is a specific download and installation tutorial for you! New method to apply for global closed testing 1) Search for "SUPERPEOPLE" in the Steam store (steam client download) 2) Click "Request access to SUPERPEOPLE closed testing" at the bottom of the "SUPERPEOPLE" store page 3) After clicking the request access button, The "SUPERPEOPLECBT" game can be confirmed in the Steam library 4) Click the install button in "SUPERPEOPLECBT" and download

Many users need to download files when using Quark Network Disk, but we want to save them locally, so how to set this up? Let this site introduce to users in detail how to save files downloaded from Quark Network Disk back to the local computer. How to save files downloaded from Quark network disk back to your local computer 1. Open Quark, log in to your account, and click the list icon. 2. After clicking the icon, select the network disk. 3. After entering Quark Network Disk, click My Files. 4. After entering My Files, select the file you want to download and click the three-dot icon. 5. Check the file you want to download and click Download.

foobar2000 is a software that can listen to music resources at any time. It brings you all kinds of music with lossless sound quality. The enhanced version of the music player allows you to get a more comprehensive and comfortable music experience. Its design concept is to play the advanced audio on the computer The device is transplanted to mobile phones to provide a more convenient and efficient music playback experience. The interface design is simple, clear and easy to use. It adopts a minimalist design style without too many decorations and cumbersome operations to get started quickly. It also supports a variety of skins and Theme, personalize settings according to your own preferences, and create an exclusive music player that supports the playback of multiple audio formats. It also supports the audio gain function to adjust the volume according to your own hearing conditions to avoid hearing damage caused by excessive volume. Next, let me help you

As a convenient and practical network disk tool, Quark can help users easily obtain their favorite resources. What if you want to download a file locally? Let the editor tell you now, let’s learn it together! How to download Quark Network Disk to local sharing method 1. First open the Quark software, enter the homepage, and click the [Cloud Icon] on the lower right; 2. Then on the Quark Network Disk page, we click the [Document] function; 3. Then go to the document page, select the file you want to download, and click the [three-dot icon]; 4. After the final click, we click [Download] in the pop-up dialog box;

UC Browser is a browser that everyone is using. It allows everyone to get some unique online experience. It is super convenient and can search for a variety of resources for you, some of which you cannot enjoy on other platforms. Everyone can view his video works here. The content is very exciting. Everyone is immersed in it and can't stop at all. They also want to download the video locally so that they can watch it at any time. Whenever you want to watch it, you can just When I watched it, it was very convenient. I have sorted out the specific method of downloading the video. I hope it can help you. How to download videos to the local area in UC Browser: 1. Open UC Browser, click on the menu bar, and select Download/Video; 2. Click on the cached video; 3. Click on the video selection
