【问题标题】:What is this error in XAMPP starting? How can i fix this?XAMPP 启动中的这个错误是什么?我怎样才能解决这个问题?
【发布时间】:2015-04-08 05:02:30
【问题描述】:

rash@rash's lap:~$ sudo /opt/lampp/lampp start

sudo: unable to resolve host rash's lap
[sudo] password for rash: 
Starting XAMPP for Linux 5.6.3-0...
XAMPP: Starting Apache...fail.
XAMPP:  Starting diagnose... 
XAMPP:  Sorry, I've no idea what's going wrong. 
XAMPP:  Please contact our forum http://www.apachefriends.org/f/ 

“/opt/lampp/logs/error_log”的最后10行:

tail: cannot open ‘/opt/lampp/logs/error.log’ for reading: No such file or directory
XAMPP: Starting MySQL.../opt/lampp/share/xampp/xampplib: line 39: test: /opt/lampp/var/mysql/rash's: binary operator expected
ok.
XAMPP: Starting ProFTPD...fail.
Contents of "/opt/lampp/var/proftpd/start.err":
rash_s_lap proftpd[5128]: warning: unable to determine IP address of 'rash_s_lap'
rash_s_lap proftpd[5128]: error: no valid servers configured
rash_s_lap proftpd[5128]: Fatal: error processing configuration file '/opt/lampp/etc/proftpd.conf'

rash@rash 的膝盖:~$

【问题讨论】:

  • 检查 /etc/hosts 是否有正确的 ip 和主机名
  • 它不起作用。我试过了
  • Duplicate question。选择一个站点以获取 Stackoverflow 或 askubuntu 的响应。

标签: php mysql linux apache xampp


【解决方案1】:

删除所有以前版本的lamp及其所有组件(apache、php、mysql、smtp ...)并一一重新安装。

为 ubuntu 14.04 安装 apache、php 和 mysql。

第 1 步:

sudo apt-get 更新

sudo apt-get install apache2 mysql-client mysql-server php5

您可能会被要求输入密码。

第 2 步:

sudo apt-get install php5-curl php5-gd php5-intl php5-mysql

sudo service apache2 重启

第 3 步:

打开http://127.0.0.1

现在你有了一个工作的 apache 服务器,带有 php 和 mysql。

【讨论】:

    【解决方案2】:

    user3686982 给出了一个很好的答案。安装构成 xampp 的单个软件是一件好事,我认为它是可取的。

    如果您仍想使用 xampp 安装程序,请卸载所有 xampp 版本并从此处下载 xampp 安装程序apachefriends。这个链接会告诉你how to use the installer

    另外 Apache 也无法工作,因为另一台服务器已经在该端口 80 上运行。您可以停止 apache2 sudo service apache2 stop 或更改Xampp apache server 的端口。

    【讨论】:

      【解决方案3】:

      我在 Ubuntu 操作系统上遇到了同样的问题。然后我意识到这是因为我将httpd.conf中的listen更改为(我的IP地址:80)并且我的IP被更改了。这就是问题所在。所以打开/opt/lampp/etc/httpd.conf 并检查listen 是否设置为80 或其他内容。如果不是80,请将其设置为80。重新启动您的 apache 服务器。那么你应该准备好了。

      【讨论】:

        猜你喜欢
        • 2012-03-16
        • 2013-10-24
        • 1970-01-01
        • 2019-04-10
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-10-18
        • 1970-01-01
        相关资源
        最近更新 更多