Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 61521 invoked from network); 12 Feb 2007 13:31:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2007 13:31:35 -0000 Received: (qmail 81870 invoked by uid 500); 12 Feb 2007 13:31:26 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 81836 invoked by uid 500); 12 Feb 2007 13:31:26 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 81792 invoked by uid 99); 12 Feb 2007 13:31:25 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Feb 2007 05:31:25 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [63.240.77.81] (HELO sccrmhc11.comcast.net) (63.240.77.81) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Feb 2007 05:31:15 -0800 Received: from [192.168.1.101] (c-24-60-6-244.hsd1.ma.comcast.net[24.60.6.244]) by comcast.net (sccrmhc11) with ESMTP id <2007021213305301100q5j2je>; Mon, 12 Feb 2007 13:30:53 +0000 Message-ID: <45D06BEE.3050601@devferr.com> Date: Mon, 12 Feb 2007 08:30:22 -0500 From: "Silvino C. Ferreira" Organization: Automated Office Support, Inc. User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: users@httpd.apache.org References: <45CE0D86.1050807@math.uc.edu> <45CF3F21.2050604@rowe-clan.net> <45CF4816.4090207@math.uc.edu> <45CF57C8.8020409@math.uc.edu> In-Reply-To: <45CF57C8.8020409@math.uc.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] CGI differences in apache 2.0 and 2.2 As root you can see the PATH variable for any running process in the /proc directory. Here is what you need to do: 1. su to root 2. run the command ps -e | grep httpd which will show you all of process ids for apache 3. cd to /proc and do an ls. You should see a directory with the same number as each of the httpd process ids 4. cd to one of those directories and then cat the environ file. The information is just one long sting and not nicely formated, but PATH should be obvious. Sil Steve Pelikan wrote: > > Just having suexec loaded shouldn't make any difference because(AFAIK) > > it isn't actually used unless you explicitly request its use. > > Good point. > Okay, in a perl cgi script run by version 2.2 the command system("ls") > returns an error code (256, as I recall which corresponds to actual > exitcode 1) which I can print after the system("ls") call. > > Using apache 2.0 the perl statement system("ls") returns 0 as it should. > > Using a nonsense command system("foo"); produces an error code of -1 > with both 2.0 and 2.2 > > An additional bit of info that suggests there's a path/permissions > problem is that perl cgi scripts run with the apache 2.2 report an > error with a require("/home/pelikan/test.txt"); (can't find file) but can > do require("/var/www/cgi-bin/test.txt"); As if whoever's running the > script can see cgi-bin but not /home/pelikan (though the /home/pelikan > is set to let anyone read and execute) > > The file test.txt exists in both places. > > > > Apache runs as user 'apache' and there's no login allowed for that > user so I don't know how to run a program or view the path for user > apache. I'll read up on how to do cron and see if I turn that into a > test. > > THanks! > > Steve P > > Steve Swift wrote: > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org