Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    1

    Default Debug php process

    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. #2
    Member
    Join Date
    Mar 2010
    Posts
    39

    Default

    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
    Last edited by m4rc3; 03-26-2010 at 09:12 PM.

Similar Threads & Tags
Similar threads

  1. Replies: 32
    Last Post: 03-19-2012, 04:46 AM
  2. PHP Warning: PHP Startup: Unable to load dynamic library no-debug-non-zts
    By jdilegge in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 03-06-2012, 06:25 AM
  3. how to debug PHP script with "Premature end of script headers"
    By SoftDux in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-19-2007, 08:57 AM
  4. WHM Debug?
    By 7thDsites in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-08-2007, 11:18 PM
  5. Anyone know how to debug this intrusion.
    By DWHS.net in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-15-2003, 01:08 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube