apache Xamp on fedora无法启动

mrphzbgm  于 2023-10-23  发布在  Apache
关注(0)|答案(2)|浏览(122)

我安装了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.

我已经在/opt/lampp/bin和apache中安装了php-7.2.3,其他一切都正常工作。如何启动Apache?

pkwftd7m

pkwftd7m1#

如果你缺少libnsl,可以通过以下命令安装:

sudo dnf install 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*

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

jfewjypa

jfewjypa2#

以下两个命令帮助了我:
1.打开终端,运行以下命令sudo apachectl stop
1.尝试从xammp重新运行你的apache服务器。

相关问题