• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

PHP throwing "Operation timed out" after 30s

Walter Smith

New Pleskian
Hello,

I'm running Parallel Plesk Panel 11 on Debian 6.0.5 and php v5.3.3.
I'm trying to run this script:
<?php
echo date('h:i:s') . "\n";

// sleep for XX seconds
sleep(55);

echo date('h:i:s') . "\n";
?>

it keeps "loading/connecting" till it reaches 60s (i timed it) and then throws "Operation Timed Out".
only when I give sleep the value of 29 and below it would result in an output.

I tried it on a similar sever configuration but without Parallel Plesk Panel and it ran fine even with sleep(70).

maximum_execution_time is set to 60.

thank you for the help!
 
Try that ...
<?php

ini_set('max_execution_time', 60);

echo date('h:i:s') . "\n";

// sleep for XX seconds
sleep(55);

echo date('h:i:s') . "\n";
?>
 
It timed out still :/

here's the error firefox throwed at me:
Network Error (tcp_error)

A communication error occurred: "Operation timed out"
The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

thanks again!
 
Back
Top