如何安装和安装XAMPP控制面板?正确启动服务?

时间:2012-11-28 12:39:41

标签: mysql apache service xampp

所以最近每当我尝试在XAMPP上安装Apache / MySQL / FileZilla作为服务时,它都会说明这一点:

5:20:18 AM  [Apache]    Apache Service detected with wrong path
5:20:18 AM  [Apache]    Change XAMPP Apache settings or
5:20:18 AM  [Apache]    Uninstall/disable the other service manually first
5:20:18 AM  [Apache]    Found Path: ERROR: Not Able To Open Service Manager
5:20:18 AM  [Apache]    Expected Path: "f:\xampp\apache\bin\httpd.exe" -k runservice
5:20:18 AM  [Apache]    Successful!

之后,我无法从XAMPP面板启动该过程,直到我从那里卸载服务,然后模块名称突出显示为红色。虽然如果我将它们作为服务安装(红色名称和全部),我可以进入服务管理器并手动启动它们并且它们开始正常,甚至XAMPP控制面板将它们变为绿色并通知它们运行。这可能会发生在Tomcat上,我只是从不使用它,所以我没有搞砸它。所有路径似乎都是正确的(我确实在F驱动器上有它),但即使在无数次重新安装和注册表擦除之后,XAMPP控件似乎也不想处理安装和放大器。正确运行服务。对此感到有点沮丧,所以提前感谢任何帮助。

2 个答案:

答案 0 :(得分:8)

它可能都是关于权限,文件ACL等等。

当您以正常模式(而不是服务)启动XAMPP时,它会以启动它的用户的权限启动。这可能是您的Windows帐户。

您的Windows帐户拥有的所有文件都可供XAMPP访问。因此,如果您创建目录“F:\ some_dir”,XAMPP应该可以在正常模式下访问,并且应该没有问题,因为XAMPP正在使用您的帐户访问文件。

当应用程序作为服务启动时 - 它使用另一个Windows帐户(默认情况下,服务使用了2个帐户:LOCAL SERVICE,NETWORK SERVICE)。 该帐户可能无法读取和写入属于您个人Windows帐户的文件

可以更改用于特定服务的帐户。您可以运行services.msc,选择服务并转到属性,并且应该有“登录”标签。

您还可以更改文件/目录权限并使其可用于服务帐户,但我认为首先解决方案更好。

XAMPP的另一个问题是控制面板,默认情况下启动时没有管理权限,当您从开始菜单启动时,它无法控制任何服务。安装后的某些版本的XAMPP将运行具有管理员权限的XAMPP控制面板,并且它可以正常运行,直到您关闭该应用程序并重新启动(没有管理员权限)。

如果您尝试启动XAMPP控制面板并且它不会询问管理员帐户 - 您必须右键单击XAMPP控制面板图标并单击“以管理员身份运行”。

答案 1 :(得分:0)

对于WAMP服务器上的no access,转到appache的httpd.conf,然后搜索如下内容:

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

但是它有一些其他值的顺序和拒绝....你必须将它改为上面才能使它工作。

我也在httpd.conf中有这个,你可以用它来...:

<Directory "D:/wamp_together/www/">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride all

    #
    # Controls who can get stuff from this server.
    #

#   onlineoffline tag - don't remove
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1

</Directory>