XAMPP localhost not running with administrator rights

帅比萌擦擦* 提交于 2020-06-17 06:30:13

问题


On my XAMPP control panel the log says this

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

I would like to know how to change to administrator rights as my code is currently not working. I have been using XAMPP for the past 6 months and have never had this problem before. It only occurred today for the first time and I did not access any of the config files. My code is also not the problem as my team is using a shared git repository and everyone else is running the exact same code on XAMPP and they are not having these issues and do not have the same message appearing in the XAMPP control panel log.


回答1:


Right click on xampp icon and click on run as administrator




回答2:


The answer by Aslam is correct, although you probably want a permanent solution. For that, follow this process:

  1. Right-click on the menu item for Xampp (wherever you normally start Xampp from) in Windows.

  2. Click on "Open File Location" in the menu that appears. That should take you to the shortcut to the Xampp executable/binary (most likely something like "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\XAMPP")

  3. Right-click on this shortcut and choose Properties (you may have a Properties icon on the Menu bar - if so, click that instead).

  4. If not already there, click on the Shortcut tab in Properties.

  5. Click the "Advanced" button
  6. In the dialog that opens, check the box next to "Run as Administrator"
  7. Hit OK, Save, Apply etc. - all the way out.


来源:https://stackoverflow.com/questions/32260605/xampp-localhost-not-running-with-administrator-rights

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!