Skip to main content

PHP scripts running more than hour

Comments

9 comments

  • Infopro
    Re: PHP scripts running more than hour, why? Have you asked about this over on the WordPress forums?
    0
  • postcd
    Im asking generally regarding .php scripts, id ont think any php script should have righ to run that long like above mentioned. and it should be controlled by server, thats why im asking there.
    0
  • Infopro
    /https://wordpress.org/support/topic/wp-cron-server-overload Wordpress support is where your answers are though.
    0
  • postcd
    I just wasted my time reading that topic. I said my question is general. I will not do anything about that php script. I want it killed as any php script and ensure limitted runtime for all php scripts, i dont have Cloudlinux and will not use it. I want to achieve that goal with free tools and default cpanel/WHM/Apache server.
    0
  • Infopro
    Good luck with that.
    0
  • postcd
    I found no solution yet. Im not sure for which purpose there is max_execution_time php variable while scripts running much longer time than that Another idea might be to change Apache directive called "Timeout" (WHM/Service configuration/Apache configuration)?
    0
  • cPanelMichael
    Hello :) Have you considered using a third-party application such as LFD that can kill processes running over a set period of time? cPanel/WHM will not automatically kill any PHP processes based on resource usage. Thank you.
    0
  • chiareu
    Hmm understand, so the server listen to the max_execution_time? and stop executing the script but script it's kept alive for some reason? On my server there are a lot of php processes running for over 700000 seconds :) I don't understand what happening there.
    0
  • cPanelMichael
    On my server there are a lot of php processes running for over 700000 seconds :) I don't understand what happening there.

    Hello :) Have you considered a third-party application such as Cloud Linux? Information on Cloud Linux is available at: CloudLinux Thank you.
    0

Please sign in to leave a comment.