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

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

    <bug>
          <bug_id>43399</bug_id>
          
          <creation_ts>2022-07-29 15:30:02 +0300</creation_ts>
          <short_desc>Не работает с нашим Apache</short_desc>
          <delta_ts>2026-10-12 08:26:14 +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>certbot-apache</component>
          <version>unstable</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</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="Alexei V. Mezin">alexei.mezin</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>amakeenk</cc>
    
    <cc>cas</cc>
    
    <cc>jurawww</cc>
    
    <cc>lav</cc>
    
    <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>213296</commentid>
    <comment_count>0</comment_count>
    <who name="Alexei V. Mezin">alexei.mezin</who>
    <bug_when>2022-07-29 15:30:02 +0300</bug_when>
    <thetext># certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError(&apos;Could not find configuration root&apos;)


Наше расположение /etc/httpd2, имена конфигрурационных файлов в нем, да и просто наличие apachectl вместо apache2ctl делают данный плагин неработоспособным абсолютно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267139</commentid>
    <comment_count>1</comment_count>
    <who name="Yuri Krutov">jurawww</who>
    <bug_when>2025-06-12 19:48:48 +0300</bug_when>
    <thetext># certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError(&apos;Cannot find Apache executable apache2ctl&apos;)

Когда это исправят?

apache-base и certbot-apache стоят. p11 workstation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267169</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2025-06-13 19:42:51 +0300</bug_when>
    <thetext>Подскажите, неужели вы используете Apache прямо наружу, без nginx перед ним?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267170</commentid>
    <comment_count>3</comment_count>
    <who name="Yuri Krutov">jurawww</who>
    <bug_when>2025-06-13 19:44:37 +0300</bug_when>
    <thetext>(Ответ для Vitaly Lipatov на комментарий #2)
&gt; Подскажите, неужели вы используете Apache прямо наружу, без nginx перед ним?

да. nginx я не осилил.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267172</commentid>
    <comment_count>4</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2025-06-13 21:17:56 +0300</bug_when>
    <thetext>(Ответ для jura12 на комментарий #1)
&gt; # certbot --apache
&gt; Saving debug log to /var/log/letsencrypt/letsencrypt.log
&gt; The apache plugin is not working; there may be problems with your existing
&gt; configuration.
&gt; The error was: NoInstallationError(&apos;Cannot find Apache executable
&gt; apache2ctl&apos;)
&gt; 
&gt; Когда это исправят?
&gt; 
&gt; apache-base и certbot-apache стоят. p11 workstation.

Никогда. Читайте http://altlinux.org/su-</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267173</commentid>
    <comment_count>5</comment_count>
    <who name="Yuri Krutov">jurawww</who>
    <bug_when>2025-06-13 22:09:15 +0300</bug_when>
    <thetext>(Ответ для Andrey Cherepanov на комментарий #4)
&gt; (Ответ для jura12 на комментарий #1)
&gt; &gt; # certbot --apache
&gt; &gt; Saving debug log to /var/log/letsencrypt/letsencrypt.log
&gt; &gt; The apache plugin is not working; there may be problems with your existing
&gt; &gt; configuration.
&gt; &gt; The error was: NoInstallationError(&apos;Cannot find Apache executable
&gt; &gt; apache2ctl&apos;)
&gt; &gt; 
&gt; &gt; Когда это исправят?
&gt; &gt; 
&gt; &gt; apache-base и certbot-apache стоят. p11 workstation.
&gt; 
&gt; Никогда. Читайте http://altlinux.org/su-

я специально добавил в своем посте решетку перед certbot --apache . это означает что я уже в рут. но питон пути все равно не видит. толи он в контейнере, толи какиаято политики работает. 
вот полная последовательность действий:
$ su -
Password:
[root@host-94 ~]# echo $PATH
/root/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/game                                                                                                                                                     s
[root@host-94 ~]# apt-get install apache2 apache2-base
Чтение списков пакетов... Завершено
Построение дерева зависимостей... Завершено
Последняя версия apache2 уже установлена.
Последняя версия apache2-base уже установлена.
0 будет обновлено, 0 новых установлено, 0 пакетов будет удалено и 0 не будет обн                                                                                                                                                       овлено.
[root@host-94 ~]# apt-get install certbot certbot-apache
Чтение списков пакетов... Завершено
Построение дерева зависимостей... Завершено
Следующие НОВЫЕ пакеты будут установлены:
  certbot  certbot-apache
0 будет обновлено, 2 новых установлено, 0 пакетов будет удалено и 0 не будет обновлено.
Необходимо получить 0B/738kB архивов.
После распаковки потребуется дополнительно 3743kB дискового пространства.
Совершаем изменения...
Подготовка...                                                                                                               #################################################################################################### [100%]
Обновление / установка...
1: certbot-2.10.0-alt1                                                                                                      #################################################################################################### [ 50%]
2: certbot-apache-2.10.0-alt1                                                                                               #################################################################################################### [100%]
Завершено.
[root@host-94 ~]# certbot --apache -d jura12.ru
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError(&apos;Cannot find Apache executable apache2ctl&apos;)

также у вас не работает pip. 
# pip install certbot certbot-apache

Installing collected packages: cryptography, PyOpenSSL, josepy, acme, certbot, certbot-apache
  Attempting uninstall: cryptography
    Found existing installation: cryptography 42.0.5
ERROR: Cannot uninstall cryptography 42.0.5, RECORD file not found. You might be able to recover from this via: &apos;pip install --force-reinstall --no-deps cryptography==42.0.5&apos;.

но это другая история.
ALT Workstation 11.0 (Prometheus)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267174</commentid>
    <comment_count>6</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2025-06-13 22:37:43 +0300</bug_when>
    <thetext>Да, Вы правы. В Альте утилиты называются /usr/sbin/apachectl и /usr/sbin/apachectl2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267175</commentid>
    <comment_count>7</comment_count>
    <who name="Alexei V. Mezin">alexei.mezin</who>
    <bug_when>2025-06-13 22:57:59 +0300</bug_when>
    <thetext>(Ответ для Andrey Cherepanov на комментарий #6)
&gt; Да, Вы правы. В Альте утилиты называются /usr/sbin/apachectl и
&gt; /usr/sbin/apachectl2

О чем и было написано в первом сообщении три года назад. Видимо, надо просто убрать из репозитория пакет certbot-apache, если за три года никто даже не попытался его починить.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267176</commentid>
    <comment_count>8</comment_count>
    <who name="Yuri Krutov">jurawww</who>
    <bug_when>2025-06-14 00:13:38 +0300</bug_when>
    <thetext>успешно получил сертификат и инсталлировал. последовательность команд:
ln -s /usr/sbin/apachectl /usr/sbin/apache2ctl
ln -s /etc/httpd2/conf/httpd2.conf /etc/httpd2/conf/apache2.conf
mkdir -p  /etc/httpd2/conf/conf-available
mkdir -p /etc/httpd2/conf/conf-enabled
apt-get install apache2-mod_ssl
a2enmod ssl
certbot --apache-server-root=/etc/httpd2/conf --apache -d jura12.ru
(a2ensite jura12.ru-le-ssl)
systemctl restart httpd2

для патча нудно включить в пакет команды:
ln -s /usr/sbin/apachectl /usr/sbin/apache2ctl
ln -s /etc/httpd2/conf/httpd2.conf /etc/httpd2/conf/apache2.conf
ln -s /etc/httpd2/conf /etc/apache2
apt-get install apache2-mod_ssl</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267181</commentid>
    <comment_count>9</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2025-06-14 13:23:57 +0300</bug_when>
    <thetext>В certbot-apache надо просто поправить пути на наши и не придумывать симлинков.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267186</commentid>
    <comment_count>10</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2025-06-14 21:12:44 +0300</bug_when>
    <thetext>(Ответ для Anton Farygin на комментарий #9)
&gt; В certbot-apache надо просто поправить пути на наши и не придумывать
&gt; симлинков.

Более того, там определяется дистрибутив и согласно этому вызываются команды. Debian/Fedora и т.п.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267187</commentid>
    <comment_count>11</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2025-06-14 21:12:44 +0300</bug_when>
    <thetext>(Ответ для Anton Farygin на комментарий #9)
&gt; В certbot-apache надо просто поправить пути на наши и не придумывать
&gt; симлинков.

Более того, там определяется дистрибутив и согласно этому вызываются команды. Debian/Fedora и т.п.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>291153</commentid>
    <comment_count>12</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2026-07-15 16:26:25 +0300</bug_when>
    <thetext>Проблема актуальна:

# apt-get install apache2-base certbot-apache

# certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError(&apos;Cannot find Apache executable apache2ctl&apos;)

# fd -t x apache /usr/bin /usr/sbin
/usr/sbin/apachectl

# rpm -q apache2-base certbot-apache
apache2-base-2.4.68-alt1.x86_64
certbot-apache-5.6.0-alt1.noarch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>301780</commentid>
    <comment_count>13</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-10-12 08:26:14 +0300</bug_when>
    <thetext>certbot-5.8.0-alt1 -&gt; sisyphus:

Sun Oct 11 2026 Vitaly Lipatov &lt;lav@altlinux.ru&gt; 5.8.0-alt1
- new version 5.8.0
- apache: add ALT Linux httpd2 layout support (closes: #43399)
- add certbot-renew systemd service and timer, disabled by default (closes: #41480)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>