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

已关闭
aheathershaw1年前创建 · 5 条评论
aheathershaw 评论于 1年前

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 1年前 添加了里程碑 Version 2.1.0
aheathershaw1年前 指派给自己
aheathershaw 添加了标签
bug
1年前
aheathershaw 评论于 1年前
所有者

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 评论于 1年前
所有者

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 评论于 1年前
所有者

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 评论于 1年前
所有者

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 评论于 1年前
所有者
Migrated from https://github.com/andysh-uk/blue-twilight/issues/50
登陆 并参与到对话中。
未选择里程碑
未指派成员
1 名参与者
到期时间

未设置到期时间。

依赖工单

此工单当前没有任何依赖。

正在加载...
取消
保存
这个人很懒,什么都没留下。