title: Xgettext is not working on Debian 10 with apache2 and gettext installed
body: <p>Given: debian10 + apache2 + gettext package installed. Having a .php file with some php+html code. I try ot use xgettext to grab the strings for translation from this .php file and save them into .pot file. From the instruction (<a href="https://www.systutorials.com/docs/linux/man/1-xgettext/" rel="nofollow noreferrer">https://www.systutorials.com/docs/linux/man/1-xgettext/</a>):</p>
  <blockquote>
  <p>xgettext testfile.php -o locale/pot/testfile.pot</p>
  </blockquote>
  <p>The &quot;locale&quot; folder and &quot;testfile.php&quot; file are in the same directory. Also &quot;locale/pot&quot; folder is 777 writable, also &quot;testfile.php&quot; is 777 too. When i run from shell (from root) the command, mentioned above, there is no testfile.pot generated. I also tried adding the --debug option, but no information/no errors in shell. What can be the reason?</p>
  <p>UPD: i have just also tried:</p>
  <blockquote>
  <p>xgettext testfile.php -o locale/pot/testfile.pot --debug --force-po</p>
  </blockquote>
  <p>and with --force-po it creates a file &quot;testfile.pot&quot; but without strings for translation - only template with content:</p>
  <pre><code># SOME DESCRIPTIVE TITLE.
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
  # This file is distributed under the same license as the PACKAGE package.
  # FIRST AUTHOR &lt;EMAIL@ADDRESS&gt;, YEAR.
  #
  #, fuzzy
  msgid &quot;&quot;
  msgstr &quot;&quot;
  &quot;Project-Id-Version: PACKAGE VERSION\n&quot;
  &quot;Report-Msgid-Bugs-To: \n&quot;
  &quot;POT-Creation-Date: 2021-08-06 14:51+0300\n&quot;
  &quot;PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n&quot;
  &quot;Last-Translator: FULL NAME &lt;EMAIL@ADDRESS&gt;\n&quot;
  &quot;Language-Team: LANGUAGE &lt;LL@li.org&gt;\n&quot;
  &quot;Language: \n&quot;
  &quot;MIME-Version: 1.0\n&quot;
  &quot;Content-Type: text/plain; charset=CHARSET\n&quot;
  &quot;Content-Transfer-Encoding: 8bit\n&quot;
  </code></pre>
  <p>So still no luck...</p>