Hi,
I'm trying to get PHP running as a CGI app on Tomcat. I've managed to
do sufficent Tomcat setup to get it to invoke the PHP interpreter,
but all I get is the feared "No input file specified."
Looking aroung the php site, it seems this is caused by PHP-cgi really
wanting to be passed SCRIPT_FILENAME . Looking at the Tomcat logs, it
seems this is not being passed. I'm investigating how to get Tomcat to
pass this variable, but in case that dosn't work, can anyone answer
these:
* does SCRIPT_FILENAME cause this in other webservers?
* if (and how) can I get php to be less hung up on seeing this
variable?
Thanks all,
Tombo
System:
PHP 5.0.1 (cgi-fcgi) (built: Aug 12 2004 23:30:44)
Apache Tomcat 5.0.27 Server
Windows XP (I don't like it either, but these hands are tied)
Config:
I used the php.ini-dist from the package and have changed the
following:
* I had to set [cgi.force_redir ect = 0] to get this far.
* I've tried changing doc_root to the directory where my php files are
(C:\Tomcat5\web apps\ROOT\WEB-INF\cgi), without any luck.
Env vars being passed via CGI:
HTTP_USER_AGENT =Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7) Gecko/20040626 Firefox/0.9.1
HTTP_ACCEPT_ENC ODING=gzip,defl ate
REQUEST_METHOD= GET
AUTH_TYPE=
HTTP_ACCEPT_LAN GUAGE=en-us,en;q=0.5
SERVER_NAME=127 .0.0.1
SERVER_SOFTWARE =TOMCAT
HTTP_KEEP_ALIVE =300
HTTP_ACCEPT_CHA RSET=ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_HOST=127.0 .0.1
GATEWAY_INTERFA CE=CGI/1.1
X_TOMCAT_SCRIPT _PATH=C:\Tomcat 5\webapps\ROOT\ WEB-INF\cgi\foo.php
REMOTE_ADDR=127 .0.0.1
SERVER_PROTOCOL =HTTP/1.1
HTTP_CACHE_CONT ROL=max-age=0
PATH_INFO=
REMOTE_HOST=127 .0.0.1
QUERY_STRING=
HTTP_CONNECTION =keep-alive
SERVER_PORT=80
CONTENT_TYPE=
CONTENT_LENGTH=
HTTP_ACCEPT=tex t/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,ima ge/png,*/*;q=0.5
SCRIPT_NAME=/cgi-bin\foo.php
REMOTE_USER=
REMOTE_IDENT=
command=C:\Tomc at5\webapps\ROO T\WEB-INF\cgi\foo.php 0 2018 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: SamMan |
last post by:
We are getting new computers at work and I got the word today that pc-lan
(network admins) do not want IIS installed on ANY machine. We are primarily
a Java development house, so they will not balk about me installing Tomcat.
Can I run PHP from Tomcat the same (or close to) as IIS?
Thanks.
--
|
by: BigAl |
last post by:
I am using the following code in a servlet to send data back to a J2ME
application:
|
by: nmac |
last post by:
Hi all, hopefully someone can offer some sagely advice regarding
Production use of Jakarta's Tomcat.
First, some brief background.
My company have a servlet application that connects to a MySQL
database.
The servlet is deployed on two seperate win2k servers (Access to the
tomcat servers is via DNS round robin load balancing).
The database is on a another win2k server.
|
by: kimbuba |
last post by:
Hi all,
i'm writing cause i'm not able to find any good resources about this topic.
I'm programming on tomcat and i have my browser open to see changes i made.
The problem is that i'd like to see changes immediatly,
is there a way to do this, but using start-stop-reload from tomcato manager
admin?
I tried to add this to server.xml
<Context path="/info" docBase="info" debug="0" reloadable="true">
|
by: DaiIchi |
last post by:
I'm using Tomcat in standalone mode. When a URL without a filename is
entered into the browser (ie. "http://myhost.mydomain.com"), and the
default path does NOT have an index.html, but rather an index.jsp
file, Tomcat response with an "HTTP/1.1 302 Moved Temporarily" and a
"Location: http://myhost.mydomain.com/index.jsp" ... I was wondering
if there is a configuration for tomcat that can stop this behavior,
i.e., just run index.jsp?
| |
by: D E |
last post by:
When using my web application manager
(http://localhost:8080/admin)
I forgot my password. Is there an XML file i can look at to remember/obtain
(possibly even set).
Thanks
|
by: danish |
last post by:
hi everyone..sorry everyone if ive posted on the wrong group but i
really needed help....
i wan tto start jakarta-tomcat-5.5.3 from the webbrowser using the
sheel scripts...i normally use the shell scripts from the command line
to start and stop the tomcat server.....
i found out that php gives this incredible facility where i can execute
normal bash commands...i tried doing so ..but a simple command like {
system('whoami') } from
|
by: Edward V. Berard |
last post by:
People,
I am having problems developing Java applications on a Mac using
Eclipse, MyEclipse, and Tomcat 5.5+.
My current configuration:
Mac OS X (10.4.5)
Eclipse (3.1+)
MyEclipse (4.0+)
|
by: ashok2006 |
last post by:
Hi everybody,
Here is my problem:-
When I start tomcat the command prompt for tomcat openes but closes within seconds.
I've following environment varibles set:-
CATALINA_HOME C:\jakarta-tomcat-4.1.31
JAVA_HOME C:\j2sdk1.4.2
Path
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\J2SDK1.4.2\BIN;C:\Sun\AppServer\bin
|
by: Arun21084 |
last post by:
Hi,
Recently I installed an application HP SIP(Service Information Portal) on a Windows 2000 server.The application comes along with an installation of Tomcat 5.0.19.
Already there was an Apache 2 running on the server used by other application.
Once after installation of the product(HP SIP), I tried to restart the Tomcat 5.0.19 process using below methods(errors reported below respectively)
1) services.msc console
Could not start...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |