airpwn / sams2

Automatically exported from code.google.com/p/sams2
GNU General Public License v2.0
0 stars 0 forks source link

(Trac:522) sams не может запустить свои shell скрипты #515

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(Trac:522) Originaly reported by first-leon <first-leon@yandex.ru> on 
2010-09-29 20:41:40

При авторизации в WEB интерфейсе sams в логах 
apache среди прочего вижу следующее:

{{{
...
[Wed Sep 29 23:20:57 2010] [error] [client 10.8.0.223] PHP Notice:  Undefined 
offset: 3 in /usr/share/sams2/src/configtray.php on line 48, referer: 
http://g-deb-virt-02.uni-altai.ru/sams2/tray.php?show=exe&function=configtray&fi
lename=configtray.php
sh: /fsusage: not found
sh: /fsusage: not found
...
}}}

В конфиге /etc/sams.conf путь прописан верно:

{{{
SAMSPATH=/usr/share/sams2
}}}

По всей видимости не правильно 
отрабатывает функция ExecuteShellScript в tools.php.

Original issue reported on code.google.com by bl...@nixdev.net on 5 Jun 2011 at 8:16

GoogleCodeExporter commented 9 years ago
Commented by blaze@nixdev.net on 2010-10-02 18:55:34:

Причина сего в том, что рекомендуемое 
значение save_mode для php = On.
Но при таком раскладе нужно указать 
значение safe_mode_exec_dir = /usr/share/sams2/bin.
Указал - все заработало (скрипты по крайней 
мере выполнятся стали).
То есть про safe_mode_exec_dir нужно упомянуть там 
где и про save_mode (в мастере установки).

Original comment by bl...@nixdev.net on 5 Jun 2011 at 8:16

GoogleCodeExporter commented 9 years ago
Commented by chemerik@mail.ru on 2010-10-04 23:29:43:

Спасибо, в мастер установки добавлена 
проверка параметра safe_mode_exec_dir.
Пофиксено в rev. 889

Original comment by bl...@nixdev.net on 5 Jun 2011 at 8:16