Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-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 59E10817E for ; Sat, 3 Sep 2011 20:05:36 +0000 (UTC) Received: (qmail 11669 invoked by uid 500); 3 Sep 2011 20:05:32 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 11428 invoked by uid 500); 3 Sep 2011 20:05:31 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 11419 invoked by uid 99); 3 Sep 2011 20:05:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Sep 2011 20:05:31 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Sep 2011 20:05:24 +0000 Received: by qyk31 with SMTP id 31so1621456qyk.18 for ; Sat, 03 Sep 2011 13:05:02 -0700 (PDT) Received: by 10.224.200.9 with SMTP id eu9mr1885442qab.389.1315080302801; Sat, 03 Sep 2011 13:05:02 -0700 (PDT) Received: from [192.168.168.8] (c-76-24-19-57.hsd1.ma.comcast.net. [76.24.19.57]) by mx.google.com with ESMTPS id cd6sm2419435qab.1.2011.09.03.13.05.01 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 Sep 2011 13:05:01 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: CGIServlet - php From: Ken Bowen In-Reply-To: <4E627CF1.3010509@tmbsw.com> Date: Sat, 3 Sep 2011 16:04:59 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4E627CF1.3010509@tmbsw.com> To: "Tomcat Users List" X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org Even if you don't want to run in Resin, studying (open source) Quercus = should give you the details/direction you want: = http://www.caucho.com/resin-3.0/quercus/ --Ken On Sep 3, 2011, at 3:16 PM, Terence M. Bandoian wrote: > On 1:59 PM, Konstantin Kolinko wrote: >> 2011/9/3 throwsCode: >> I do not quite understand you. >>=20 >>> I'm trying to implement PHP on tomcat 7.0.20 with no luck. Does = anyone know >>> how I can tell whether the CGIServlet is running? >>>=20 >>> I uncommented all of the sections indicated in the Tomcat document. >> What sections? >>=20 >> What document did you read? >>=20 >> Have you see FAQ pages on our Wiki? IIRC somebody has described how = he >> did run PHP with Tomcat. >>=20 >> There should also be several discussions in the archives of this = mailing list. >>=20 >> BTW, in the manager webapp if you click on "Server Status" and then = on >> "Complete Server Status" link, that page lists all active servlets in >> every webapp. >>=20 >>> Though I think I am making the right call, I am receiving a 400 = error. >>>=20 >>> CALL made form file 'index.html' >>> >> include 'cgi-bin/echoInfo.php'; >>> ?> >> What is relation between index.html, the code fragment above and php. >>=20 >> index.html would be a static file, wouldn't it? Why then php code is = there? >>=20 >>=20 >>> FILE located in directory WEB-INF/cgi/echoInfo.php >>> >> phpinfo(); >>> ?> >>>=20 >>> One other thing that concerns me. In every other option for running = php >>> including Apache there is some direction with regard to where you = must place >>> the php.ini file. >> The only thing that CGIServlet does is running external programs and >> catching their output, using java.lang.Runtime.exec(). You may see = the >> source code. >>=20 >> Someone wrote that php.ini is sought in >> 1. Current working directory ( System.getProperty("user.dir") will >> tell you what it is) >> 2. In directory specified by PHPRC environment variable. ( You may = set >> and export one in $CATALINA_BASE/bin/setenv.sh ) >> 3. In system-specific directory specified when compiling the PHP >> engine itself. ( Somewhere in /etc ) >>=20 >>=20 >>> I have found no direction for the php.ini file in the >>> Tomcat documentation or on the Internet for specifically Tomcat. = Does >>> anyone know how Tomcat or Eclipse, is pointed at the php.ini file? >> Best regards, >> Konstantin Kolinko >=20 > I believe if you can get phpinfo() to run, it will provide you with = the path to the php.ini file in use. >=20 > -Terence Bandoian >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org