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.

Debug php process

Discussion in 'General Discussion' started by Sani, Mar 22, 2010.

  1. Sani

    Sani Registered

    Joined:
    Mar 22, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi

    I am getting some problem on my vps.

    On one of the domains, php script is giving request time out error due to going into an infinite loop. How could I debug or trace which files exactly are causing php loop?? (Or any info about it)

    The vps itself is working fine, no problem with any other account. It's just one account that is giving headache.

    when I do ps -aux | grep username
    username 14481 0.0 0.3 214111 12422 ? S 05:52 0:00 lsphp5
    username 14482 0.0 0.3 214111 12455 ? S 05:55 0:00 lsphp5
    username 14483 0.0 0.3 214111 12466 ? S 05:57 0:00 lsphp5
    .......
    I can see 10 process from that user and their PIDs. How can I check which files/functions are causing the problwm.

    I am using cPanel/WHM with LiteSpeed 4.10 and Suhosin v0.9.29

    (I am sorry if this is not related here. But I will really appreciate your help and guidance)
     
  2. m4rc3

    m4rc3 Active Member

    Joined:
    Mar 26, 2010
    Messages:
    39
    Likes Received:
    2
    Trophy Points:
    8
    you could try running the php script via command line using strace to trace it's every move.

    something like

    strace php /path/to/script
     
    #2 m4rc3, Mar 26, 2010
    Last edited: Mar 26, 2010
Loading...

Share This Page