Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DFE2011939 for ; Mon, 30 Jun 2014 18:28:41 +0000 (UTC) Received: (qmail 77617 invoked by uid 500); 30 Jun 2014 18:28:38 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 77194 invoked by uid 500); 30 Jun 2014 18:28:38 -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 76810 invoked by uid 99); 30 Jun 2014 18:28:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jun 2014 18:28:37 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of remco@beryllium.net designates 5.135.167.165 as permitted sender) Received: from [5.135.167.165] (HELO treon.beryllium.net) (5.135.167.165) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jun 2014 18:28:35 +0000 Received: from localhost (localhost [127.0.0.1]) by treon.beryllium.net (Postfix) with ESMTP id 5D66F112 for ; Mon, 30 Jun 2014 20:30:11 +0200 (CEST) X-Virus-Scanned: Ubuntu amavisd-new at treon.beryllium.net Received: from treon.beryllium.net ([127.0.0.1]) by localhost (treon.beryllium.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UN0jVPUPox5b for ; Mon, 30 Jun 2014 20:30:10 +0200 (CEST) Received: from [192.168.2.11] (s55963364.adsl.online.nl [85.150.51.100]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: remco) by treon.beryllium.net (Postfix) with ESMTPSA id 17C4FE7 for ; Mon, 30 Jun 2014 20:30:09 +0200 (CEST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) From: Remco Poelstra In-Reply-To: <53B1AB0B.8010200@meetinghouse.net> Date: Mon, 30 Jun 2014 20:28:08 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <719094FC-588F-46D3-BCBA-729117B67FBC@beryllium.net> <53B1A4DF.7090509@meetinghouse.net> <53B1AB0B.8010200@meetinghouse.net> To: users@httpd.apache.org X-Mailer: Apple Mail (2.1878.2) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Mailman CGI scripts served instead of executed Op 30 jun. 2014, om 20:23 heeft Miles Fidelman = het volgende geschreven: > Remco Poelstra wrote: >> Op 30 jun. 2014, om 19:56 heeft Miles Fidelman = > het = volgende geschreven: >>=20 >>> Remco Poelstra wrote: >>>> Hi, >>>>=20 >>>> I'm migrating a mailman server to a newer machine. The new machine = runs apache 2.4. My problem is that the mailman cgi scripts are served = instead of being executed. >>>> My configuration looks like the following: >>>> >>>> ServerName lists.xxx >>>> DocumentRoot /home/www/lists.xxx >>>> ScriptAlias /mailman/ /var/www/w-lists/ >>>>=20 >>>> SuexecUserGroup w-lists w-lists >>>>=20 >>>> >>>> Require all granted >>>> AddHandler fcgid-script .php >>>> Options +ExecCGI >>>> FCGIWrapper /var/www/w-lists/php5-cgi .php >>>> >>>> >>>>=20 >>>> In the document root there is a php script that redirects to = /mailman/listinfo. The php5-cgi wrapper is in /var/www/w-lists. The php = script gets properly executed, but the mailman scripts (also in = /var/www/w-lists) are served directly instead of being executed. >>>>=20 >>>> I've tried adding a "SetHandler fcgid-script" on the = /var/www/w-lists directory, but that gives me a server error. >>>> Basically the same configuration works nicely on the old machine = (running apache 2.2). >>>>=20 >>>=20 >>> Silly question: are the any chance that the scripts aren't = executable (chmod +x)? Permissions can screw you - they're the first = thing I always check. >>=20 >> They are all -rwxr-xr-x and w-lists:w-lists, so I believe that's OK. >>=20 > hmm.... >=20 > Just to be clear - you're saying that SOME php scripts in = /var/www/w-lists execute properly, and others (the mailman scripts) do = not? >=20 > If that's the case, you might want to really carefully examine what's = different between the scripts that run and the ones that download - = things like perhaps .php vs. php5 suffixes, and such. >=20 > You might also want to look around for extraneous .htaccess files that = have conflicting information than what's in your config file. >=20 > I guess you should also see if the .php setup is different on your new = machine. To be more clear, ONLY the php script gets executed. The others are ELF = binaries and have no extension. So it's difficult to compare why the php = script works and the others do not. Maybe the difference is that the php = script itself is in the document root and only the wrapper is in the = scripts folder, while the other scripts are called directly. There are no errors or warnings generated, apache just happily hands = over the binary file. Remco --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org