Apache2 segfault due to wide characters in 00_nameserver.conf

  • I have a bug with apache restart and need your help.


    Server: VPS with Debian Jessie
    i-mscp: 1.3.14


    When I try to restart my apache, there are some error message

    Code
    1. Feb 23 06:25:04 server1 systemd[1]: Reloading LSB: Apache2 web server.Feb 23 06:25:04 server1 apache2[20905]: Reloading web server: apache2 failed!Feb 23 06:25:04 server1 apache2[20905]: The apache2 configtest failed. Not doing anything. ... (warning).Feb 23 06:25:04 server1 apache2[20905]: Output of config test was:Feb 23 06:25:04 server1 apache2[20905]: apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 20 of /etc/apache2/sites-enabled/00_names...ne too longFeb 23 06:25:04 server1 apache2[20905]: Action 'configtest' failed.Feb 23 06:25:04 server1 apache2[20905]: The Apache error log may have more information.Feb 23 06:25:04 server1 systemd[1]: apache2.service: control process exited, code=exited status=1Feb 23 06:25:04 server1 systemd[1]: Reload failed for LSB: Apache2 web server.Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.


    So I found the file /etc/apache2/sites-enabled/00_nameserver.conf and it's realy contain lof ot "interesting" char in line 20 :dodgy:


    Code
    1. # Prevent www-data to access the entire file system and set default
    2. #A<U+0083>Â<U+0083>A<U+0082>Â<U+0083>A<U+0083>Â<U+0082>A<U+0082>Â<U+0083>A<U+0083>Â<U+0083>A<U+0082>Â<U+0082>A<U+0083>Â<U+0082>A<U+0082>Â<U+0083>A<U+0083>Â<U+0083>A<U+0082>Â<U+0083>A<U+0083>Â<U+0082>A<U+0082>Â<U+0082>A<U+0083>Â<U+0083>A<U+0082>Â<U+0082>A<U+0083>Â<U+0082>A<U+0082>Â<U+0083>A<U+0083>Â<U+0083>A<U+0082>Â<U+0083>A<U+0083>Â<U+0082>A<U+0082>Â

    I can't modify this file, and can't copy it to other folder. <X
    Can I regenerate this file somehow with the i-mscp panel?
    Now I can't restart/reload my apache and new client's sites not working.


    Thank you for your suggestions!

    i-MSCP 1.5.3
    Plugins (latest version): ClamAV, CronJobs, DomainAutoApproval, LetsEncrypt, OpenDKIM, PanelRedirect, PhpSwitcher, PolicydSPF, Postgrey, RecaptchaPMA, RoundcubePlugins, SpamAssasin, WHMCS

  • i-mscp: 1.3.14

    This bug has been fixed in i-MSCP version 1.3.15. It is due to wide characters inserted in the 00_nameserver.conf, leading to segfault.


    See https://github.com/i-MSCP/imscp/blob/1.3.x/CHANGELOG#L31


    Please, update to latest i-MSCP version (1.3.16).
    Thread closed.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206