ErrorException: exec() has been disabled for security reasons #50

Закрыто
открыта 2018-07-27 23:36:09 +01:00 aheathershaw · комментариев: 5
aheathershaw прокомментировал(а) 2018-07-27 23:36:09 +01:00
Владелец

LNT00:

ErrorException
exec() has been disabled for security reasons

Getting the error when opening /admin.
Because of this the app is unusable on shared hosting where usually exec() is disabled.

[LNT00](https://github.com/LNT00): ErrorException exec() has been disabled for security reasons Getting the error when opening /admin. Because of this the app is unusable on shared hosting where usually exec() is disabled.
aheathershaw добавил(а) к этапу Version 2.1.0 2018-07-27 23:36:09 +01:00
aheathershaw назначил(а) на себя 2018-07-27 23:36:09 +01:00
aheathershaw добавил(а) метку
bug
2018-07-27 23:36:09 +01:00
aheathershaw прокомментировал(а) 2018-07-27 23:36:27 +01:00
Автор
Владелец

Ah OK - it's been a long time since I've used shared hosting, so appreciate your feedback on this!

exec() is used to get the server's OS version to display on the admin dashboard.

Here's the offending line:

010e847835/app/Http/Controllers/Admin/DefaultController.php (L89)

If you remove the call to exec - e.g.:

'os_version' => 'My OS version',

does this allow you to get in?

Ah OK - it's been a long time since I've used shared hosting, so appreciate your feedback on this! `exec()` is used to get the server's OS version to display on the admin dashboard. Here's the offending line: https://github.com/andysh-uk/blue-twilight/blob/010e847835ad629620514685a199b1f7bc47eba5/app/Http/Controllers/Admin/DefaultController.php#L89 If you remove the call to exec - e.g.: ` 'os_version' => 'My OS version',` does this allow you to get in?
aheathershaw прокомментировал(а) 2018-07-28 09:41:17 +01:00
Автор
Владелец

LNT00:

I created a ticket for my hosting support and they seem to have solved it without changing this.

[LNT00](https://github.com/LNT00): I created a ticket for my hosting support and they seem to have solved it without changing this.
aheathershaw прокомментировал(а) 2018-07-28 09:41:30 +01:00
Автор
Владелец

Excellent! No worries, I'll keep this open though to reflect that we shouldn't really rely on exec() always being available.

Excellent! No worries, I'll keep this open though to reflect that we shouldn't really rely on `exec()` always being available.
aheathershaw прокомментировал(а) 2018-07-28 09:41:40 +01:00
Автор
Владелец

This will be released in the upcoming 2.1.0-beta.4 release

This will be released in the upcoming 2.1.0-beta.4 release
aheathershaw прокомментировал(а) 2018-07-28 09:42:03 +01:00
Автор
Владелец
Migrated from https://github.com/andysh-uk/blue-twilight/issues/50
aheathershaw закрыл(а) эту задачу 2018-07-28 09:42:04 +01:00
Войдите, чтобы присоединиться к обсуждению.
Нет меток
bug
enhancement
feature
invalid
task
wip
Нет этапа
Нет назначенных лиц
1 участников
Уведомления
Срок выполнения
Срок действия недействителен или находится за пределами допустимого диапазона. Пожалуйста, используйте формат 'гггг-мм-дд'.

Срок выполнения не установлен.

Зависимости

Зависимостей нет.

Ссылка: aheathershaw/blue-twilight#50
Описание отсутствует.