Bug 51191 - Некорректное выделение прав на папку webgrind
Summary: Некорректное выделение прав на папку webgrind
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: webgrind (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Vitaly Lipatov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-19 11:00 MSK by Владислав Елисеев
Modified: 2024-08-19 11:00 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Владислав Елисеев 2024-08-19 11:00:33 MSK
Версия пакета:
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 "/var/www/webapps"

```

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

```

    <Directory "/var/www/webapps">
               # Summary: Configure for html documents in DocumentRoot
               # Requires: Directory-html
               Include conf/include/Directory_html_default.conf
               Require all granted
       </Directory>

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

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

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

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

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

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


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

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