The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Process

Discussion in 'General Discussion' started by baratman, Apr 11, 2010.

  1. baratman

    baratman Registered

    Joined:
    Apr 11, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I made the mistake of running this code from an exec command.

    exec('/usr/local/bin/php test.php');

    This is test.php

    $iteration = 0;
    while($iteration < 100)
    {
    echo " iteration $iteration ";
    }

    And now it's running.

    I want to stop it, so what should I do?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    In WHM, go to System Health and click on "Show Current CPU Usage"

    This lists all scripts and applications running on your server. When you find this script, click the number in the leftmost column (this is the process identifier). This brings you to a new page in WHM. Click on "Kill" next to "Kill Process" to forcefully terminate this script.
     
Loading...

Share This Page