From owner-freebsd-questions@FreeBSD.ORG Wed Nov 30 00:52:35 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D386106566C for ; Wed, 30 Nov 2011 00:52:35 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id 5368D8FC0A for ; Wed, 30 Nov 2011 00:52:35 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.179]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id 73C085C24 for ; Wed, 30 Nov 2011 11:04:54 +1000 (EST) Message-ID: <4ED57DBA.4090204@herveybayaustralia.com.au> Date: Wed, 30 Nov 2011 10:50:02 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111109 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4ED45A0A.5050802@herveybayaustralia.com.au> <20111129192405.917F5BF56@kev.msw.wpafb.af.mil> In-Reply-To: <20111129192405.917F5BF56@kev.msw.wpafb.af.mil> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Twiki problems - no such file or directory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2011 00:52:35 -0000 On 11/30/11 05:24, Karl Vogel wrote: >>> On Tue, 29 Nov 2011 14:05:30 +1000, >>> Da Rock said: > D> I installed twiki on a test server to get a handle on how it operates, > D> and it all worked fine so I installed it on the production server. The > D> only difference between the 2 is that the production server uses vhosts. > > D> When I try to run *any* of the twiki scripts (twiki/bin/view, > D> twiki/bin/configure) I get "no such file or directory" in the httpd > D> error logs. > > I did see the reply about checking the perl path; this is for people who > run into other "no such file" problems. If the path fix hadn't worked, > my next step would have been adding vhosts to the test server and seeing > if I could get them both to fail in the same way. > > We've had similar problems, and replacing the program with a call to > truss helps us troubleshoot: > > root# mv /path/to/apache /path/to/apache.bin > > root# cat /path/to/apache > #!/bin/sh > exec /usr/bin/truss -o /tmp/apache$$ -f /path/to/apache.bin > exit 1 > I hadn't thought of that last trick- good one. I was really tired so I guess I wasn't thinking too straight, but the fact that the logs were showing no such file for say /twiki/bin/configure was really only making me think of the configure script file- not that it couldn't find the interpreter- so my attention was focused on that. The fact perl was on a slight different path was not really registering at the time at all. Very misleading for the tired and weary... :) I had considered running the test server in exactly the same form as the production, but that was going to be my very last resort and after a very long sleep! Moral of the story: Don't try diagnostics when you're so tired that you can't see straight, let alone think straight. You'll miss the small details that can make a huge difference ;) Cheers