Apache fedora上的Xamp无法启动

Apache fedora上的Xamp无法启动,apache,xampp,fedora,lampp,Apache,Xampp,Fedora,Lampp,我安装了xampp,它一直工作正常,直到我每次尝试启动xampp时都出现以下错误: XAMPP目前仅作为32位应用程序可用。请使用32位兼容库 适用于您的系统。 在注释了引用此错误的/opt/lampp/lampp中的代码行之后,我现在在使用/opt/lampp/lampp start启动xampp时遇到一个新错误: Starting XAMPP for Linux 7.2.3-0... XAMPP: Starting Apache...fail. httpd: Syntax error on

我安装了xampp,它一直工作正常,直到我每次尝试启动xampp时都出现以下错误:

XAMPP目前仅作为32位应用程序可用。请使用32位兼容库
适用于您的系统。

在注释了引用此错误的
/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.

我已经在
/opt/lampp/bin
和apache中安装了
php-7.2.3
,之前所有的东西都可以工作。如何启动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


完成后,一切正常。

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


完成后,一切都应该正常工作。

您注释了哪行代码?显示您的配置。错误日志还指出您在“/opt/lampp/etc/httpd.conf”和
/opt/lam pp/etc/extra/httpd xampp.conf
方面有问题。似乎您对libnsl.so.1有问题,您注释了哪行代码?显示您的配置。错误日志还指出您在“/opt/lampp/etc/httpd.conf”和
/opt/lam pp/etc/extra/httpd xampp.conf
方面有问题。似乎您对libnsl.so.1有问题