execv("/bin/bash") failed system error: No such file or directory

Discussion in 'Site & Server Administration' started by bbrian017, Aug 27, 2011.

  1. #1
    Hi guys,

    I have a new server, upgraded to php 5.3 so wordpress would work.

    Using plesk, 10.2, 64 bit system 4 gigs of ram,

    I'm trying to set up a corn tab with the following,

    php -q /var/www/vhosts/blogengage.com/httpdocs/file-here.php

    When I get the e-mail I get the following error,

    execv("/bin/bash") failed
    system error: No such file or directory

    Godaddy will not help so I'm all alone here,

    Is there a way to fix this?

    EDIT:

    Hi guys, I found one article,

    http://kb.parallels.com/en/111351

    To resolve the issue, set one of the valid shell options for the domain system user.

    I'm not sure how to set up the valid shell options for the domain system user
     
    Last edited: Aug 27, 2011
    bbrian017, Aug 27, 2011 IP
  2. AnthonyG

    AnthonyG Well-Known Member

    Messages:
    114
    Likes Received:
    3
    Best Answers:
    2
    Trophy Points:
    135
    #2
    Is that domains user allowed ssh access, did you follow the articles suggestion?

    What is the users details in /etc/passwd

    domainuser:x:0:0::/home/domainuser:/bin/bash
     
    AnthonyG, Aug 27, 2011 IP
    bbrian017 likes this.
  3. bbrian017

    bbrian017 Well-Known Member

    Messages:
    2,990
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    170
    #3
    Hi I didn't understand what the article meant really nor how to do that using the plesk or SSH.

    I have now passed that part and allowed access. Now the system is throwing another error,

    PHP Warning:  Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
    
    PHP Fatal error:  require_once(): Failed opening required 'modules/rss_import/magpierss/rss_fetch.inc' (include_path='.') in /var/www/vhosts/blogengage.com/httpdocs/modules/rss_import/file_here.php on line 311
    Code (markup):
    I look at that file and this is what it shows from the area!

    /*=======================================================================*\
        Function:   _response_to_rss
        Purpose:    parse an HTTP response object into an RSS object
        Input:      an HTTP response object (see Snoopy)
        Output:     parsed RSS object (see rss_parse)
    \*=======================================================================*/
    function _response_to_rss ($resp) {
        $rss = new MagpieRSS( $resp->results, MAGPIE_OUTPUT_ENCODING, MAGPIE_INPUT_ENCODING, MAGPIE_DETECT_ENCODING );
        
        // if RSS parsed successfully       
        if ( $rss and !$rss->ERROR) {
            
            // find Etag, and Last-Modified
            foreach($resp->headers as $h) {
                // 2003-03-02 - Nicola Asuni (www.tecnick.com) - fixed bug "Undefined offset: 1"
                if (strpos($h, ": ")) {
                    list($field, $val) = explode(": ", $h, 2);
                }
                else {
                    $field = $h;
                    $val = "";
                }
                
                if ( $field == 'ETag' ) {
                    $rss->etag = $val;
                }
                
                if ( $field == 'Last-Modified' ) {
                    $rss->last_modified = $val;
                }
            }
            
            return $rss;    
        } // else construct error message
        else {
            $errormsg = "Failed to parse RSS file.";
            
            if ($rss) {
                $errormsg .= " (" . $rss->ERROR . ")";
            }
            error_rss($errormsg);
            
            return false;
        } // end if ($rss and !$rss->error)
    }
    Code (markup):
    I also found this,

    http://forum.parallels.com/showthread.php?t=110316
    http://forum.parallels.com/showthread.php?t=111630
     
    Last edited: Aug 27, 2011
    bbrian017, Aug 27, 2011 IP
  4. AnthonyG

    AnthonyG Well-Known Member

    Messages:
    114
    Likes Received:
    3
    Best Answers:
    2
    Trophy Points:
    135
    #4
    As the error states, it failed opening the file that was requested, does that file actually exist in that directory?
     
    AnthonyG, Aug 27, 2011 IP
  5. bbrian017

    bbrian017 Well-Known Member

    Messages:
    2,990
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    170
    #5
    Assuming I have the right path above for the file location yes, I can confirm the file is in fact in the directory of the /httpdocs/
     
    bbrian017, Aug 27, 2011 IP