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

Cerrada
abierta hace 1 año por aheathershaw · 5 comentarios

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 ha añadido esto al hito Version 2.1.0 hace 1 año ' issues.change_milestone_at=`modificó el hito de %!s(MISSING) a %!s(MISSING) %!s(MISSING)
aheathershaw auto asignado este hace 1 año
aheathershaw ha añadido la etiqueta
bug
hace 1 año
aheathershaw comentado hace 1 año
Propietario

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 comentado hace 1 año
Propietario

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 comentado hace 1 año
Propietario

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 comentado hace 1 año
Propietario

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 comentado hace 1 año
Propietario
Migrated from https://github.com/andysh-uk/blue-twilight/issues/50
Inicie sesión para unirse a esta conversación.
Sin Milestone
No asignados
1 participantes
Fecha de vencimiento

Sin fecha de vencimiento.

Dependencias

Esta incidencia actualmente no tiene ninguna dependencia.

Cargando…
Cancelar
Guardar
Aún no existe contenido.