Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Apache 2.0 and cgi-bin perl problem

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Mod_rewrite question  
Author Message
user2584

External


Since: Dec 05, 2003
Posts: 5



(Msg. 1) Posted: Sat Dec 06, 2003 12:20 am
Post subject: Apache 2.0 and cgi-bin perl problem
Archived from groups: alt>apache>configuration (more info?)

Hello Gents

I have installed now on my pc (windows 20000) the latest version of
apache 2.0.48
and perl 5.6.1

After the installation i try to run the
http://my-host/cgi-bin/printenv.pl and the the server not execute the
perl scrit but the browser download the perl script
I test the perl from a cmd-dos and work fine


Can someone help me ?

Thanks for the support

Regards LAGO

 >> Stay informed about: Apache 2.0 and cgi-bin perl problem 
Back to top
Login to vote
brezler1

External


Since: Nov 25, 2003
Posts: 2



(Msg. 2) Posted: Sat Dec 06, 2003 3:07 am
Post subject: Re: Apache 2.0 and cgi-bin perl problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I am having the same problem with the same version of Apache also installed
on W2000. I'll look for an answer to your problem as a solution for mine....
"alessandro.lagostena" <alessandro.lagostena DeleteThis @tin.it> wrote in message
news:pE6Ab.162068$hV.5876649@news2.tin.it...
 > Hello Gents
 >
 > I have installed now on my pc (windows 20000) the latest version of
 > apache 2.0.48
 > and perl 5.6.1
 >
 > After the installation i try to run the
 > <a style='text-decoration: underline;' href="http://my-host/cgi-bin/printenv.pl" target="_blank">http://my-host/cgi-bin/printenv.pl</a> and the the server not execute the
 > perl scrit but the browser download the perl script
 > I test the perl from a cmd-dos and work fine
 >
 >
 > Can someone help me ?
 >
 > Thanks for the support
 >
 > Regards LAGO
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Apache 2.0 and cgi-bin perl problem 
Back to top
Login to vote
user2586

External


Since: Dec 06, 2003
Posts: 1



(Msg. 3) Posted: Sat Dec 06, 2003 8:25 pm
Post subject: Re: Apache 2.0 and cgi-bin perl problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I have the exact same problem. Hence me here right now. I checked my virtual
host log file and it keeps trying to serve the cgi from c:\program
files\apache group\ apache2\htdocs\cgi-bin or something like that. I know
the cgi works and i have explicity defined the document root in the vhost on
the httpd.conf.

I wonder if it has to do with the fact that I have left the documentroot as
the c:\program files\apache group\ apache2\htdocs from the istall? I dont
want to change that because it might affect some of my vhosts.

I will post here if i find the answer.

JBowler


"alessandro.lagostena" <alessandro.lagostena.TakeThisOut@tin.it> wrote in message
news:pE6Ab.162068$hV.5876649@news2.tin.it...
 > Hello Gents
 >
 > I have installed now on my pc (windows 20000) the latest version of
 > apache 2.0.48
 > and perl 5.6.1
 >
 > After the installation i try to run the
 > <a style='text-decoration: underline;' href="http://my-host/cgi-bin/printenv.pl" target="_blank">http://my-host/cgi-bin/printenv.pl</a> and the the server not execute the
 > perl scrit but the browser download the perl script
 > I test the perl from a cmd-dos and work fine
 >
 >
 > Can someone help me ?
 >
 > Thanks for the support
 >
 > Regards LAGO
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache 2.0 and cgi-bin perl problem 
Back to top
Login to vote
dirtballjoe

External


Since: Dec 06, 2003
Posts: 2



(Msg. 4) Posted: Sat Dec 06, 2003 10:31 pm
Post subject: Re: Apache 2.0 and cgi-bin perl problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

make sure that the first line of your cgi script points to perl.exe
 >> Stay informed about: Apache 2.0 and cgi-bin perl problem 
Back to top
Login to vote
none49

External


Since: Dec 06, 2003
Posts: 2



(Msg. 5) Posted: Sat Dec 06, 2003 10:34 pm
Post subject: Re: Apache 2.0 and cgi-bin perl problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Been there and done that in numerous ways. Tried with / before and without.
Maybe I missed one but it must be obscure.


"dave k" <dirtballjoe.RemoveThis@nospam.net> wrote in message
news:H8qAb.1968$_r6.1715@newsread1.news.pas.earthlink.net...
 > make sure that the first line of your cgi script points to perl.exe
 >
 >
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache 2.0 and cgi-bin perl problem 
Back to top
Login to vote
user2584

External


Since: Dec 05, 2003
Posts: 5



(Msg. 6) Posted: Sun Dec 07, 2003 12:28 am
Post subject: Re: Apache 2.0 and cgi-bin perl problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I havw make more test and now only wat to use script is to rename
printenv.pl -> printenv.cgi and call <a style='text-decoration: underline;' href="http://my-web/cgi-bin/printenv.cgi" target="_blank">http://my-web/cgi-bin/printenv.cgi</a>

On ths way work but .... i prefer to use an configuration with the
extention .pl

the discussione can continue ?

JBowler wrote:
 > Been there and done that in numerous ways. Tried with / before and without.
 > Maybe I missed one but it must be obscure.
 >
 >
 > "dave k" <dirtballjoe.DeleteThis@nospam.net> wrote in message
 > news:H8qAb.1968$_r6.1715@newsread1.news.pas.earthlink.net...
 >
  >>make sure that the first line of your cgi script points to perl.exe
  >>
  >>
  >>
  >>
  >>
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache 2.0 and cgi-bin perl problem 
Back to top
Login to vote
user2584

External


Since: Dec 05, 2003
Posts: 5



(Msg. 7) Posted: Sun Dec 07, 2003 8:24 pm
Post subject: Re: Apache 2.0 and cgi-bin perl problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Gents

just to infor you, the problem seams to ben on the output of the
printenv.pl (and not on the apache configuration)

With the follow script the out is correct

#!C:/perl/bin/perl.exe
##
## my_printenv -- demo CGI program which just prints its environment
##
use CGI;
#
$query = new CGI;
#
print $query->header;
print $query->start_html($PROGRAM);
print "<H1> Demo CGI program which just prints its environment</H1>\n";
#
print "<PRE>";
foreach $var (sort(keys(%ENV))) {
$val = $ENV{$var};
$val =~ s|\n|\\n|g;
$val =~ s|"|\\"|g;
print "${var}=\"${val}\"\n";
}
print "</PRE>";
#
print $query->end_html;


I hope that this help you

Available for fore info

Regards LAGO

alessandro.lagostena wrote:
 > I havw make more test and now only wat to use script is to rename
<font color=purple> > printenv.pl -> printenv.cgi and call <a style='text-decoration: underline;' href="http://my-web/cgi-bin/printenv.cgi</font" target="_blank">http://my-web/cgi-bin/printenv.cgi</font</a>>
 >
 > On ths way work but .... i prefer to use an configuration with the
 > extention .pl
 >
 > the discussione can continue ?
 >
 > JBowler wrote:
 >
  >> Been there and done that in numerous ways. Tried with / before and
  >> without.
  >> Maybe I missed one but it must be obscure.
  >>
  >>
  >> "dave k" <dirtballjoe RemoveThis @nospam.net> wrote in message
  >> news:H8qAb.1968$_r6.1715@newsread1.news.pas.earthlink.net...
  >>
   >>> make sure that the first line of your cgi script points to perl.exe
   >>>
   >>>
   >>>
   >>>
   >>>
  >>
  >>
  >>
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache 2.0 and cgi-bin perl problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
problem with perl - [Sun Aug 31 20:42:48 2003] [error] [client 127.0.0.1] attempt to invoke directory as script: c:/foxserv/www/cgi-bin This is standing in error.log Apache. And I get: Forbidden. You don't have permission to access /cgi-bin/ on this server. Whenever i g...

Perl-5.8-win32-bin configuration problem - why the configuration fail and return message asking me to set the top level directory for perl when i have already set one.

apache 2.0.47 and perl/cgi - Hello, I have installed apache 2.0.47 on my linux red hat 9.0. ../configure --prefix=/etc/httpd --enable-rewrite=shared --enable-speling=shared --enable-cgi=shared --enable-alias=shared but the cgi script not work..... Bye, Massimiliano

newbie - apache and perl - Hi, after the installation of apache 2.0 on a Win XP system I have problems to execute pl-scripts. I read the Manual and I think I have done the same things. The version of perl is 5.6.1-635. In the file httpd.conf I have added the following lines: ....

Compiling Apache 1.3.28 and PHP/Perl/SSL - I currently work with Apache 1.3.12, PHP 4.0.4, adn Perl 5.00 compiled into one honkin' static binary. Has anyone successfully compiled Apache 1.3.28, PHP 4.3.x, and Perl 5.8 like this? I started testing a Redhat 9.0 system with the above except that....
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]