crsdir </usr/local/pd-admin2/httpd-2.4/conf/coreruleset-current> not found at /opt/pdadmin/bin/httpd_vhosts.pl line 1490.

  • OS: Debian GNU/Linux 11 (bullseye)

    SE: 8 0.439

    pd-admin: v4.116 (64-bit)


    Beim Update von der SE 8 0.438 auf die SE 8 0.439 erhielt ich folgende Fehlermeldung:

    auch beim Aufruf von /opt/pdadmin/bin/httpd_vhosts.pl erscheint folgende Fehlermeldung:

    Code
    root@XXX:~# /opt/pdadmin/bin/httpd_vhosts.pl
    Writing /usr/local/pd-admin2/httpd-2.4/conf/httpd.conf
    crsdir </usr/local/pd-admin2/httpd-2.4/conf/coreruleset-current> not found at /opt/pdadmin/bin/httpd_vhosts.pl line 1490.
    webserver = <AP24>
    Apache 24 is already selected

    das Problem ist ein fehlerhafter Link:

    Code
    root@XXX:~# ls -ld /usr/local/pd-admin2/httpd-2.4/conf/coreruleset-*
    drwxr-sr-x 2 root root 4096 Nov  4  2021 /usr/local/pd-admin2/httpd-2.4/conf/coreruleset-3.3.0
    drwxr-xr-x 7 root root 4096 Jul 21  2023 /usr/local/pd-admin2/httpd-2.4/conf/coreruleset-3.3.5
    drwxr-xr-x 9 root root 4096 Feb 14 18:17 /usr/local/pd-admin2/httpd-2.4/conf/coreruleset-4.0.0
    lrwxrwxrwx 1 root www    21 Feb 28 20:26 /usr/local/pd-admin2/httpd-2.4/conf/coreruleset-current -> coreruleset-4.0.0-rc2
    lrwxrwxrwx 1 root root   17 Feb 28 20:26 /usr/local/pd-admin2/httpd-2.4/conf/coreruleset-current.pdu-0438 -> coreruleset-3.3.5
    lrwxrwxrwx 1 root root   17 Feb 21 23:56 /usr/local/pd-admin2/httpd-2.4/conf/coreruleset-current.pdu-0439 -> coreruleset-3.3.5
    drwxr-xr-x 2 root root 4096 Feb 21 23:56 /usr/local/pd-admin2/httpd-2.4/conf/coreruleset-custom-plugins
    drwxr-xr-x 2 root root 4096 Feb 21 23:56 /usr/local/pd-admin2/httpd-2.4/conf/coreruleset-factory-plugins

    nach folgenden Befehlen trat der Fehler nicht mehr auf:

    Code
    root@XXX:~# (cd /usr/local/pd-admin2/httpd-2.4/conf/; unlink coreruleset-current; ln -s coreruleset-4.0.0 coreruleset-current;)
    root@XXX:~# /opt/pdadmin/bin/httpd_vhosts.pl
    Writing /usr/local/pd-admin2/httpd-2.4/conf/httpd.conf
    webserver = <AP24>
    Apache 24 is already selected
  • Bei der Reihe 4 wurde der Link coreruleset-current auch nicht angepasst:

    Code
    root@XXX:~# ls -ld /usr/local/pd-admin2/httpd-2.4/conf/coreruleset-*
    drwxr-sr-x 2 root root 4096 Nov 28  2021 /usr/local/pd-admin2/httpd-2.4/conf/coreruleset-3.3.0
    drwxr-xr-x 7 root root 4096 Jul 21  2023 /usr/local/pd-admin2/httpd-2.4/conf/coreruleset-3.3.5
    drwxr-xr-x 9 root root 4096 Feb 14 18:17 /usr/local/pd-admin2/httpd-2.4/conf/coreruleset-4.0.0
    lrwxrwxrwx 1 root root   17 Feb 21 19:10 /usr/local/pd-admin2/httpd-2.4/conf/coreruleset-current -> coreruleset-3.3.5
    drwxr-xr-x 2 root root 4096 Feb 21 19:10 /usr/local/pd-admin2/httpd-2.4/conf/coreruleset-custom-plugins
    drwxr-xr-x 2 root root 4096 Feb 21 19:10 /usr/local/pd-admin2/httpd-2.4/conf/coreruleset-factory-plugins

    bei der Reihe 4 kommt es nicht zum Fehler, da das Ziel weiterhin vorhanden ist.