Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I solve this problem of installation xampp on fedora?

When I run xampp on fedora this error is showing up on application log

Starting Apache Web Server... Exit code: 8 Stdout: apache config test fails, aborting Stderr: httpd: Syntax error on line 522 of /opt/lampp/etc/httpd.conf: Syntax error on line 10 of /opt/lampp/etc/extra/httpd-xampp.conf: Cannot load modules/libphp7.so into server: libnsl.so.1: cannot open shared object file: No such file or directory

can anyone tell me how can I solve this? enter image description here

like image 678
Ahmed Malek Avatar asked Apr 26 '19 12:04

Ahmed Malek


People also ask

Why localhost is not working in XAMPP?

Resolve Apache port conflicts by changing your listening port to 8080. Include the listening port in the address when accessing localhost. Change your MySQL port to 3307 if another application is blocking the default port 3306.

How do you check XAMPP is installed or not?

Open the XAMPP control panel and start the apache module. Open your browser and type localhost/Test/test. php in the URL tab. If your browser prints 'XAMPP Server runs successfully', it means XAMPP is successfully installed and correctly configured.

Why Apache XAMPP Cannot start?

This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Check the "/xampp/apache/logs/error. log" file and the Windows Event Viewer for more clues.


1 Answers

it seems you're missing libnsl. install it through this command:

sudo dnf install libnsl

In case this doesn't work you can then download it manually:

  1. Visit https://pkgs.org/

  2. 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.

  3. In the terminal, navigate to the directory where the .rpm was downloaded.

  4. Type the following command to install it:

    sudo rpm libnsl-2.XX-X.fc29.x86_64.rpm
    

Upon completion everything should be working fine.

like image 138
woollenhat Avatar answered Nov 05 '22 09:11

woollenhat