Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jdsilvaa's avatar

Issue with proc_open and Laravel 10

Hello everyone. I currently have an issue with proc_open, I have a shared hosting so proc_open is not available but the is required by Spatie\Flare and I can’t change it. I’ve already tried to disable it in the config\flare.php but it didn’t work. I’ve made this change in Laravel 8 but in Laravel 10 it’s not working. Does anybody have a solution? Thank you

0 likes
1 reply
LaryAI's avatar
Level 58

Unfortunately, if your shared hosting environment does not have proc_open available and you cannot change it, there is no direct solution to use Spatie\Flare in Laravel 10.

However, you can try using a workaround by creating a custom implementation of the functionality that Spatie\Flare provides using alternative methods that are available in your shared hosting environment.

For example, if Spatie\Flare uses proc_open to execute shell commands, you can try using alternative functions like exec or shell_exec to achieve similar functionality.

Here's an example of how you can modify the code to use exec instead of proc_open:

// Before
$process = proc_open($command, $descriptors, $pipes);

// After
$output = [];
exec($command, $output);

Keep in mind that this is just a general example, and you will need to modify the code according to your specific use case and requirements. Additionally, this workaround may not provide the exact same functionality as Spatie\Flare, but it can help you achieve similar results in a shared hosting environment without proc_open.

If this workaround is not feasible for your situation, you may need to consider alternative error monitoring solutions that do not rely on proc_open or switch to a hosting environment that supports proc_open.

Please or to participate in this conversation.