XAMPP 开始时的这个错误是什么?我怎样才能解决这个问题?

What is this error in XAMPP starting? How can i fix this?

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/ 

Last 10 lines of "/opt/lampp/logs/error_log":

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 的腿:~$

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

正在为 ubuntu 14.04 安装 apache,php 和 mysql。

第 1 步:

sudo apt-get update

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 restart

第 3 步:

Open http://127.0.0.1

现在你有一个工作的 Apache 服务器 php 和 mysql。

user3686982 gave a nice answer. Installing the individual softwares that constitute xampp is a good thing and I think it is preferable.

如果您仍想使用 xampp 安装程序,请卸载所有 xampp 版本并从此处 apachefriends. This link will show you how to use the installer

下载 xampp 安装程序

Also Apache is not working because another server is already running at that port 80. You can either stop apache2 sudo service apache2 stop or change the port of your Xampp apache server.

我在 Ubuntu 操作系统上遇到了同样的问题。后来才知道是因为我把httpd.conf中的listen改成了(我的ipaddress:80),IP变了。这就是问题所在。所以打开 /opt/lampp/etc/httpd.conf 并检查 listen 是否设置为 80 或其他。如果不是 80,则将其设置为 80。重新启动您的 Apache 服务器。那么你应该都准备好了。