apache - XAMPP本地主机未以管理员权限运行

标签 apache xampp

在我的XAMPP控制面板上,日志显示以下内容

23:39:22  [main]    Initializing Control Panel
23:39:22  [main]    Windows Version: Windows 8  64-bit
23:39:22  [main]    XAMPP Version: 5.6.3
23:39:22  [main]    Control Panel Version: 3.2.1  [ Compiled: May 7th 2013 ]
23:39:22  [main]    You are not running with administrator rights! This will work for
23:39:22  [main]    most application stuff but whenever you do something with services
23:39:22  [main]    there will be a security dialogue or things will break! So think 
23:39:22  [main]    about running this application with administrator rights!
23:39:22  [main]    XAMPP Installation Directory: "c:\xampp\"
23:39:22  [main]    Checking for prerequisites
23:39:22  [main]    All prerequisites found
23:39:22  [main]    Initializing Modules
23:39:22  [Apache]  XAMPP Apache is already running on port 80
23:39:22  [Apache]  XAMPP Apache is already running on port 443
23:39:22  [mysql]   XAMPP MySQL is already running on port 3306
23:39:22  [main]    Starting Check-Timer
23:39:22  [main]    Control Panel Ready

我想知道如何更改管理员权限,因为我的代码当前无法正常工作。在过去的6个月中,我一直在使用XAMPP,以前从未遇到过此问题。它只是今天第一次发生,我没有访问任何配置文件。我的代码也不是问题,因为我的团队正在使用共享的git存储库,并且其他所有人都在XAMPP上运行完全相同的代码,并且他们没有这些问题,并且在XAMPP控制面板日志中没有出现相同的消息。

最佳答案

尽管您可能想要一个永久的解决方案,但Aslam的答案是正确的。为此,请遵循以下过程:

  • 在Windows中右键单击Xampp菜单项(通常从何处启动Xampp)。
  • 在出现的菜单中单击“打开文件位置”。这应该带您进入Xampp可执行文件/二进制文件的快捷方式(很可能类似于“C:\ProgramData\Microsoft\Windows\Start Menu\Programs\XAMPP”)
  • 右键单击此快捷方式,然后选择“属性”(菜单栏上可能有一个“属性”图标-如果是,请单击该图标)。
  • 如果尚不存在,请单击“属性”中的“快捷方式”选项卡。
  • 单击“高级”按钮
  • 在打开的对话框中,选中“以管理员身份运行”旁边的框
  • 单击确定,保存,应用等-一直到。
  • 关于apache - XAMPP本地主机未以管理员权限运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32260605/

    相关文章:

    Apache mod_dav 400 对不存在的集合资源的错误请求

    php - 在 xampp localhost 中使用 PHP 和 htaccess 创建动态子域

    php - 将图像从 android 上传到 PHP 服务器

    tomcat - 在 Mac 上的 Xampp 中安装 Tomcat 的位置和方法

    php - FOSuserBundle 和 php 5.5

    apache - mod_rewrite index.php 将 https 重定向到 http

    apache - mod_rewrite 规则重定向除一个特定路径之外的所有请求

    php - 以非管理员身份安装 XAMPP

    php - LAMP 服务器 - 一个命令?

    php - 如何使用 xampp 从本地计算机访问 Windows Server 2012 r2 上的数据库?