【发布时间】:2016-10-11 06:40:59
【问题描述】:
首先我的英语可能很糟糕,所以如果你明白我的意思但句子不正确,请随时编辑我的帖子,如果你不明白,我会尽力解释得更好。
我在 MyBook Air 10.11.5 版上安装了 XAMMP。我可以启动应用程序,但是在“管理服务器”中,当我按下“全部启动”按钮时,所有状态都从“停止”切换到“正在启动”,然后在大约 20 秒后返回“停止”。这是应用程序日志:
Starting MySQL Database...
Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started
Starting ProFTPD...
Checking syntax of configuration file
/Applications/XAMPP/xamppfiles/proftpd/scripts/ctl.sh : proftpd started
这里有两件事:MySQL 数据库不发送任何返回信息,而且似乎服务器正在运行日志。所以也许这只是“管理服务器”选项卡上的显示问题,所以我尝试转到地址http://localhost,但没有。
经过大量研究并尝试唯一给我想要的主题是这个:MySQL Database won't start in XAMPP Manager-osx
命令sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start完美运行。所以现在我只能启动 MySQL 服务器。我注意到了一些东西,这里是终端日志:
MacBook-Air:~ user$ sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort.
Password:
Starting MySQL
. SUCCESS!
您可以看到我必须输入会话密码。所以我的问题很简单:
密码可能是 XAMPP 管理器的问题吗? 即管理器尝试启动服务器,但遇到密码请求,然后启动服务器失败。
如果是这种情况,我该如何向 XAMPP 授予访问权限,以便管理员可以在自己的服务器上启动而无需使用终端?
如果我无法解决管理器问题,是否有类似下面的命令来启动 PHP 服务器?
我保证我对这个主题进行了研究,但我没有找到关于这个特定密码的任何信息(我经常在开始会话密码时被重定向......)。
感谢您的阅读和回答!
【问题讨论】:
标签: php mysql macos apache xampp