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。
第一步:
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
现在你有一个可以运行的带有 php 和 mysql 的 apache 服务器。
关于php - XAMPP 启动时出现这个错误是什么?我怎样才能解决这个问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28393126/