php - XAMPP 启动时出现这个错误是什么?我怎样才能解决这个问题?

标签 php mysql linux apache xampp

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/

相关文章:

mysql - 如何将 MySQL 用户限制为特定表

php - codeigniter 中的多次上传

c++ - 从 Linux Makefile 打开终端

c - 信号处理程序在到达双 SIGINT 时终止主程序和所有分支

php - 从字符串中的第二对引号获取内容

php - 在postgresql中更新表的特定区域

php - 如果值不为空,则打印行中的值 PHP SQL

mysql - 我如何知道 Perl DBI 查询返回多少行?

linux - 使用 linux 命令删除不需要的行

php - 有没有办法在浏览器中捕获所有键盘输入?