【问题标题】:I install XAMPP on ubuntu , i have error opening them know我在 ubuntu 上安装 XAMPP,我打开它们时出错知道
【发布时间】:2014-08-16 12:09:35
【问题描述】:

我确实在 ubuntu 上安装了 XAMPP,它工作正常,但是今天当我安装 nessus 时,我发现我无法进入 phpmyadmin 它给了我这个错误:

#2002 - No such file or directory
The server is not responding (or the local server's socket is not correctly configured). 

【问题讨论】:

标签: php ubuntu


【解决方案1】:

在你的 xampppath\apache\conf\extra 打开文件 httpd-xampp.conf

查找:

# Close XAMPP sites here
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Order deny,allow
    Deny from all
    Allow from ::1 127.0.0.0/8 
    ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>

替换为

# Close XAMPP sites here
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Order deny,allow
    Allow from all
    Allow from ::1 127.0.0.0/8
    ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>

添加行:

/已编辑/

在您的 apache 配置的启用站点的文件夹中添加 000-ispconfig.conf 文件的末尾

<Directory /usr/share/phpMyAdmin>
Order allow,deny
Allow from all
</Directory>

然后重启xampp,一切都会好起来的

【讨论】:

  • 当我启动mysql 'XAMPP:正在启动MySQL... XAMPP:无法启动MySQL! '
  • 试试 sudo chmod 755 /opt/lampp/etc/my.cnf sudo chmod -R 777 /opt/lampp/var/mysql sudo chown -hR root/opt/lampp
  • chown -hR root/opt/lampp -> chown: 在root/opt/lampp' Try chown --help' 之后缺少操作数以获取更多信息。
  • sudo chmod 755 /opt/lampp/etc/my.cnf sudo chmod 777 /opt/lampp/var/mysql -R sudo /opt/lampp/lampp restart
  • 我得到同样的错误Access to the requested directory is only available from the local network. This setting can be configured in the file "httpd-xampp.conf".
猜你喜欢
  • 2017-01-11
  • 2017-12-31
  • 2015-04-08
  • 1970-01-01
  • 2023-03-25
  • 2019-05-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多