script not found or unable to stat: /usr/local/apache/cgi-bin/php

monkey64

Well-Known Member
Nov 6, 2011
124
5
68
cPanel Access Level
Root Administrator
I recently made the switch from SuPhp to DSO + Apache Ruid2.
Since doing so, I have been aware of the following entries in my Apache Error log:

I am guessing that the issue is related to the ScriptAlias directive which tells Apache that a particular directory is set aside for CGI. The error is fairly general and I am not sure what I need to do to fault find.

Any ideas?

Code:
[Tue Dec 17 16:00:52.181444 2013] [cgi:error] [pid 29857] [client 200.49.164.234:43251] script not found or unable to stat: /usr/local/apache/cgi-bin/php
[Tue Dec 17 16:00:52.529244 2013] [cgi:error] [pid 30349] [client 200.49.164.234:43879] script not found or unable to stat: /usr/local/apache/cgi-bin/php5
[Tue Dec 17 16:00:54.639668 2013] [cgi:error] [pid 30215] [client 200.49.164.234:46242] script not found or unable to stat: /usr/local/apache/cgi-bin/php-cgi
[Tue Dec 17 16:01:17.697365 2013] [cgi:error] [pid 30216] [client 200.49.164.234:47156] script not found or unable to stat: /usr/local/apache/cgi-bin/php.cgi
[Tue Dec 17 16:01:32.642405 2013] [cgi:error] [pid 30348] [client 200.49.164.234:43346] script not found or unable to stat: /usr/local/apache/cgi-bin/php4
[Tue Dec 17 16:09:30.519635 2013] [:error] [pid 31156] mod_ruid2 www.xxxxxx.com GET /images/single.jpg HTTP/1.1 chdir to /home/virtfs/xxxxxx failed
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

Check to see if there are individual php.ini files within the accounts that could be resulting in this error message.

Thank you.
 

monkey64

Well-Known Member
Nov 6, 2011
124
5
68
cPanel Access Level
Root Administrator
Check to see if there are individual php.ini files within the accounts that could be resulting in this error message.
.
There are no individual php.ini files within the accounts.
I get a lot of these errors, mainly relating to images:

Code:
[Tue Dec 17 16:09:30.519635 2013] [:error] [pid 31156] mod_ruid2 www.xxxxxx.com GET /images/single.jpg HTTP/1.1 chdir to /home/virtfs/xxxxxx failed
Am I safe to assume that this image did not load. Or is it a false positive?
I checked the image and it does exist, both locally and on the web, is owned by the correct group and has CHMOD 644.

I'm not aware of any site issues; everything seems to be working well. I know that Mod Ruid2 is classed as experimental... I did google for "Mod Ruid 2" errors as well as "chdir to /home/virtfs/ errors" but I can't find much on either.

I wanted to investigate this, bit I can't go any further.
As a relative newbie, is this worth spending time on since everything seems to be working?
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Feel free to open a support ticket using the link in my signature if you would like us to take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 

monkey64

Well-Known Member
Nov 6, 2011
124
5
68
cPanel Access Level
Root Administrator
Feel free to open a support ticket using the link in my signature if you would like us to take a closer look. You can post the ticket number here so we can update this thread with the outcome.
I did open a ticket [4421347], but we did not make much progress.
I was asked if I could change PHP handlers but I was not able to do this without making a lot of changes to the sites so I therefore closed the ticket.