Establish a web server [php-mysql-apache] on Windows XP
2005-08-30 21:09
776 查看
Download software from web sites (www.apache.org, www.mysql.com, www.php.net), make sure you downloaded the windows version and unpacking all software in separate folders. install apache 2.0.54.
install apache
double click the downloaded file and begin to install. Make sure to fill in the right information and select the proper path for installation. Also you must unblocking apache in order to provide web service. I use the following information.
domain name: wamp.
server name: wamp.
email: smart-li@163.net
path: C:/. (APACHE will install under the C:/Apache2)
you can visit http://localhost to see whether you have apache properly installed. The default web pages are in the folder (C:/Apache2/htdocs), maybe you need to change to your newly designed web sites’ folder such as (D:/www/mysite) by editing httpd.conf (C:/Apache2/conf/httpd.conf). Opening the file using Wordpad or Notepad. Seaching DocumentRoot “C:/Apache2/htdocs” and change to DocumentRoot “D:/www/mysite”; Save the file and restart apache by double clicking apache running icon.
install PHP 5.0.4
create a folder named php under C: and copy all unpacked files to this folder. Editing httpd.conf (C:/Apache2/conf/httpd.conf) using the file using Wordpad or Notepad.
Searching DirectoryIndex index.html index.html.var and add index.htm index.php at the end of the line.
Searching AddType application/x-gzip and add a new line below.
AddType application/ x-httpd-php .php
Seaching LoadModule ssl_module and add a new line below.
LoadModule php5_module “c:/php/php5apache2.dll”
Save the file and restart apache by double clicking apache running icon.
create a simple php file in the folder (D:/www/mysite) wamptest.php to test whether php successfully installed by navigating (http://localhost/wamptest.php).
<?php
echo phpinfo();
?>
install Mysql 4.1.11
select custom install and change the path to C:/mysql
skip the account signing up at mysql.com
select configure now
select detailed configuration
in select server type. select “Developer Machine”, click Next.
in select the database engine. Select multifunctional database. Click next.
in select the drive for the InnoDB datafiles, use the default settings. Click next.
in select number of concurrent connections to the server. Select decision support (DSS)/OLAP. CLICK NEXT.
In select the networking options, enable TCP/IP Networking and the port number is 3306.
In select the default character set. Choose standard character set. Click next.
In setting windows option. Enabling lauch the Mysql Server automatically. Click next.
In setting the security options. typing your mysql root password. Click next.
In ready to execute, click Execute to begin configuration.
click finish to end the installation.
from start menu,run MySql>Mysql command line client. Typing the root password you set during Mysql configuration. You can see Mysql> prompt.
Mysql> SHOW DATABASES;
You can see two databases mysql and test available. Which is save in the folder C:/mysql/data. In order to make Mysql work with PHP, do the following.
opening c:/windows/php.ini and searching extension=php_mysql.dll, delete “;” in the front of the line.
copy c:/php/libmysql.dll to c:/WINDOWS
restart apache.
editing D:/www/mysite/wamptest.php to the following.
<?php
mysql_connect(‘localhost’,’root’,’root password’) or die(“fail to connect to host”);
echo “connect to host successfully!<br>”;
echo phpinfo();
?>
navigating http://localhost/wamptest.php to know whether Mysql works well or not.
相关文章推荐
- Install and config Apache, PHP, MySql on windows XP
- WampServer, the web development platform on Windows - Apache, MySQL, PHP
- Config PHP and MySQL on Windows XP platform
- Windows XP+Apache 2.2.4+PHP 5.2.0+MySQL 5.0.27+Zend Optimizer 3.2.0环境配置方法(依此参考文献成功安装Apache,Php,mysql)
- XAMPP: Apache + PHP + MySQL on Windows
- Windows 2003下Apache_2.2 + php + MySQL + SmartFoxServer的配置
- Ubuntu Server 14.04 安装+安全Web服务器(linux+apache+mysql+php)搭建流程(更新)
- Apache + PHP + MySql windows xp 安装设置
- Windows Apache MySQL PHP HMailserver Roundcubemail邮件系统
- php + apache + mysql on XP
- php和apache和mysql配置 Windows XP + Apache 2.2.4 + PHP 5.2.3 + MySQL 5.0.27 + Zend Optimizer 3.3.0环境配置说明(推荐)
- Windows7/8搭建web(Apache+PHP+MySQL)开发环境
- 在Windows 2003环境下配置 PHP 5.2.5 + Apache HTTP Server 2.2.8 + MySQL 6.0
- [Azure] 创建支持Apache,PHP以及MySQL的CentOS Web Virtual Machine Server
- windows 2000/XP/2003下安裝APACHE2.0.53、PHP5.0.3、MYSQL4.1.10a、PHPMYADMIN2..6.1
- Windows环境下用Apache+PHP+MySql配置web服务器
- Windows XP+Apache 2.2.4+PHP 5.3.8+MySQL 5.5.17环境配置方法
- Windows XP + Apache 2.2.4 + PHP 5.2.3 + MySQL 5.0.27 + Zend Optimizer 3.3.0 Windows XP + Apache + PH
- 自己动手打造WEB服务器 Windows + Apache + PHP + MySQL
- Install 64bit versions of Apache, PHP and MySQL on Windows 64bit