<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>41426</bug_id>
          
          <creation_ts>2021-11-24 13:07:47 +0300</creation_ts>
          <short_desc>Can&apos;t locate config.ph</short_desc>
          <delta_ts>2024-09-19 12:10:04 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>host2cat</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="serjigva@altlinux.org">serjigva</assigned_to>
          <cc>mike</cc>
    
    <cc>serjigva</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>205263</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2021-11-24 13:07:47 +0300</bug_when>
    <thetext>По инструкции https://www.altlinux.org/СКФ

# apt-get install squid host2cat c-icap opendbx
# for i in host2cat c-icap squid httpd2; do systemctl enable --now $i; done

В браузере открываю ссылку &quot;http://&lt;IP&gt;/cgi-bin/login.cgi&quot; и получаю ошибку сервера.

В логах /var/log/httpd2/error_log такая ошибка:

AH01215: Can&apos;t locate config.ph in @INC (did you run h2ph?) (@INC contains: /usr/local/lib64/perl/5.34 /usr/local/share/perl/5.34 /usr/lib64/perl5 /usr/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /etc/perl5 /usr/lib/perl5/vendor_perl) at /var/www/cgi-bin/login.cgi line 7.: /var/www/cgi-bin/login.cgi

Файл config.ph лежит рядом с login.cgi в каталоге /var/www/cgi-bin и подключается следующим образом: require &apos;config.ph&apos;;
Если поменять на require &apos;./config.ph&apos;;, то ошибки нет, web интерфейс открывается.
Однако после логина снова ошибка сервера. На этот раз в файле /var/www/cgi-bin/main.cgi с такой же проблемой.

Аналогично данный конфиг подключается в скриптах role.cgi, user.cgi и admin.cgi.

Версия пакета: host2cat-1.01-alt7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>251808</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-09-19 12:10:04 +0300</bug_when>
    <thetext>host2cat-1.01-alt8 -&gt; sisyphus:

 Thu Sep 19 2024 Andrey Cherepanov &lt;cas@altlinux&gt; 1.01-alt8
 - Fix include config.ph (ALT #41426).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>