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

CyrusGreat's avatar

How to run artisan commands on a shared host

so the question is simple, I tried numerous ways to run artisan commands on a shared host like host gator but nothing works, in my latest attempt I came so close but got to this error after defining a CRON job on Laravel scheduler.

The Process class relies on proc_open, which is not available on your PHP installation. at /home3/boschstore/laravel/vendor/symfony/process/Process.php:147 

now I want to make jobs and failed_jobs in order to queue emails with an attached file which takes a lot of time to execute and basically kills UX of the website. so I would appreciate if someone could help me out. needless to say that I don't have ssh access

thanks in advance

0 likes
4 replies
bobbybouwmann's avatar

Most shared hosting environments are not setup to host application that run cronjobs and use queues. A VPS is actually build for it, since you can configure it yourself.

Right now your PHP setup is missing some modules and therefore it can't run command line stuff. You should contact your hosting provider to see if they can do anything for you or you need to make switch ;)

1 like
CyrusGreat's avatar

@bobbybouwmann they said this file is closed for security purposes. I was wondering if anyone knows any work around for this

bobbybouwmann's avatar

There is no work around for it. You either need to update your PHP configuration or move to something else!

1 like
andreich1980's avatar

It's just fantabulous.

I found an option in my hosting panel: disable_functions with value exec,shell_exec,system,passthru,popen,proc_open,leak,listen,chgrp,closelog,debugger_off,debugger_on,define_sys. So I just removed proc_open and saved it. It works now :)

Please or to participate in this conversation.