From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.140.128.1 with SMTP id a1cs296682rvd; Mon, 29 Mar 2010 15:49:45 -0700 (PDT) Received-SPF: pass (google.com: domain of 3hy6xSw4JCrIjgkk.XSajTSfckYeSad.UgejSUc-VWnWdYggYdWYjgmhk.Uge@groups.bounces.google.com designates 10.224.97.169 as permitted sender) client-ip=10.224.97.169; Authentication-Results: mr.google.com; spf=pass (google.com: domain of 3hy6xSw4JCrIjgkk.XSajTSfckYeSad.UgejSUc-VWnWdYggYdWYjgmhk.Uge@groups.bounces.google.com designates 10.224.97.169 as permitted sender) smtp.mail=3hy6xSw4JCrIjgkk.XSajTSfckYeSad.UgejSUc-VWnWdYggYdWYjgmhk.Uge@groups.bounces.google.com; dkim=pass header.i=3hy6xSw4JCrIjgkk.XSajTSfckYeSad.UgejSUc-VWnWdYggYdWYjgmhk.Uge@groups.bounces.google.com Received: from mr.google.com ([10.224.97.169]) by 10.224.97.169 with SMTP id l41mr2106152qan.5.1269902984403 (num_hops = 1); Mon, 29 Mar 2010 15:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received:received-spf:received:mime-version:received:date :in-reply-to:x-ip:references:user-agent:x-http-useragent:received :message-id:subject:from:to:x-original-authentication-results :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:x-thread-url:x-message-url:sender :list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; bh=48uJDY4mwegHeHhAg63b1b/q9PSC7ZloJnU3ge1RqhY=; b=mBINHyUVoe5nZsnppe6FRNb2eYzXV7qjvwzEuQSe96npmeodgpUMi6yWwBRRZnrkSh mRB1pDDbYX3ppi2D3SK5TJZaDCi7Xo5ZRe3Ww67M6FRtgfChqLBxjZHR63mHLKcW6TFl o/YFybh2xJA166G1HAxanTALnXD4p1FM98Vas= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:date:in-reply-to:x-ip :references:user-agent:x-http-useragent:message-id:subject:from:to :x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :x-thread-url:x-message-url:sender:list-subscribe:list-unsubscribe :content-type:content-transfer-encoding; b=lgMeWFn1pwuEMZtp9kFRtWNOiQAmhQ5FnO4j6tAdK8UvrBjRujtbiMe9T55K9GEa2T 3hXV4CYUTUnKevqiTH4eHQTlC9hQhdqx21KBiZ/m/ZUXE1MD7444giN/PQhrzgVczHCn dBF/pdaXH/y07sBS6qqtrjqVDxESaG+i8IHnI= Received: by 10.224.97.169 with SMTP id l41mr271664qan.5.1269902983120; Mon, 29 Mar 2010 15:49:43 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.224.92.132 with SMTP id r4ls4817973qam.1.p; Mon, 29 Mar 2010 15:49:42 -0700 (PDT) Received: by 10.224.96.201 with SMTP id i9mr700396qan.1.1269902981963; Mon, 29 Mar 2010 15:49:41 -0700 (PDT) Received: by 10.220.168.71 with SMTP id t7mr1325719vcy.9.1269901073883; Mon, 29 Mar 2010 15:17:53 -0700 (PDT) Received: by 10.220.168.71 with SMTP id t7mr1325718vcy.9.1269901073858; Mon, 29 Mar 2010 15:17:53 -0700 (PDT) Return-Path: Received: from mail-yx0-f156.google.com (mail-yx0-f156.google.com [209.85.210.156]) by gmr-mx.google.com with ESMTP id 29si11467144vws.2.2010.03.29.15.17.53; Mon, 29 Mar 2010 15:17:53 -0700 (PDT) Received-SPF: pass (google.com: domain of ross.fairbanks@gmail.com designates 209.85.210.156 as permitted sender) client-ip=209.85.210.156; Received: by mail-yx0-f156.google.com with SMTP id 28so1846789yxe.27 for ; Mon, 29 Mar 2010 15:17:53 -0700 (PDT) MIME-Version: 1.0 Received: by y14g2000yqm.googlegroups.com with HTTP; Mon, 29 Mar 2010 15:17:53 -0700 (PDT) Date: Mon, 29 Mar 2010 15:17:53 -0700 (PDT) In-Reply-To: <545fed2e-9c3a-42ca-8598-5113ba8a3f02@z4g2000yqa.googlegroups.com> X-IP: 80.47.107.153 References: <545fed2e-9c3a-42ca-8598-5113ba8a3f02@z4g2000yqa.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.1.8) Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8,gzip(gfe) Received: by 10.101.136.27 with SMTP id o27mr114468ann.61.1269901073752; Mon, 29 Mar 2010 15:17:53 -0700 (PDT) Message-ID: Subject: Re: Rack-Legacy: A rack handler for serving legacy CGI and PHP scripts From: Ross Fairbanks To: Rack Development X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ross.fairbanks@gmail.com designates 209.85.210.156 as permitted sender) smtp.mail=ross.fairbanks@gmail.com X-Original-Sender: ross.fairbanks@gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: X-Thread-Url: http://groups.google.com/group/rack-devel/t/3843ec074bae8726 X-Message-Url: http://groups.google.com/group/rack-devel/msg/23ccd6dba5672649 Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Eric, this is really useful just giving it a try now. The only minor install issue I found is on Ubuntu you need to make sure you install PHP from the php5-cgi package rather than the php5 package (as it doesn't include the CGI handler). Ross On Mar 26, 1:30=A0am, Eric Anderson wrote: > Wanted to post a note about bit of code I have written which assists > the development of apps that have some PHP/CGI code running alongside > Ruby code. It help avoid having to setup and configure Apache (or > whatever your preferred production stack is) just to do development on > a mixed code app. It basically a simple handler that execs the CGI and > puts the results back through rack. In the case of PHP it uses the php- > cgi to do the dirty work. > > I have put some basic info and usage up athttp://wiki.github.com/eric1234= /rack-legacy/. > I welcome others to give a try. It should work under any Rack- > compatible environment although I had to do some adjustments to get it > to work under Rails 2.3.5 (Rails 3.x beta is untested). > > This is my first rack module so I welcome feedback. Hope it is as > useful for others as it has been for me. > > Eric To unsubscribe from this group, send email to rack-devel+unsubscribegoogleg= roups.com or reply to this email with the words "REMOVE ME" as the subject.