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

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

    <bug>
          <bug_id>48856</bug_id>
          
          <creation_ts>2023-12-19 11:15:27 +0300</creation_ts>
          <short_desc>Ошибка &quot;a2enmode: команда не найдена&quot; при установке</short_desc>
          <delta_ts>2023-12-19 12:17:13 +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>glpi</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="zidex@altlinux.org">zidex</assigned_to>
          <cc>rider</cc>
    
    <cc>zidex</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>239203</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2023-12-19 11:15:27 +0300</bug_when>
    <thetext>Версия пакета: glpi-10.0.11-alt1

Шаги воспроизведения: 
# apt-get install glpi glpi-apache2

Получаемый результат:

34: glpi-apache2-10.0.11-alt1                                                                                                                                       
/root/tmp/rpm-tmp.3tphmz: строка 2: a2enmode: команда не найдена
Site glpi installed;
        run service httpd2 condreload to fully enable.
35: php8.2-fpm-fcgi-8.2.13-alt1                                                                                                                                     
Завершено.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>239204</commentid>
    <comment_count>1</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2023-12-19 11:17:04 +0300</bug_when>
    <thetext>Не надо в post-скрипте звать a2enmode или надо поставить зависимость таким образом, что бы a2enmode появился в системе до запуска post скрипта.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>239211</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2023-12-19 11:41:42 +0300</bug_when>
    <thetext>Следовательно, после установки сервис apache не запускается:

systemd[1]: Starting httpd2.service - The Apache2 HTTP Server...
sh[12477]: AH00526: Syntax error on line 11 of /etc/httpd2/conf/sites-enabled/glpi.conf:
sh[12477]: Invalid command &apos;RewriteEngine&apos;, perhaps misspelled or defined by a module not included in the server configuration
systemd[1]: httpd2.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: httpd2.service: Failed with result &apos;exit-code&apos;.
systemd[1]: Failed to start httpd2.service - The Apache2 HTTP Server.

Если выполнить команду:

# a2enmod rewrite

то запускается успешно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>239216</commentid>
    <comment_count>3</comment_count>
    <who name="zidex@altlinux.org">zidex</who>
    <bug_when>2023-12-19 11:52:55 +0300</bug_when>
    <thetext>В Сизиф отправлена версия 10.0.11-alt2 с исправлением
task #336741</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>239217</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2023-12-19 11:54:31 +0300</bug_when>
    <thetext>(Ответ для zidex@altlinux.org на комментарий #3)
&gt; В Сизиф отправлена версия 10.0.11-alt2 с исправлением
&gt; task #336741

И потом в p10, пожалуйста.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>239218</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2023-12-19 11:54:44 +0300</bug_when>
    <thetext>glpi-10.0.11-alt2 -&gt; sisyphus:

 Tue Dec 19 2023 Pavel Zilke &lt;zidex@altlinux&gt; 10.0.11-alt2
 - Fix spec (ALT #48856)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>239223</commentid>
    <comment_count>6</comment_count>
    <who name="zidex@altlinux.org">zidex</who>
    <bug_when>2023-12-19 12:17:13 +0300</bug_when>
    <thetext>Для p10 создан такск #336743</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>