【问题标题】:Why Xampp control panel shows an error access denied upon launch [closed]为什么Xampp控制面板在启动时显示错误访问被拒绝[关闭]
【发布时间】:2016-12-05 04:58:35
【问题描述】:

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

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

我安装的版本是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

【问题讨论】:

  • 这个问题属于ServerFault。
  • 从命令行运行 httpd.exe 通常会发现真正的问题。

标签: php apache xampp bitnami


【解决方案1】:

只需以管理员身份运行应用程序即可解决我的问题。

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

【讨论】:

  • 酷,救命!!
  • 在正常情况下,控制面板会启动,不需要以管理员身份运行。但是,如果您想更改配置并保存更改(例如,让 Apache 自动打开),您将看到此错误。在这种情况下,只需以管理员身份运行一次并保存配置。之后就可以正常运行了。
  • Xampp-control.ini 由于某些原因变为“只读”。只需将其更改为“完全控制”
  • 右键单击此快捷方式并选择Properties(菜单栏上可能有一个属性图标 - 如果有,请单击它)。如果还没有,请单击属性中的快捷方式选项卡。单击Advanced 按钮 在打开的对话框中,选中Run as Administrator 旁边的框现在它将始终以管理员身份运行
  • 按照 HadiNiazi 的评论,在 xampp 文件夹中搜索 xampp-control.ini。它应该是 xampp 文件夹中的那个。右键单击它,转到“属性”>“安全”>“编辑”。从那里,允许所有人完全控制,然后保存设置。这为我解决了错误。
猜你喜欢
  • 2020-07-09
  • 2014-05-23
  • 2017-02-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-04-02
  • 2013-12-17
相关资源
最近更新 更多