centos8 下安装xampp保错Cannot load modules/mod_perl.so into server解决方案:
命令行输入:
sudo dnf install libnsl

httpd: Syntax error on line 522 of /opt/lampp/etc/httpd.conf: Syntax error on line 13 of /opt/lampp/etc/extra/httpd-xampp.conf: Cannot load modules/mod_perl.so into server: libnsl.so.1: cannot open shared object file: No such file or directory

ps:使服务器可以被外部地址访问,修改Xampp的两个配置文件

# vim etc/httpd.conf
<Directory />
    AllowOverride All
    Order allow,deny
    Allow from all
    #Require all denied
</Directory>
# vim etc/extra/httpd-xampp.conf
# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig
    #AllowOverride AuthConfig Limit
    Require all granted
    #Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>

原文参考:http://sotarylen.com/linuxcentos-8-2%E4%B8%8B%E5%AE%89%E8%A3%85xampp%E9%9B%86%E6%88%90%E7%8E%AF%E5%A2%83%E5%8F%8A%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95.html