You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sarah Parrott <pa...@googlemail.com> on 2006/06/29 18:53:50 UTC
cgi-bin doesn't seem to work
Hi,
I'm trying to enable cgi on tomcat 5.5. I've uncommented the servlet and
servlet mappings from the web.xml and renamed the server/lib/servelts-
cgi.jar like it says in the howto, and then reinstalled tomcat.
There didn't seem to be a cgi directory so I've put one in. It is at
$CATALINA_HOME/webapps/ROOT/WEB-INF/cgi
and put the program I want to run (Mapserver. The file is just called
mapserv.) in that directory.
When I go to http://localhost:8080/cgi-bin/mapserv I just get a blank page.
No errors and not what I'm expecting to get. I've tried restarting tomcat,
and playing about with the URL but I either get an error or the same blank
page.
Any ideas what I'm doing wrong?
I'm running Suse 10.1.
Thanks in advance,
Sparrott
Re: cgi-bin doesn't seem to work
Posted by Sarah Parrott <pa...@googlemail.com>.
Thanks for that! Setting it to an empty string works.
Sarah
PS - been away hence the long reply time!
On 30/06/06, Mark Thomas <ma...@apache.org> wrote:
>
> Sarah Parrott wrote:
> <snip/>
> > and put the program I want to run (Mapserver. The file is just called
> > mapserv.) in that directory.
> >
> > When I go to http://localhost:8080/cgi-bin/mapserv I just get a blank
> page.
> > No errors and not what I'm expecting to get. I've tried restarting
> tomcat,
> > and playing about with the URL but I either get an error or the same
> blank
> > page.
> >
> > Any ideas what I'm doing wrong?
>
> By default, the CGIServlet is going to call "perl mapserv" which I
> suspect will fail since I assume mapserv is an executable rather than
> a perl script.
>
> Try setting the executable parameter (see the HowTo) to an empty
> string. ( I haven't tested this). Alternatively, set it to mapserv and
> see if that works.
>
> Mark
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: cgi-bin doesn't seem to work
Posted by Mark Thomas <ma...@apache.org>.
Sarah Parrott wrote:
<snip/>
> and put the program I want to run (Mapserver. The file is just called
> mapserv.) in that directory.
>
> When I go to http://localhost:8080/cgi-bin/mapserv I just get a blank page.
> No errors and not what I'm expecting to get. I've tried restarting tomcat,
> and playing about with the URL but I either get an error or the same blank
> page.
>
> Any ideas what I'm doing wrong?
By default, the CGIServlet is going to call "perl mapserv" which I
suspect will fail since I assume mapserv is an executable rather than
a perl script.
Try setting the executable parameter (see the HowTo) to an empty
string. ( I haven't tested this). Alternatively, set it to mapserv and
see if that works.
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: cgi-bin doesn't seem to work
Posted by Hassan Schroeder <ha...@gmail.com>.
On 6/29/06, Sarah Parrott <pa...@googlemail.com> wrote:
> No, it didn't... I checked!
uh, OK. Just seems totally backward to configure and then reinstall.
In any case -- do you have a url-mapping in your web.xml for the
cgi servlet?
Is there anything being written to your log files when you try to access
your example cgi? Exactly what kind of file is your example?
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: cgi-bin doesn't seem to work
Posted by Sarah Parrott <pa...@googlemail.com>.
No, it didn't... I checked!
On 29/06/06, Hassan Schroeder <ha...@gmail.com> wrote:
>
> On 6/29/06, Sarah Parrott <pa...@googlemail.com> wrote:
>
> > I'm trying to enable cgi on tomcat 5.5. I've uncommented the servlet
> and
> > servlet mappings from the web.xml and renamed the server/lib/servelts-
> > cgi.jar like it says in the howto, and then reinstalled tomcat.
>
> ?! "...and then reinstalled it"?
>
> Wouldn't that wipe out your configuration changes?
>
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: cgi-bin doesn't seem to work
Posted by Hassan Schroeder <ha...@gmail.com>.
On 6/29/06, Sarah Parrott <pa...@googlemail.com> wrote:
> I'm trying to enable cgi on tomcat 5.5. I've uncommented the servlet and
> servlet mappings from the web.xml and renamed the server/lib/servelts-
> cgi.jar like it says in the howto, and then reinstalled tomcat.
?! "...and then reinstalled it"?
Wouldn't that wipe out your configuration changes?
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org