【问题标题】:LAMPP startup fails with Error 2LAMPP 启动失败并出现错误 2
【发布时间】:2013-01-19 10:21:14
【问题描述】:

我正在尝试设置一个网络服务器来测试我的 php 脚本。

我下载了最新版本的lampp(1.8.1)并解压到/opt/lampp。

现在我刚刚尝试启动它但它失败了:

xxx@xxx-pc1:/opt/lampp$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 1.8.1...
/opt/lampp/share/lampp/phpstatus: line 4: /opt/lampp/bin/php: cannot execute binary file
XAMPP: Starting Apache with SSL ...
/opt/lampp/bin/httpd: 1: /opt/lampp/bin/httpd: Syntax error: "(" unexpected
XAMPP: Error 2! Couldn't start Apache!
XAMPP: Starting diagnose...
XAMPP: Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum http://www.apachefriends.org/f/
XAMPP: Starting MySQL...
./bin/my_print_defaults: 1: ./bin/my_print_defaults: Syntax error: "(" unexpected
XAMPP: Couldn't start MySQL!
XAMPP: Starting ProFTPD... XAMPP: /opt/lampp/lampp: line 333: /opt/lampp/sbin/proftpd: cannot execute binary file
XAMPP: Error 126! Couln't start ProFTPD!
XAMPP for Linux started.
xxx@xxx-pc1:/opt/lampp$

有人知道这个问题吗?

【问题讨论】:

    标签: apache ubuntu xampp lampp


    【解决方案1】:

    “无法执行二进制文件”

    如果您无法运行它,请转到http://www.apachefriends.org/en/xampp-linux.html 并为您的 32 位/64 位操作系统下载适当的版本。要知道您使用的是哪一个,请输入此命令 -

    uname -m
    

    【讨论】:

      【解决方案2】:

      您必须先安装 LAMP,然后它才能运行。在 Ubuntu 中执行此操作的最简单方法是运行此命令。

      xxx@xxx-pc1: sudo tasksel
      

      这将启动 tasksel,它会打开一个对话框并允许您选择和安装多个组件,其中之一是 LAMP。安装 LAMP 将使您的 Apache、PHP 和 MySQL 全部打包并一起工作。它还会在 /etc/init.d 中创建一个条目以自动为您启动它。

      如果未安装 Tasksel,则按如下方式安装:

      xxx@xxx-pc1: sudo apt-get install tasksel
      

      进入 tasksel 后,只需按照输入并提供一些基本答案即可开始运行

      【讨论】:

      • 感谢它现在正在运行 :)
      猜你喜欢
      • 2010-10-22
      • 1970-01-01
      • 2019-07-27
      • 2019-02-18
      • 2021-05-18
      • 1970-01-01
      • 2018-12-29
      • 2019-01-22
      • 2018-10-28
      相关资源
      最近更新 更多