Higgson

站在交叉点上的人。

导航

XAMPP for Windows FAQ中文版

Posted on 2012-08-08 14:32  higgson  阅读(1746)  评论(0编辑  收藏  举报

 

本文是higgson原创,转载注明出处:http://www.cnblogs.com/higgson/

 

本FAQ原帖:http://www.apachefriends.org/zh_cn/faq-xampp-windows.html

 [译者Higgson注:中文翻译下面附有英文原版,以及翻译中遇到的计算机专业词汇,希望提高计算机英语水平的人可以对照着看,当然,水平有限,如果有翻译不当的地方欢迎指教批评。]

1. 一般性问题

* XAMPP 在 Windows XP SP2下无法工作!

当然!但是这里,微软建立了一个新的防火墙。这个防火墙封锁了重要的80端口(http)和443端口(https)并且该服务(再也)不要想启动了。快速的解决方案是:使用工具栏令微软防火墙失效,并且再一次尝试启动XAMPP。当然,大家也可以在安全中心中定义自己的防火墙例外。下面所列的端口是基础功能所必需的:

http 80 (HTTP)
https 443 (SSL)
mysql 3306
以及所有XAMPP中的其他服务:
ftp 21
smtp 25
pop3 110
imap 143
AJP/1.3 8009
http-alt 8080 (Tomcat的默认端口)

 

* 我在哪里可以更改起始页?

进入\xampp\htdocs目录($path-to-xampp\xampp\htdocs)。索引页面(index.html)是在执行http://localhost之后被初始化的真正的起始页面。作为一种选择,这个页面也可以被删除或者被 "index.php" or "index.cgi"(等)所替代。在XAMPP中所有索引(index)页面的层级被命名为:

DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.html.var index.phtml 

注意:在更改之后,你可以通过访问http://localhost/xampp来找到XAMPP的示例。

* 然而,我需要的是mod_perl,Tomcat和Python! 

这个的工具存在于XAMPP的加载项。注意:这些额外的组件仅在XAMPP主要组件下工作,而非“xampplite”。当前,我们有如下加载项:

  • 各个XAMPP(Apache)版本下的带有mod_perl的Perl和DBI驱动。
  • 带有mod_jk而不含Java JSDK的Tomcat。这个加载项要求的JSDK在下载页面或readme中公布。你应该在安装这个加载项之前安装Java JSDK。
  • 带有mod_python的Python。

你可以在XAMPP win32下载页面找到当前所有的加载项,除此之外还有更多的XAMPP加载项在: http://sourceforge.net/projects/xamppaddon.

* 我怎么检查md5校检?

为了检查这个组件是否真的是来自开发者,你需要额外的程序。比如控制台程序“md5sum.exe”:

 http://downloads.activestate.com/contrib/md5sum/Windows/md5sum.exe 

这样就可以了:

     1.将XAMPP组件(如ampp-win32-1.4.16.exe)和MD5文件(如xampp-win32-1.4.16.exe.md5)以及md5sum.exe放在同一个目录下。

     2.在cmd(命令提示符)中输入以下命令:

        md5sum -c xampp-win32-1.4.16.exe.md5

     3.xampp-win32-1.4.16.exe 就可以了。

否则会出问题。顺便说一下,另外一个GUI程序是MD5summer。请访问他们的主页来获得更多信息:  http://www.md5summer.org.

* 有三个“php.ini”,那一个是对的?

\xampp\apache\bin\php.ini是正确的!在\xampp\php目录下的其他的“php.ini”仅仅是在CGI/CLI模式下的PHP。所以通过配置\xampp\apache\bin\php.ini来改变web。

php.ini的变更在“php switch”(PHP版本的变更)之后将会被储存。并且注意:php.ini和httpd.conf的变更,总是需要重启Apache来生效!

 

* 求助!XAMPP中的PV.EXE(KILL.EXE)是一个病毒!

 

不是!"pv.exe"(旧版本中的“kill.exe”)并不是病毒或者木马。它是一个用来中止进程的正常程序,类似于Linux中的kill命令。我们需要它来终止像Apache一样的某些服务。因为在没有服务安装的情况下,“shutdown/stop”指令无效。但是有时我们希望“手动启动”来是Apache清除停止。

问题:一些杀毒软件(如诺顿)会发出警告。因为他的名字(“kill”)或者也许某些病毒/木马捆绑包含了一个终止程序来使得一些讨厌的程序停止。

请参阅:
 Microsoft C 1
 Microsoft C 2

* 系统环境中没有足够的内存

 

这种类型的报错只会在家庭版的系统中出现,比如windows 95/98/ME以及XP家庭版。问题:Windows家庭版最糟糕的内存管理并不允许像“command.com”占用超过160kb的内存。但是我们的服务需要更多的内存。解决方案:在c:\config.sys中加入以下代码:

 

shell=c:\windows\command.com c:\windows /e:2048 /p 

在重启系统之后再尝试启动XAMPP试试。现在又2048kb的内存可供使用了。这些足够用了。

 

* 在我的系统中无法启动apache!!!

 

这个问题可能是由几个原因造成的。

(1)你启动了不止一个HTTP服务(IIS, Sambar, ZEUS等等)。80端口只能被一个服务所占用。所以在启动Apache之前,你必须结束一个http服务。此原因会有如下报错信息:"(OS 10048)... make_sock: could not bind to adress 0.0.0.0:85
no listening sockets available, shutting down"
"(OS 10038)Socket operation on non-socket: make
_sock: for address 0.0.0.0:443, apr_socket_opt_set: (SO_KEEPALIVE)
no listening sockets available, shutting down"

(2) 你是用的是带有过期winsock的windows 95 或者是你的winsock已经损坏。Apache需要至少winsock 2。请在www.microsoft.com上下载最新的winsock。

(3)有时Winsock2的信息被写的不好的互联网程序(蠕虫、病毒)所破坏。Tom Kynch编写的Winsock2 Fix可以解决这个问题(仅限windows95,98,ME)

(4)防火墙限制了Apache的端口。如果这样的话,一些图片和javascript不能加载htpp://. 。又是你需要完全卸载防火墙来解决这个问题。

(5)你使用的是未安装Service Pack 1的Windows XP 专业版。 这种情况下急切推荐安装SP1。

(6)你使用了McAffee的杀毒软件。有时它会造成问题。停用McAffee并测试XAMPP。

(7)你使用了其他软件,比如互联网电话"SKYPE",他也会占用80端口。(感谢Peter!)然而,你可以更改SKYPE的端口:Actions -- > Options --> Connection. 【译者注:中文版是工具——选项——链接】。在这里用其他替代端口来取消勾选“80端口”。重启Skype,就可以了。(感谢Monty!)

Tip:"xampp-portcheck.exe" 展示了XAMPP每个基本端口的状态。状态"Free"是空闲的,这样就可以了。

* Apache让我的CUP负载接近99%

请在 /xampp/Apache/conf/httpd.conf激活这一行:= > # Win32DisableAcceptEx 


更改为: Win32DisableAcceptEx 【译者注:去掉井号(#)。】

较新的Apache版本优化了对Winsock 2 的支持。但是在Winodws家庭版中无法正常运行。httpd.conf中的“Win32DisableAcceptEx” 语句使这个支持失效了。有时,某些Windows NT也会出现问题。我们尚未查明原因。

* 图片和样式表不显示!

 

某些应用(phpEclipse,phpBB等)在显示rpicture的大文件时会出现问题。通过修改/xampp/Apache/conf/httpd.conf中的这些行代码,此问题可以解决:


# EnableSendfile offstage 
# EnableMMAP offstage
请移除#来激活代码: 
EnableSendfile offstage 
EnableMMAP offstage 
重启Apache

有时是反过来的,把
EnableSendfile offstage 
EnableMMAP offstage 
更改成:
# EnableSendfile offstage 
# EnableMMAP offstage 

试一下吧!感谢论坛和Kris提供的解决方案!

 

这个问题通常是由于程序“NetLimiter”调节带宽造成的。请查看我们论坛的这个帖子
 http://www.apachefriends.org/f/viewtopic.php?t=6195&highlight=netlimiter
以获得更多的信息。

* 我想将MySQL服务器作为一个服务来安装!

我想将MySQL服务器作为一个服务来安装!

仅在NT,windows 2000和Windows XP下可行。

(1)服务安装:/xampp/mysql目录下双击"mysql_installservice.bat"。

(2)服务卸载:/xampp/mysql目录下双击"mysql_uninstallservice.bat"。搞定。

* 我怎么样可以在MySQL中设置一个“root”密码?(方法1)

 

在\xampp\mysql\bin目录里进入控制台:

mysqladmin -u root password secret
好了,用你的密码来替代“secret”。然后更新PHPMyAdmin的密码。打开\xampp\phpmyadmin目录下的“config.inc.php”编辑以下代码:

 

将 ...

$cfg['Servers'][$i]['user']          = 'root';
$cfg['Servers'][$i]['password']      = '';

现在改为...

$cfg['Servers'][$i]['user']          = 'root';
$cfg['Servers'][$i]['password']      = 'secret';
 

 

用mysqladmin设置一个新的'root'密码。

 

* 我怎么样可以在MySQL中设置一个“root”密码?(方法2)

还有另外一个可能来设置root密码。开启PHPMyAdmin,进入http://127.0.0.1/phpmyadmin,打开数据库“mysql”(永远不要删除它!)并使用“user”表格。在这创建一个新用户或者比如,简单的更改“root”的密码。重启MySQL!在这之后,不要忘记在"xampp/phpmyadmin/config.inc.php"中更改PHPMyAdmin的密码。

* 我怎么样可以在MySQL中设置一个“root”密码?(方法3)

这个方案基于来自Basel的Ruedi。他说“ Thanks and Grüssli to Switzerland!”


Tip: 可以通过/xampp/mysql/resetroot.bat来重置密码。在此之后,密码为空“”。 

 

第一步:用cmd运行

C:\ program files \apachefriends\xampp\mysql\bin>mysqld-nt --skip-grant-tables 

第二步:用cmd运行
C:\>C:\ program files\apachefriends\xampp\mysql\bin\mysqladmin -u root flush-privileges password "新密码" 

第三部:停止 MySQL
C:\>C:\ program files\apachefriends\xampp\mysql\bin\mysqladmin -u root -p shutdown
Enter password: ****** (新密码) 

第四部: 编辑 “config.inc.php” 来接入PHPMyAdmin
C:\ program files\apachefriends\xampp\phpmyadmin\config.inc.php
在这搜索 "root"
'$cfg['Servers'][$i]['password'] = '新密码'; // MySQL password 

第五步:重新启动MySQL。

* 我能使用自己的mysql服务器吗?

 

为什么不呢!只需要简单地不启动xampp组件中的mysql。这样你就可以使用自己的mysql服务器了。请注意!占用同一端口的两个服务不能同时打开!如果你设置了root的密码,不要忘记在\xampp\phpmyadmin目录下的 "config.inc.php"修改PHPMyAdmin的。

 

* 每个人都能从外部使用PHPMyAdmin!

 

XAMPP的基础配置中,PHPMyAdmin有一个公共入口。你可以通过“config.inc.php”来关闭这个‘缺口’。打开PHPMyAdmin的配置文件,并对'auth_type'这一行进行如下编辑:

$cfg['Servers'][$i]['auth_type']     = 'config'; 
$cfg['Servers'][$i]['user']          = 'root'; 
$cfg['Servers'][$i]['password']      = 'secret'; 


改成 ...

$cfg['Servers'][$i]['auth_type']     = 'http'; 
$cfg['Servers'][$i]['user']          = 'root'; 
$cfg['Servers'][$i]['password']      = ''; 

现在,在PHPMyAdmin再接入mysql服务器之前需要验证用户名和密码。你可以任意设置'http'的‘cookie’。

 

PHPMyAdmin 登陆,在有cookie基础上

* PHP的IMAP支持在哪里?

默认情况下,XAMPP中PHP的IMAP支持是未激活的。因为在像Windows 98 的家庭版中,有一些未知的初始化错误。运行NT系统的人,可以打开\xampp\apache\bin\php.ini ,通过移除分号来在此激活该php拓展。

 

extension=php_imap.dll 

重新启动Apache!用这个方法可以加载所有XAMPP中未加载的PHP模块。

 

* 我对于对象中一些类的索引有问题!

感谢Jörg指出这个问题!好像是"Zend Optimizer"的激活造成了问题。请打开\xampp\apache\bin\php.ini 并且撤销对[Zend]这一节中所有行的激活。然后重启Apache。

注意:在XAMPP较新版本中,ZEND拓展默认为未激活。


* 其他免费的开源程序(CMS等)不起作用!

Linux和Windows是不同的。所以crypt()函数并不支持windows等操作系统。并且简单的程序会变得比较很陌生:比如在Linux下的PHP函数'var=Text;',但比如对于在win32下PHP的更老版本,你不得不编写为'var="Text";',否则接口通常会不一样。或者平台中更深层的必要程序会丢失。这就是为什么在XAMPP下可靠地程序无法工作。

 

* 我能在“安装”之后删除"install" 目录吗?

不可以,最好不要。所有XAMPP的额外组件(附加项目)和更新都仍然需要这里面存放的脚本


* Frontpage拓展在哪?

 

我们不知道在win32下有Apache的免费拓展。但是有一个“在Unix下可以直接执行的FrontPage服务拓展”:  http://www.rtr.com/fpsupport/

但是在我们论坛里的开发者们通常知了解更多:  http://www.apachefriends.org/f/

 

* 我想将XAMPP组建移动到其他目录!

额。。。如果“安装”目录已经存在了,我会尝试这样:将整个XAMPP组建复制到你选择的新目录下。然后在此再次启动“setup_xampp.bat”来更新所有的配置文件。测试所有的东西!如果所有的服务真的仍在这里工作,那就没问题!如果不行,那么你也不应该移动它!

 

* 我怎样可以激活eaccelerator(PHP加速器)?

请在目录\xampp\apache\bin\php.ini下打开“php.ini”。通过移除[eAcceleraror]这一节中的每一行的分号来激活下面几行:

extension=eaccelerator.dll
eaccelerator.shm_size = "0"
eaccelerator.cache_dir = "\xampp\tmp"
eaccelerator.enable = "1"
eaccelerator.optimizer = "1"


在此之后,不要忘记重启Apache HTTPD!

 

* 我无法与我的微软SQL服务建立任何的连接!

 

如果在“php.ini”中已经加载了mssql拓展,那么当只有使用TCP/IP时,有时会出现问题。你可以在微软下载一个较新的"ntwdblib.dll"以解决此问题。请用该新文件替代\xampp\apache\bin directory目录下的旧文件。重启Apache。感谢Horst的提问!

 

* 我如何使用PHP的mcrypt拓展?

 

对此,我们已经在论坛中创建了一个有案例及一些问题的解决方案的主题:

  http://www.apachefriends.org/f/viewtopic.php?t=3012

 

* 微软的Activer Server Pages (ASP,动态服务器页面) 能在XAMPP使用吗?

不能!并且Perl:ASP in the Perl 追加包不是相同的!很不幸,没有可用的免费Apache工具。

 

* 我想用Perl中的MOD_PERL模块!

 

因此你需要我们XAMPP包含 Mod_Perl的 Perl 插件。请参考我们加载项的下载区域:

 http://www.apachefriends.org/en/xampp-windows.html#644
以及我们的追加包的练习区域
 http://www.apachefriends.org/en/xampp-windows.html#1176
以获得更多的信息。

 

 

 

 

 

===============================英文版分割线==================================

1. General Questions

* XAMPP does not work under Windows XP SP2!

Sure! But here, Microsoft delivered a new firewall. This firewall blocks the important ports 80 (http) and 443 (https) and the server does not want to start (anymore). The fast solution: Deactivate the Microsoft firewall with the toolbar and try to start XAMPP once more. 
Of course everybody also can define the own firwall exceptions in the security center. The following ports are needed for a basic functionality:
http 80 (HTTP)
https 443 (SSL)
mysql 3306
And for all other servers in XAMPP:
ftp 21
smtp 25
pop3 110
imap 143
AJP/1.3 8009
http-alt 8080 (Tomcat Default Port)

* Where I change the start page?

Document is called a folder the $path-to-xampp\xampp\htdocs. There is the index site (index.html) the real start page which is initialized after executing of http://localhost. Alternatively, this page can also be deleted and replaced by "index.php" or "index.cgi" (etc.). The hierarchy of all index pages in the XAMPP be called: 

DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.html.var index.phtml 

Note: After changing that, you will find the XAMPP examples with the URL http://localhost/xampp.

* However, I need mod_perl, the Tomcat or Python!

The tools for this exist with the XAMPP AddOns. Note: These additional packages work only the XAMPP main package not with the “xampplite”. At the moment there are the following AddOns:

  • Perl with mod_perl and many DBI drivers for the respective version of XAMPP (Apache)
  • Tomcat with mod_jk 2 but without Java JSDK. The required JSDK for that Addon was published in the download page or in the Readme. You should be installed Java JSDK before installing this AddOn!
  • Python with mod_python

You find all current AddOns for win32 on the XAMPP win32 download page. Besides that there are even further AddOns for XAMPP on
 http://sourceforge.net/projects/xamppaddon.

* How do I check the md5 checksum?

To check whether the package really is from developer, you need additional Programs. For example the console program md5sum.exe:
 http://downloads.activestate.com/contrib/md5sum/Windows/md5sum.exe 

So it works:

  1. Put the XAMPP package (e.g. xampp-win32-1.4.16.exe) and MD5 file (e.g. xampp-win32-1.4.16.exe.md5) and the md5sum.exe in the same directory
  2. Use the cmd with the following command, here:
    md5sum -c xampp-win32-1.4.16.exe.md5
  3. xampp-win32-1.4.16.exe OK

Otherwise something is wrong. By the way, another GUI program is MD5summer. Please visit their homepage for more information.:  http://www.md5summer.org.

* There are three "php.ini". Which is now the correct one?

The \xampp\apache\bin\php.ini is the correct one! The others in the \xampp\php directory are only for PHP in CGI/CLI mode. So configure the \xampp\apache\bin\php.ini for web changes.
Modifications in the php.ini will be saved also after the "PHP switch" (the changing of the PHP version). And note: Modifications in the php.ini and in the httpd.conf always need a Apache restart!

* Help! The PV.EXE (KILL.EXE) is a Virus in the XAMPP!

No! The "pv.exe" (older the “kill.exe”) is not a Virus or a Trojan. It is a normal utility for killing processes like the kill order for Linux. We need this to stop some server like the Apache. Because the “shutdown/stop” statement do not work here without service installation. But sometimes we make a “hand start” and want to stop the Apache clean. 

Problem: Some Virus scans (also like Norton) make warnings here. Because it is the name (“kill”) or perhaps some Virus/Trojan bundles contain a kill program for stopping some unwanted programs. 

See also:
 Microsoft C 1
 Microsoft C 2

* Not enough memory in the system environment

This kind of error message occurs only under home systems like Windows 95/98/ME and XP home. Problem: The worse memory administration of the Windows home systems allows not some applications like the "command.com" to work with more memory that 160 kb. But our servers need more, however. Solution: Add the following line to c:\config.sys: 

shell=c:\windows\command.com c:\windows /e:2048 /p 

After the restart of your complete system please try XAMPP again. The memory of 2048 kb can be used now. That should be sufficient.

* The apache does not start on my system!!!

This problem can be several reasons.
(1) You have started more then one HTTP Server (IIS, Sambar, ZEUS and so on). Only one Server can occupy port 80. So you must terminate one http server, before you start the Apache. Some error messages like this show the problem:
"(OS 10048)... make_sock: could not bind to adress 0.0.0.0:85
no listening sockets available, shutting down"
"(OS 10038)Socket operation on non-socket: make
_sock: for address 0.0.0.0:443, apr_socket_opt_set: (SO_KEEPALIVE)
no listening sockets available, shutting down"
(2) You have Windows 95 with an outdated winsocks or your winsocks is damage. At least the Apache needs winsocks 2. Please download the current winsocks by www.microsoft.com.
(3) Sometimes the Winsock2 information has been corrupted by poorly written Internet programs (worms, virus). A Winsock2 Fix written by Tom Kynch can solve this problem (only 95,98,ME).
(4) It runs a firewall, which blocks the Apache port. In this case, some pictures or javascripts cannot load via http://. Sometimes, you must deinstall your firewall completly to fix this problem.
(5) You have XP professional without Service Pack 1. In this case the installation of SP1 is recommended urgently.
(6) You have a Virus Scan from McAffee. Sometimes it makes problems. Deactivate here McAffee for testing of XAMPP.
(7) You have other software, such as the Internet Telephone "SKYPE" which also blocks the port 80. (thanks Peter! ) However, one can change the SKYPE port: Actions -- > Options --> Connection. Here remove the check mark at "Port 80" for an alternate port. Restart Skype and also it should work. (thank Monty! ) 

Tip: The "xampp-portcheck.exe" displays the status of every essential port of XAMPP. The status "Free" is even free and that is okay.

* My CPU load is with the Apache almost by 99%

Please, enable following line = > # Win32DisableAcceptEx in the /xampp/Apache/conf/httpd.conf. 

In this case correct is: Win32DisableAcceptEx 

The newer Apache versions have been an improved Winsock 2 support. But it does not work correctly with the Windows home versions. The statement "Win32DisableAcceptEx" in the httpd.conf deactivate this support. Sometimes, some Windows NT systems make trouble too. We do not know why.

* Pictures and style Sheets are not displayed!

With some applications (phpEclipse, phpBB etc.) are problems with displaying great files rpictures. This problem can be solved in the /xampp/Apache/conf/httpd.conf these lines 
# EnableSendfile offstage 
# EnableMMAP offstage
Please activate these lines by removing #: 
EnableSendfile offstage 
EnableMMAP offstage 
Apache restart. 

Conversly sometimes, from
EnableSendfile offstage 
EnableMMAP offstage 
you should make
# EnableSendfile offstage 
# EnableMMAP offstage 
Try it out! Thanks for this solution to the forum and Kris! 

This problem is often caused by the program "NetLimiter" for regulating bandwidth. Please see here the thread in our forum
 http://www.apachefriends.org/f/viewtopic.php?t=6195&highlight=netlimiter
for more information.

* I would like to install the MySQL server as a service!

I would like to install the MySQL server as a service!
Do only work under with NT, Windows 2000 and Windows XP.
(1) Service installation: Under /xampp/mysql double-click on the "mysql_installservice.bat". 
(2) Service uninstallation: Under /xampp/mysql double-click on the "mysql_uninstallservice.bat". That is all!

* How I can set a "root" password in MySQL? (method 1)

In the \xampp\mysql\bin directory enter into the console:
mysqladmin -u root password secret
Ok, "secret" should be your secret password. Then update the password for PHPMyAdmin. Open the "config.inc.php" in \xampp\phpmyadmin an edit following lines:

INSTEAD OF ...

$cfg['Servers'][$i]['user']          = 'root';
$cfg['Servers'][$i]['password']      = '';

NOW ...

$cfg['Servers'][$i]['user']          = 'root';
$cfg['Servers'][$i]['password']      = 'secret';
 

Set a new 'root' passwort with mysqladmin

* How I can set a "root" password in MySQL? (method 2 )

Well, there is still another possibility to set the root password. Start PHPMyAdmin with http://127.0.0.1/phpmyadmin, open the database "mysql" (never delete this!) and use the table "user". Create here a new user or e.g. simply change the password of "root." MySQL restart! After that, do not forget to change the password in the "xampp/phpmyadmin/config.inc.php" for PHPMyAdmin.

* How I can set a "root" password in MySQL? (method 3 )

This method based on a suggestion by Ruedi from Basel. With that: Thanks and Grüssli to Switzerland!

Tip: Resetting the password can be make also with the /xampp/mysql/resetroot.bat. After that, the password is empty means "". 

Step 1: Run cmd
C:\ program files \apachefriends\xampp\mysql\bin>mysqld-nt --skip-grant-tables 

Step 2: Run cmd
C:\>C:\ program files\apachefriends\xampp\mysql\bin\mysqladmin -u root flush-privileges password "newpwd" 

Step 3: Stopping MySQL
C:\>C:\ program files\apachefriends\xampp\mysql\bin\mysqladmin -u root -p shutdown
Enter password: ****** (newpwd) 

Step 4: Edit the “config.inc.php” for the access of PHPMyAdmin
C:\ program files\apachefriends\xampp\phpmyadmin\config.inc.php
Here search for "root"
'$cfg['Servers'][$i]['password'] = 'newpwd'; // MySQL password 

Step 5: MySQL restart

* Can I use my own mysql server?

Why not! Simply don't start the mysql from the xampp package. So you can use your own MYSQL server. Please note! Two servers cannot be started on one same port! If you have set a password for root, please do not forget to edit the "config.inc.php" in \xampp\phpmyadmin for PHPMyAdmin.

* Everyone can use PHPMyAdmin from outside!

In the basic configuration of XAMPP, PHPMyAdmin have a public access. You can close this 'gap' with the "config.inc.php". Open the configuration file of PHPMyAdmin and edit the 'auth_type' lines: 

$cfg['Servers'][$i]['auth_type']     = 'config'; 
$cfg['Servers'][$i]['user']          = 'root'; 
$cfg['Servers'][$i]['password']      = 'secret'; 


Now correctly ...

$cfg['Servers'][$i]['auth_type']     = 'http'; 
$cfg['Servers'][$i]['user']          = 'root'; 
$cfg['Servers'][$i]['password']      = ''; 

Now, user and password are checked before PHPMyAdmin access the mysql server. Optionally you can set 'cookie' for 'http'.

PHPMyAdmin Login, here cookie based

* Where is the IMAP support for PHP?

As default, the IMAP support for PHP is deactivated in XAMPP because there were some mysterious initialization errors by some home versions like Windows 98. Who work with NT systems should open the \xampp\apache\bin\php.ini to active here the php exstension by removing the beginning semicolon. 

extension=php_imap.dll 

Apache restart! That is the method for all not loaded PHP modules in XAMPP to loading it

* I have problems with the reference of some classes in objects

Thank you Jörg to point to that problem! It seems the activation of the "Zend Optimizer" makes trouble here. Please open the \xampp\apache\bin\php.ini and deactivate all lines in the [Zend] section. After that, restart the apache.

Note: In the newer XAMPP versions, the ZEND extension is deactivate as default.

* Other free opensource programs (CMS and so on) do not function!

Linux and Windows are different. So the crypt() function does not supported for windows and so on. Also the simple programming can be strange: For example the term 'var=Text;' functions in PHP for Linux. But for example for some older PHP for win32 you have to program 'var="Text";'. Or the interfaces are often too different. Or further necessary programmes are missing on other platforms. This is the reason why sometimes certain programmes do not work with XAMPP.

* Can I delete the "install" directory after "installation"?

No, better not. The scripts here are still needed for all additional packages (add-ons) and upgrades of XAMPP.

* Where is a the front page extension?

We do not know a free extension for the Apache under win32. But there is a "Ready-to-Run FrontPage Server Extensions for Unix":  http://www.rtr.com/fpsupport/

But often the developer in our forum knowing more:  http://www.apachefriends.org/f/

* I would like to move the XAMPP package into another directory!

Hmm ... If the "install" directory is present I would try the following: Copy the entire XAMPP package into the new directory of your choice. Then start here again the "setup_xampp.bat" for refresh all configuration files. Test everything! If all servers really still working here, it is okay! If not, then not and you should remove that copy!

* How do I activate the eaccelerator?

Please open the "php.ini" in the directory \xampp\apache\bin\php.ini. Here activate the following lines by removing the semicolon in each line in the [eAccelerator] section:

extension=eaccelerator.dll
eaccelerator.shm_size = "0"
eaccelerator.cache_dir = "\xampp\tmp"
eaccelerator.enable = "1"
eaccelerator.optimizer = "1"


After that, don't forget the restart the Apache HTTPD!

* I do not get any connection to my MS SQL server!

If the mssql extension was loaded in the php.ini, sometimes it comes to access problems when only TCP/IP is used. You can fix that problem with a newer "ntwdblib.dll" from Microsoft. Please replace the older file in the \xampp\apache\bin directory with your newer file from Microsoft. Apache restart. Thank you Horst for this topic note!

* How do I work with the PHP mcrypt extension?

For this, we have opened a Topic in the forum with examples and also with some problem solutions:  http://www.apachefriends.org/f/viewtopic.php?t=3012

* Do Microsoft Activer Server Pages (ASP) work with XAMPP?

No! And Perl:ASP in the Perl Add-on is not the same! Unfortunately no free implementation for the Apache is available.

* I would like to use Perl with MOD_PERL!

Therefore you need our XAMPP Perl Add-on with the big Perl Package plus Mod_perl. Please refer our Add-on download section
 http://www.apachefriends.org/en/xampp-windows.html#644
and our Add-on practice section
 http://www.apachefriends.org/en/xampp-windows.html#1176
for more information. 

 

 

============================词汇表==============================

firewall 防火墙
port 端口
default 默认,系统默认值
folder 目录
plus
call 调用,调入
implementation 工具; 执行 ; 实现 ; 设备
initialized 已初始化的
executing 执行
hierarchy 分层 ; 层次 ; 层级
package 组件
activate 激活
directory 目录
present 现行 ; 当前 ; 存在 ; 呈现
configuration 组态,结构,布局
front 前(端)
ready-to-run 可以直接执行
developer 开发者
script 脚本
upgrade 升级
function 函数
term 项;款项
interface 界面 ; 接口
platform 平台
certain 可靠地 ; 确定的
reference 引用 ; 访问 ; 索引
object 对象
class 类
section 节
add-ons 附[追]加系统[软件(包)] ; 加载项
checksum 校检
console 控制台
configure 配置
Trojan 特洛伊 ; 木马
Virus 病毒
kill 中止
utility 应用程序
statement 语句
order 指令
clean 清除
Virus scan 杀毒软件
scan 扫描 ; 搜索
bundle 捆绑
enable 启用
deactivate 使失效 ; 去活化
display 显示
style sheet 样式表
regulating 调节 ; 控制
bandwidth 带宽
database 数据库
table 表格
configuration 结构 ; 格局 ; 配置
initialization 初始化