Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I inherited a web server running Apache/PHP on a CentOS 5 machine. This is a hosted server so I am still familiarizing myself with the environment. There is really no user activity on this machine, yet in "top", I constantly see php processes popping up and closing. While the php process is alive, I see it taking up 40% of cpu or so. I noticed a log file called "suphp_log" and notice it is being written to every 3 or 4 seconds with entries like:

[Thu Oct 21 02:56:34 2010] [info] Executing "/home/user/public_html/index.php" as UID 511, GID 511
[Thu Oct 21 02:56:35 2010] [info] Executing "/home/user/public_html/index.php" as UID 511, GID 511
[Thu Oct 21 02:56:37 2010] [info] Executing "/home/user/public_html/index.php" as UID 511, GID 511
[Thu Oct 21 02:56:40 2010] [info] Executing "/home/user/public_html/index.php" as UID 511, GID 511
[Thu Oct 21 02:56:44 2010] [info] Executing "/home/user/public_html/index.php" as UID 511, GID 511
[Thu Oct 21 02:56:44 2010] [info] Executing "/home/user/public_html/index.php" as UID 511, GID 511
[Thu Oct 21 02:56:47 2010] [info] Executing "/home/user/public_html/index.php" as UID 511, GID 511

I am not that familiar with suphp but is there some configuration setting or something that causes it to constantly read the index.php file or something? How do I control the configuration of suphp? I assume this is where the load on my system is coming from. What can I do about this?

share|improve this question
    
It is the other way around when the index is called apache logs it to the file as to the index not being used, use the server-status to verify who and from where it is being accessed on check the access_log file. How to enable the server-status check serverfault.com/questions/174038/… –  Prix Oct 21 '10 at 7:21

1 Answer 1

suPHP wouldn't be doing this on it's own. There should be some event that is causing the webserver to provide index.php via the suPHP module. What do the access logs say ?

share|improve this answer
    
Nothing being written to the access log when this is happening. –  GregH Oct 21 '10 at 7:53
    
If I disable suphp and just make php a dso call, then I still see httpd processes taking cpu. Again, however, no entries in the access logs. Very strange. –  GregH Oct 21 '10 at 7:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.