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!

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

Discussion in 'EasyApache' started by monkey64, Dec 17, 2013.

  1. monkey64

    monkey64 Well-Known Member

    Joined:
    Nov 6, 2011
    Messages:
    95
    Likes Received:
    3
    Trophy Points:
    58
    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
    
     
    #1 monkey64, Dec 17, 2013
    Last edited: Dec 17, 2013
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,233
    Likes Received:
    1,939
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

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

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. monkey64

    monkey64 Well-Known Member

    Joined:
    Nov 6, 2011
    Messages:
    95
    Likes Received:
    3
    Trophy Points:
    58
    cPanel Access Level:
    Root Administrator
    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?
     
    #3 monkey64, Dec 19, 2013
    Last edited: Dec 19, 2013
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,233
    Likes Received:
    1,939
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. monkey64

    monkey64 Well-Known Member

    Joined:
    Nov 6, 2011
    Messages:
    95
    Likes Received:
    3
    Trophy Points:
    58
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

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