You can change the default php configuration (https://www.php.net/manual/fr/function.set-time-limit.php)
But you can do your process using queue https://laravel.com/docs/7.x/queues
And may be you can improve your code to be faster, using less memory
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am executing File that fills table in the database, After finishing exection I am headering to another file to do the same and fills another table and so on..
I want to do this may be on 30 file to affect on 30 tables in database..
After 3 or 4 files 504 Gate way Time-out Error appears.
Is there a solution to make php run any time I want ( not just 60s ) ? How can I solve this...
You can change the default php configuration (https://www.php.net/manual/fr/function.set-time-limit.php)
But you can do your process using queue https://laravel.com/docs/7.x/queues
And may be you can improve your code to be faster, using less memory
Please or to participate in this conversation.