php 无法在 xampp 中检查服务模块

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20188546/
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-08-25 02:58:25  来源:igfitidea点击:

Can't check services module in xampp

phpxampp

提问by Mharveen Biu

xampp v3.2.1 do I need to check the service module first so that I can view it on localhost?, because I can't see my sample.phpin localhost.

xampp v3.2.1 是否需要先检查服务模块,以便我可以在本地主机上查看它?,因为我sample.php在本地主机上看不到我的。

I noticed the checkbox is disabled: I noticed the checkbox is disabled

我注意到复选框被禁用: 我注意到复选框被禁用

and another one how do I normally open my sample.php. the localhost in the browser always

还有一个我通常如何打开我的sample.php. 浏览器中的本地主机总是

redirect me here: http://localhost/xampp/index.php..which is the mainsite of xampp. hmm.

将我重定向到这里:http://localhost/xampp/index.php..这是 xampp 的主要站点。唔。

Please help, I'm a novice in php using xampp. Google almighty can't find me a solution.

请帮忙,我是使用 xampp 的 php 新手。谷歌全能找不到我的解决方案。

回答by Kiel Labuca

You must start the XAMPP Control Panel as Admin. Go to your XAMP directory, usually its C:\XAMPP\, look for the "xampp-control.exe". Right click on that and hit "Run as Administrator." After confirming the UAC or user account control, you should be able to check and install Apache and MySQL as services. That works for me so it should work for you too as I can tell on your screenshot, we run the same version of XAMPP. Goodluck.

您必须以管理员身份启动 XAMPP 控制面板。转到您的 XAMP 目录,通常是它的 C:\XAMPP\,查找“xampp-control.exe”。右键单击它并点击“以管理员身份运行”。确认 UAC 或用户帐户控制后,您应该可以检查和安装 Apache 和 MySQL 作为服务。这对我有用,所以它也应该对你有用,因为我可以从你的屏幕截图中看出,我们运行相同版本的 XAMPP。祝你好运。

回答by VooDooS

First of all make sure that you haven't installed XAMPP Lite (and portable) version. Only the full versionprovide the use of services because Windows needs absolute paths to launch these.

首先确保您没有安装 XAMPP Lite(和便携式)版本。只有完整版才提供服务的使用,因为 Windows 需要绝对路径来启动这些服务。

For your redirection problem you will have to tweak apache's configuration files (httpd.conf and/or httpd-xampp.conf). Use the XAMPP Controller's "Config" buttons.

对于重定向问题,您必须调整 apache 的配置文件(httpd.conf 和/或 httpd-xampp.conf)。使用 XAMPP 控制器的“配置”按钮。

You will have to create aliasesfor your web folders, see: Apache mod_alias

您必须为您的 Web 文件夹创建别名,请参阅:Apache mod_alias

回答by Hassan Saeed

-Just Run "xampp-control.exe" as administrator
-and stop apache service action port.
-and tick this(in snapshot) check box it will ask for install as service just install it
-then go to service.msc where you will see
-new service name as apache2(or similar)
-just set it as automatic if you want it to run as startup.

- 只需以管理员身份运行“xampp-control.exe”
- 并停止 apache 服务操作端口。
- 并勾选此(在快照中)复选框,它将要求安装为服务,只需安装它
-然后转到 service.msc,您将在其中看到-
新服务名称为 apache2(或类似名称)-
如果需要,只需将其设置为自动它作为启动运行。

(this method is for apache for mysql you will do same above steps)

(此方法适用于 mysql 的 apache,您将执行上述步骤)

enter image description here

在此处输入图片说明