php Xampp 控制面板在启动时显示错误

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

Xampp control panel shows an error upon launch

phpapachexamppbitnami

提问by Sahar Alsadah

I am facing a problem with my Xampp control panel. Once I try to launch it, it pops out an error message saying:

我的 Xampp 控制面板出现问题。一旦我尝试启动它,它就会弹出一条错误消息:

"Error:Cannot create file "C:\xampp\xampp-control.ini". Access denied.

“错误:无法创建文件“C:\xampp\xampp-control.ini”。访问被拒绝。

The version I installed is xampp-win32-5.6.23. When I try to start the apache module, below is the log respnse:

我安装的版本是xampp-win32-5.6.23。当我尝试启动 apache 模块时,以下是日志响应:

7:53:14 PM  [Apache]    Attempting to start Apache app...
7:53:15 PM  [Apache]    Status change detected: running
7:53:17 PM  [Apache]    Status change detected: stopped
7:53:17 PM  [Apache]    Error: Apache shutdown unexpectedly.
7:53:17 PM  [Apache]    This may be due to a blocked port, missing dependencies, 
7:53:17 PM  [Apache]    improper privileges, a crash, or a shutdown by another method.
7:53:17 PM  [Apache]    Press the Logs button to view error logs and check
7:53:17 PM  [Apache]    the Windows Event Viewer for more clues
7:53:17 PM  [Apache]    If you need more help, copy and post this
7:53:17 PM  [Apache]    entire log window on the forums

回答by Sahar Alsadah

My problem was solved by just running the app as an administrator.

以管理员身份运行应用程序解决了我的问题。

Right click the xampp control panel> run as administrator.

右键单击 xampp 控制面板 > 以管理员身份运行。