许多人通过他们自己的经验认识到安装Apache服务器是件不容易的事儿.如果您想添加 MySQL、PHP 和Perl,那就更难了.XAMPP是一个易于安装且包含MySQL、PHP和Perl的Apache发行版.XAMPP的确非常容易安装和使用:只需下载,解压缩,启动即可.到目前为止,XAMPP共支持Windows 、Linux、Mac OS X、Solaris四种版本.
###### ApacheFriends XAMPP (basic package) version 1.6.7 包含以下组件######
Apache 2.2.9
MySQL 5.0.51b
PHP 5.2.6 + PHP 4.4.9 + PEAR
PHP-Switch win32 1.0 (请使用"php-switch.bat")
XAMPP Control Version 2.5 来自 www.nat32.com
XAMPP Security 1.0
SQLite 2.8.15
OpenSSL 0.9.8h
phpMyAdmin 2.11.7
ADOdb 4.98
Mercury Mail Transport System v4.52
FileZilla FTP Server 0.9.25
Webalizer 2.01-10
Zend Optimizer 3.3.0
eAccelerator 0.9.5.3 for PHP 5.2.6 (comment out in the php.ini)
系统要求:
+ 64 MB 内存 (推荐)
+ 200 MB 空闲磁盘
+ Windows 98, ME
+ Windows NT, 2000, XP (推荐)
---------------------------------------------------------------
* 快速安装:
[注意: 你可以选择解压安装包到U盘或者一个磁盘分区,必须是根目录,比如:E:\ or W:\. 解包后将建立E:\xampp or W:\xampp 类似的目录。 不要在U盘上运行"setup_xampp.bat" 安装!]
Step 1: Unpack the package into a directory of your choice. Please start the
"setup_xampp.bat" and beginning the installation. Note: XAMPP makes no entries in the windows registry and no settings for the system variables.
Step 2: If installation ends successfully, start the Apache 2 with
"apache_start".bat", MySQL with "mysql_start".bat". Stop the MySQL Server with "mysql_stop.bat". For shutdown the Apache HTTPD, only close the Apache Command (CMD).
Step 3: Start your browser and type http://127.0.0.1 or http://localhost in the location bar. You should see our pre-made
start page with certain examples and test screens.
Step 4: PHP (with mod_php, as *.php, *.php3, *.php4, *.phtml), Perl by default with *.cgi, SSI with *.shtml are all located in => C:\xampp\htdocs\.
Examples:
- C:\xampp\htdocs\test.php => http://localhost/test.php
- C:\xampp\myhome\test.php => http://localhost/myhome/test.php
Step 5: XAMPP UNINSTALL? Simply remove the "xampp" Directory.
But before please shutdown the apache and mysql.
---------------------------------------------------------------
* 默认账号密码:
1) MySQL:
User: root
Password:
(means no password!)
2) FileZilla FTP:
User: newuser
Password: wampp
User: anonymous
Password: some@mail.net
3) Mercury:
Postmaster: postmaster (postmaster@localhost)
Administrator: Admin (admin@localhost)
TestUser: newuser
Password: wampp
4) WEBDAV:
User: wampp
Password: xampp
---------------------------------------------------------------
* 仅仅适用于 NT 系统! (NT4 | Windows 2000 | Windows XP):
- \xampp\apache\apache_installservice.bat
===> Install Apache 2 as service
- \xampp\apache\apache_uninstallservice.bat
===> Uninstall Apache 2 as service
- \xampp\mysql\mysql_installservice.bat
===> Install MySQL as service
- \xampp\mysql\mysql_uninstallservice.bat
===> Uninstall MySQL as service
==> After all un- / installations of services, better restart system!
----------------------------------------------------------------
安全相关 (必读!)
As mentioned before, XAMPP is not meant for production use but only for developers in a development environment. The way XAMPP is configured is to be open as possible and allowing the developer anything he/she wants. For development environments this is great but in a production environment it could be fatal. Here a list of missing security
in XAMPP:
- The MySQL administrator (root) has no password.
- The MySQL daemon is accessible via network.
- phpMyAdmin is accessible via network.
- Examples are accessible via network.
To fix most of the security weaknesses simply call the following URL:
http://localhost/security/
The root password for MySQL and phpMyAdmin, and also a XAMPP directory protection can being established here.