Linux – PHP script times out after exactly 60 seconds or browser prompts to download file

linuxPHPredhattimeout

We have a Redhat Centos 5.5 system which has a php/mysql application.

After a server restart, we've been seeing some of the 'longer' scripts time out exactly after 60 seconds OR the browser prompts the user to download the php file (which is empty).

Most php scripts are functioning fine, but some are not.

There has been no code change, only the server reboot.


Edit1

phpinfo() shows "Loaded Modules" as:

core prefork http_core mod_so mod_auth_basic mod_auth_digest mod_authn_file mod_authn_alias mod_authn_anon mod_authn_dbm mod_authn_default mod_authz_host mod_authz_user mod_authz_owner mod_authz_groupfile mod_authz_dbm mod_authz_default util_ldap mod_authnz_ldap mod_include mod_log_config mod_logio mod_env mod_ext_filter mod_mime_magic mod_expires mod_deflate mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy mod_proxy_balancer mod_proxy_ftp mod_proxy_http mod_proxy_connect mod_cache mod_suexec mod_disk_cache mod_file_cache mod_mem_cache mod_cgi mod_version mod_perl mod_php5 mod_proxy_ajp mod_python mod_ssl

Best Answer

May be mysql (in case on a remote server is breaking) or someother service on CentOS is killing the thread. I remember SE linux tobe one of the culprit.