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 1D0208402 for ; Sat, 3 Sep 2011 19:13:24 +0000 (UTC) Received: (qmail 84214 invoked by uid 500); 3 Sep 2011 19:13:20 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 84090 invoked by uid 500); 3 Sep 2011 19:13:19 -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 84081 invoked by uid 99); 3 Sep 2011 19:13:19 -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 19:13:19 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of terence@tmbsw.com does not designate 207.44.152.30 as permitted sender) Received: from [207.44.152.30] (HELO secure.savvysites.net) (207.44.152.30) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Sep 2011 19:13:11 +0000 Received: from [192.168.1.8] (208-191-157-48.lightspeed.austtx.sbcglobal.net [208.191.157.48]) (authenticated bits=0) by secure.savvysites.net (8.12.10/8.12.10) with ESMTP id p83JCROj010161 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 3 Sep 2011 14:12:27 -0500 Message-ID: <4E627CF1.3010509@tmbsw.com> Date: Sat, 03 Sep 2011 14:16:01 -0500 From: "Terence M. Bandoian" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100608 Lightning/1.0b2 Thunderbird/3.1 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: CGIServlet - php References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 1:59 PM, Konstantin Kolinko wrote: > 2011/9/3 throwsCode: > I do not quite understand you. > >> 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? >> >> I uncommented all of the sections indicated in the Tomcat document. > What sections? > > What document did you read? > > Have you see FAQ pages on our Wiki? IIRC somebody has described how he > did run PHP with Tomcat. > > There should also be several discussions in the archives of this mailing list. > > 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. > >> Though I think I am making the right call, I am receiving a 400 error. >> >> CALL made form file 'index.html' >> > include 'cgi-bin/echoInfo.php'; >> ?> > What is relation between index.html, the code fragment above and php. > > index.html would be a static file, wouldn't it? Why then php code is there? > > >> FILE located in directory WEB-INF/cgi/echoInfo.php >> > phpinfo(); >> ?> >> >> 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. > > 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 ) > > >> 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 I believe if you can get phpinfo() to run, it will provide you with the path to the php.ini file in use. -Terence Bandoian --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org