PHP的版本更新挺快的,较低版本的网站程序在高版本的PHP上面不能很好地被兼容,所以旧的xampp偶尔也会派上大用场!我整理了一下,发现支持PHP5.2的最后一版xampp是xampp-win32-1.7.1。下载地址是:http://sourceforge.net/projects/xampp/files/XAMPP%20Windows/1.7.1/
按照你的系统要求挑一个吧,xampp-win32-1.7.1就挺好。我从最高版本降级到1.7.1之后发现网站运行速度快了不少,果然VC6编译出来的东西不是.net架构能比的。
xampp-win32-1.7.1的说明:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
###### ApacheFriends XAMPP (Basispaket) version 1.7.1 ######
+ Apache 2.2.11
+ MySQL 5.1.33 (Community Server)
+ PHP 5.2.9 + PEAR (Support for PHP 4 has been discontinued)
+ XAMPP Control Version 2.5 from www.nat32.com
+ XAMPP CLI Bundle 1.3 from Carsten Wiedmann
+ XAMPP Security 1.0
+ SQLite 2.8.15
+ OpenSSL 0.9.8i
+ phpMyAdmin 3.1.3.1
+ ADOdb 5.06a
+ Mercury Mail Transport System v4.62
+ FileZilla FTP Server 0.9.31
+ Webalizer 2.01-10
+ Zend Optimizer 3.3.0
+ eAccelerator 0.9.5.3 f黵 PHP 5.2.9 (but not activated in the php.ini)
---------------------------------------------------------------
* System Requirements:
+ 64 MB RAM (RECOMMENDED)
+ 250 MB free fixed disk
+ Windows NT, 2000, 2003, XP (RECOMMENDED), VISTA
+ Only 32 Bit (NOT for 64 bit systems)
---------------------------------------------------------------
* QUICK INSTALLATION:
[NOTE: Unpack the package to your USB stick or a partition of your choice.
There it must be on the highest level like E:\ or W:\. It will
build E:\xampp or W:\xampp or something like this. Please do not use the "setup_xampp.bat" for an USB stick installation!]
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). Or use the fine XAMPP Control Panel with double-click on "xampp-control.exe"!
Step 3: Start your browser and typehttp://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, *.php5, *.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\htdocs\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.
---------------------------------------------------------------
* PASSWORDS:
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
---------------------------------------------------------------
* ONLY FOR NT SYSTEMS! (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!
----------------------------------------------------------------
A matter of security (A MUST READ!)
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:
The root password for MySQL and phpMyAdmin, and also a XAMPP directory protection can being established here.
* NOTE: Some example sites can only access by the local systems, means over localhost.
---------------------------------------------------------------
* MYSQL NOTES:
(1) The MySQL server can be started by double-clicking (executing) mysql_start.bat. This file can be found in the same folder you installed XAMPP in, most likely this will be C:\xampp\.
The exact path to this file is X:\xampp\mysql_start.bat, where "X" indicates the letter of the drive you unpacked XAMPP into. This batch file starts the MySQL server in console mode. The first intialization might take a few minutes.
Do not close the DOS window or you'll crash the server! To stop the server, please use mysql_stop.bat, which is located in the same directory. Or use the fine XAMPP Control Panel with double-click on "xampp-control.exe" for all these things!
(2) To use MySQL as Service for NT / 2000 / XP, simply copy the "my.ini" file to "C:\my.ini". Please note that this file has to be placed in C:\ (root), other locations are not permitted. Then execute the "mysql_installservice.bat" in the mysql folder.
(3) MySQL starts with standard values for the user id and the password. The preset user id is "root", the password is "" (= no password). To access MySQL via PHP with the preset values, you'll have to use the following syntax:
mysql_connect("localhost", "root", "");
If you want to set a password for MySQL access, please use of MySQL Admin.
To set the passwort "secret" for the user "root", type the following:
C:\xampp\mysql\bin\mysqladmin.exe -u root -p secret
After changing the password you'll have to reconfigure phpMyAdmin to use the new password, otherwise it won't be able to access the databases. To do that, open the file config.inc.php in \xampp\phpmyadmin\ and edit the following lines:
$cfg['Servers'][$i]['user'] = 'root'; // MySQL User
$cfg['Servers'][$i]['auth_type'] = 'http'; // HTTP authentification
So first the 'root' password is queried by the MySQL server, before phpMyAdmin may access.
---------------------------------------------------------------
Have a lot of fun! | Viel Spa? | Bonne Chance!
|
注意上面的一句Support for PHP 4 has been discontinued