fedora上的Xamp无法启动

时间:2018-08-02 15:02:08

标签: apache xampp fedora lampp

我安装了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中引用此错误的代码行之后,现在在使用/opt/lampp/lampp start启动xampp时出现新错误:

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和apache中安装了/opt/lampp/bin,之前其他所有功能都在工作。如何启动Apache?

1 个答案:

答案 0 :(得分:0)

似乎您缺少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

完成后,一切都会正常运行。