LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-13-2012, 08:11 AM   #1
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
Question Finding out what php scripts might be run by Apache Child Process


Hi All,

I'm looking to try and find out somehow what PHP scripts/code might be getting executed by an currently running and never ending apache child processes.

I can see some CHILD Apache PIDs that have stayed in a never ending state working on the same request. Using lsof -p {pid} I can see the file descriptors open and the fact its got stuck waiting on a connection the PHP has opened too an external IPv4 resource, however listed in the fd of lsof doesn't tell me the PHP script that are actually open and being executed.

Looking at /proc/[PID] of the apache child processes again, hoping to try and find something and I've found nothing particularly useful to what I need in there either.

I've connected to the PID with full strace -ttt -s0 -p [PID] and again i can see it looping on asking for the time which is fine, but still not helping me find out what actual piece of PHP might be running still within the child PID.

I can't really think of anything else, I could try tcpdump and listening in on the established connection it still has open with the external web resources, but I will assume that its going to tell me nothing again about the PHP script itself. I know i can clear the build up of child processes simply by restarting apache daemon. However I'd prefer to try and find out what / where the problem is being caused first.

Any ideas anyone further to what i've already tried?
Thanks for any help,
Best,

EDIT: Its Debian Linux, Apache2.4.x using mod_php

Last edited by helptonewbie; 07-13-2012 at 09:48 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Permissions creating a socket from a child process of Apache Touch Linux - Software 0 05-26-2011 07:33 AM
Under which circumstances a child process creates another child process using fork? mitsulas Programming 3 12-08-2009 08:16 AM
Apache 2.2.3 - unknown Apache process child ittec Linux - Server 1 06-03-2008 06:32 AM
Run php scripts in terminal gpm1982 Programming 3 04-30-2008 03:20 AM
is there way to run php scripts without having any server os...... kratosal Linux - Newbie 5 04-06-2008 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration