php 安装 XAMPP 时如何在 UAC 上工作
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26360774/
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
How to work on UAC when installing XAMPP
提问by FlippingCoin
I am installing Xampp to my computer but when i tried to install it a dialog box is showing up. how do i fix this one.. thank you so much for the help.! the dialog Box:
我正在将 Xampp 安装到我的计算机上,但是当我尝试安装它时,出现了一个对话框。我该如何解决这个问题..非常感谢您的帮助。!对话框:
Important! Because an activated User Account Control (UAC) on your system some functions of XAMPP are possibly restricted.
With UAC please avoid to install XAMPP to C:\Program Files(Missing Write permissions). Or Deactivate UAC with msconfig after this setup.
重要的!由于您系统上激活的用户帐户控制 (UAC),XAMPP 的某些功能可能会受到限制。
使用 UAC 请避免将 XAMPP 安装到 C:\Program Files(缺少写入权限)。或在此设置后使用 msconfig 停用 UAC。
回答by Yevgeniy Afanasyev
This is a specific issue for Windows Vista, 7, 8 (and presumably newer).
这是 Windows Vista、7、8(可能是更新版本)的特定问题。
User Account Control (UAC) is a feature in Windows that can help you stay in control of your computer by informing you when a program makes a change that requires administrator-level permission. UAC works by adjusting the permission level of your user account.
用户帐户控制 (UAC) 是 Windows 中的一项功能,它可以通过在程序进行需要管理员级别权限的更改时通知您来帮助您保持对计算机的控制。UAC 通过调整您的用户帐户的权限级别来工作。
This is applied mostly to C:\Program Files. You may have noticed sometimes, that some applications can see files in C:\Program Files that does not exist there. You know why? Windows now tend to have "C:\Program Files" folder customized for every user. For example, old applications store config files (like .ini) in the same folder where the executable files are stored. In the good old days all users had the same configurations for such apps. In nowadays Windows stores configs in the special folder tied to the user account. Thus, now different users may have different configs while application still think that config files are in the same folder with the executables.
这主要应用于 C:\Program Files。您有时可能已经注意到,某些应用程序可以看到 C:\Program Files 中不存在的文件。你知道为什么?Windows 现在倾向于为每个用户定制“C:\Program Files”文件夹。例如,旧应用程序将配置文件(如 .ini)存储在存储可执行文件的同一文件夹中。在过去的好日子里,所有用户对此类应用程序都有相同的配置。如今,Windows 将配置存储在与用户帐户相关联的特殊文件夹中。因此,现在不同的用户可能有不同的配置,而应用程序仍然认为配置文件与可执行文件位于同一文件夹中。
XAMPP does not like to have different config for different users. In fact it is not a config file for XAMPP, it is folders where you keep your projects and databases. The idea of XAMPP is to make projects same for all users. This is a source of a conflict with Windows.
XAMPP 不喜欢为不同的用户使用不同的配置。事实上,它不是 XAMPP 的配置文件,它是您保存项目和数据库的文件夹。XAMPP 的想法是使所有用户的项目都相同。这是与 Windows 冲突的根源。
All you need is to avoid installing XAMPP into C:\Program Files.Thus XAMPP will always use the original files for all users and there would be no confusion.
您所需要的只是避免将 XAMPP 安装到 C:\Program Files 中。因此,XAMPP 将始终为所有用户使用原始文件,不会出现混淆。
I recommend to install XAMPP into the special folder in root directory like in C:\XAMPP. But before you choose the folder you need to click on this warning message.
我建议将 XAMPP 安装到根目录下的特殊文件夹中,例如 C:\XAMPP。但在选择文件夹之前,您需要单击此警告消息。
回答by Kaymaz
You can press okand it will continue the insallation.
您可以按确定,它将继续安装。
Otherwise, see Trying to reinstall XAMPP on windows 7, getting error messag...
否则,请参阅 尝试在 Windows 7 上重新安装 XAMPP,收到错误消息...
回答by itzmebibin
You can press OKand install xamppto C:\xamppand not into program files
您可以按OK并将xampp安装到C:\xampp而不是程序文件
回答by ron24
To disable UAC go to Start>Control Panel>User Accounts there you will find an option Turn User Account Control on or off just click on it and uncheck User Account Control to help protect your computer click OK.
要禁用 UAC,请转到“开始”>“控制面板”>“用户帐户”,您会在其中找到一个选项“打开或关闭用户帐户控制”,只需单击它并取消选中“用户帐户控制”以帮助保护您的计算机,单击“确定”。
Please refer to this link : https://community.apachefriends.org/f/viewtopic.php?f=16&t=45364
请参考此链接:https: //community.apachefriends.org/f/viewtopic.php?f=16&t=45364
回答by u5675325
Basically there's three things you can do
基本上你可以做三件事
- Ensure that your user account has administrator privilege.
- Disable User Account Control (UAC).
- Install in C://xampp.
- 确保您的用户帐户具有管理员权限。
- 禁用用户帐户控制 (UAC)。
- 安装在 C://xampp。
I've just writen an answer to a very similar answer herewhere I explain how you can disable UAC since Windows 8.
我刚刚在这里写了一个非常相似的答案,我解释了如何从 Windows 8 开始禁用 UAC。