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

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

    <bug>
          <bug_id>51191</bug_id>
          
          <creation_ts>2024-08-19 11:00:33 +0300</creation_ts>
          <short_desc>Некорректное выделение прав на папку webgrind</short_desc>
          <delta_ts>2024-08-19 11:00:33 +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>webgrind</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Владислав Елисеев">eliseevva</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>250206</commentid>
    <comment_count>0</comment_count>
    <who name="Владислав Елисеев">eliseevva</who>
    <bug_when>2024-08-19 11:00:33 +0300</bug_when>
    <thetext>Версия пакета:
webgrind-1.9.3-alt1
Платформа:
Alt Workstation 10.2 обновленная до Sisyphus
Шаги к воспроизведению:
1) # apt-get install php8.2 php8.2-xdebug php8.2-fpm-fcgi  webgrind apache2-mod_php8.2

Настроить webgrind:
Редактируем конфигурацию apache в файле /etc/httpd2/conf/sites-enabled/000-default.conf:

```

    DocumentRoot &quot;/var/www/webapps&quot;

```

В этом же файле редактируем:

```

    &lt;Directory &quot;/var/www/webapps&quot;&gt;
               # Summary: Configure for html documents in DocumentRoot
               # Requires: Directory-html
               Include conf/include/Directory_html_default.conf
               Require all granted
       &lt;/Directory&gt;

```
# systemctl start httpd2.service php8.2-fpm.service

# vim /etc/php/8.2/cli/php.ini

Добавить в файл:
[xdebug]
xdebug.mode = profile
xdebug.output_dir = &quot;/&quot;
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 1

# vim /var/www/webapps/webgrind/config.php

Поменять значение строк:

static $storageDir = &apos;/var/www/webapps/webgrind&apos;;
static $profilerDir = &apos;/&apos;
static $pythonExecutable = &apos;/usr/bin/python3&apos;;


# mkdir /var/tmp/xdebug &amp;&amp; chown apache2:apache2 /var/tmp/xdebug &amp;&amp; chmod 775 /var/tmp/xdebug

Зайти на веб-страницу http://localhost/webgrind
Ожидаемый результат: Открывается главная страница webgrind без ошибок.
Реальный результат: На главной странице ошибка &quot;Webgrind $storageDir does not exist or is not writeable: /var/www/webapps/webgrind/&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>