I am running some php installation script from a browser and it's been running for a quite long time. Is there a way to check if it is still running on a server or timed out already? The browser is still showing loading spinner, but it is not a reliable progress indicator I suppose.
(Apache webserver under Linux)
mod_status/Server-Status should do the trick.
Uncomment the above lines in your httpd.conf,
Then hit yoursite-or-ipaddress/server-status.
You should see a list of all the requests apache is working on, as well as that basic status of each one.
If I'm not mistaken, the browser will run until the script is finished either by timeout, by memory exhaustion, or any other method that would kill the script on the server. I have some data processing scripts that run for 30 minutes or so. There nothing that I know of that would cause the browser state to freeze thinking the script is still loading after it has timed out on the server.
If you still want to monitor the script, the only way that I know of doing this would be to execute the script in the background, and check to see if the process is still running every few seconds. Since php isn't asynchronous like Java, it takes some hacking to get a function like this to work.
You would want to execute the script in the background:
Then, you can use a function like this to check if a process is still running.
Then you would use