在 MS Windows Server 2003 上安装 Xampp

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4646226/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 15:57:04  来源:igfitidea点击:

Installing Xampp on MS Windows Server 2003

windowsiiswindows-server-2003xampp

提问by Vonder

I have a Windows Server 2003 and asp.net website running on localhost. I have to install php and mysql, but php installation doesn't work for whatever reason. I was wondering if I could install package such as xampp on windows server to save time and hassle installing in manually (I could not find a tutorial for this). I was wondering though, if it is safe, i.e. what will happen if I go to http://localhost/- will I get the php or asp website? In general, is it safe to install xampp on windows server 2003? All advice greatly appreciated.

我有一个在本地主机上运行的 Windows Server 2003 和 asp.net 网站。我必须安装 php 和 mysql,但无论出于何种原因,php 安装都不起作用。我想知道是否可以在 Windows 服务器上安装 xampp 之类的软件包以节省时间和手动安装的麻烦(我找不到这方面的教程)。我想知道,如果它是安全的,即如果我去http://localhost/会发生什么- 我会得到 php 或 asp 网站吗?一般来说,在 windows server 2003 上安装 xampp 安全吗?非常感谢所有建议。

回答by Phoenix

Yeah, it's safe to install both. What you do is bind one to one port and the other to another port, so IIS is port 80 and Apache is port 81 or whatever, http://localhost/would go to IIS and http://localhost:81/would go to apache.

是的,两者都安装是安全的。您所做的是将一个端口绑定到一个端口,另一个绑定到另一个端口,因此 IIS 是端口 80,Apache 是端口 81 或其他任何端口,http://localhost/将转到 IIS,而http://localhost:81/将转到到阿帕奇。

回答by gabel

Microsoft got a detailed oficial instructionpage for PHP on IIS under h**p://php.iis.net/

Microsoft 在 h**p://php.iis.net/ 下获得了有关 IIS 上 PHP 的详细官方说明页面

You probably got IIS 6 running on that Windows 2003 Server. The following article describes how to run PHP apps

您可能在该 Windows 2003 Server 上运行了 IIS 6。以下文章介绍了如何运行 PHP 应用程序

http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/

http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/

If you have no experience with XAMPP or Apache Webserver I wouldn't recommend to install it... especially on a production system.

如果您没有使用 XAMPP 或 Apache Webserver 的经验,我不建议安装它……尤其是在生产系统上。