Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Debug php process

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

  1. Sani

    Sani Registered

    Mar 22, 2010
    Likes Received:
    Trophy Points:

    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

    Mar 26, 2010
    Likes Received:
    Trophy Points:
    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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice