apache - Fedora 上的 Xamp 无法启动
问题描述
我安装了 xampp 并且它工作正常,直到我尝试启动 xampp 时开始收到以下错误:
XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility librar y for your system.
在注释了/opt/lampp/lampp
引用此错误的代码行之后,我现在在启动 xampp 时遇到了一个新错误/opt/lampp/lampp start
:
Starting XAMPP for Linux 7.2.3-0...
XAMPP: Starting Apache...fail.
httpd: Syntax error on line 522 of /opt/lampp/etc/httpd.conf: Syntax error on line 10 of /opt/lam
pp/etc/extra/httpd-xampp.conf: Cannot load modules/libphp7.so into server: libnsl.so.1: cannot op
en shared object file: No such file or directory
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
我已经php-7.2.3
安装了/opt/lampp/bin
apache,其他一切都在工作之前。如何让 Apache 启动?
解决方案
看来您缺少 libnsl,请通过以下命令安装它:
# sudo dnf 安装 libnsl
如果这不起作用,您可以手动下载它:
visit https://pkgs.org/
in the search box (pkgs.org of course) type libnsl.so.1 and choose the appropriate OS. The version shown might be higher e.g libnsl-2.28-9.fc29.x86_64.rpm, but it doesn't matter, the file needed is also included in this very package.
in the terminal, navigate to the directory where the .rpm was downloaded.
then type the following command to install it:
# sudo rpm libnsl-2.XX-X.fc29.x86_64.rpm
完成后,一切都应该正常工作。
推荐阅读
- javascript - 未捕获的格式错误的表格行,未定义单元格。无法在数据表中生成 pdf
- java - 如何将数据从网页发送到 XML,然后再发送到 SOAP Web 服务
- node.js - 从 localhost 网站执行 linux 命令
- angular - 如何通过 Angular 4 Web 应用程序访问 hperledger composer REST api
- c# - 发送文件 tcp/ip
- asp.net-mvc - 将文件流式传输到 MVC 控制器时无法捕获 HttpWebRequest 异常
- security - Thales HSM 生成 thales 格式 05(ISO 9564-1 格式 1)的 pinblock,无需 pan 并使用 zpk 加密
- go - 修改结构值给定的字段名称和值映射
- dart - 颤振应用程序缓慢
- ruby-on-rails - 将参数从 Json Httparty 传递给 ostruct