I have the follow unresolved problem regarding PHP and Apache. I have a long running script that ALWAYS return 504 Gateway Timeout after 30 seconds running. However, if I check in
/server-process, I can see that the request is still going on. Before being suggested, I'm not expecting it to be a cron job as this long process should finish just under a minute and for current situation, I needed it to run inside browser. Here's what I've set the server:
/etc/apache2/apache2.conf - Timeout 600 /etc/php/7.0/apache2/php.ini - max_execution_time = 300 - max_input_time = 300
Here's my server info:
root@izzystorage-core:~# lsb_release -r Release: 16.04 root@izzystorage-core:~# apache2 -v Server version: Apache/2.4.18 (Ubuntu) Server built: 2017-09-18T15:09:02 root@izzystorage-core:~# php -v PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.0.22-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies
Do you guys have any Idea what's going on with my server?
- I don't have
- This is only one server without load balancer in between