Re: cgi problem





N. Ganesh Babu wrote:

Hai Aditi,

I have worked with Apacche, Activestateperl 5.8.7 and XP. I will give my experience to you.

1. Install Apache
2. Install Activestateperl
3. Configure Apache to accept cgi scripts. Please read this "http://localhost/manual/howto/cgi.html"; link after installing apache. It will show how to configure apache. Change unix paths to windows paths.
4. Place the script in apache2/cgi-bin/
5. and execute the script by executing http://localhost/cgi-bin/<scriptname>.cgi


Try this one. It will work, if not write back.

The only rights possible in windows are read-only and hidden. If still it showing rights problem uncheck these two in the properties

Regards,
Ganesh


Aditi Gupta wrote:

ya i have installed perl interpreter but the IIS option in 'add/remove' programs is not checked and i don't have windows xp installation cd for the time being. But i've downloaded apache, won't that serve the purpose? i really have no idea about this, so any help would be highly appreciated.
And I have downloaded Perl MSI file from activestate and i've run simple perl programs on the machine. Do i need to install it again and make some changes during that?


Thanks in advance,
Regards,
aditi.

On 7/4/05, Langa F. Kentane <langa@xxxxxxxxxxx> wrote:


I know this is a stupid question, but have you installed the perl intepreter on your XP system and does IIS know that it should call perl for the.pl ext? A good perl intepreter that will do the setup for you when you install is activeperl. www.activestate.com <http://www.activestate.com>

-------------------------
Original Message:
From: Aditi Gupta <aditi9783@xxxxxxxxx>
To: Perl Beginners <beginners@xxxxxxxx>
Date: Monday, July 4 2005 08:09
Subject: cgi problem
Hello Perlers,

I'm very new to CGI programming. I'm working with following:
Browser: Mozilla Firefox
Server: Apache 2.0.54
OS: Windows XP

I'm going through the following online tutorial for cgi:
http://www.cgi101.com/book/

The 1st cgi code that I wrote is as follows:

first.cgi

---------------------------------------------------------------------------------------------
#!perl/bin/perl -wT
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
print " Content-type : text/html\n\n";
print "Hello World!\n";

---------------------------------------------------------------------------------------------
But when I write 'http://localhost/~P4/first.cgi' in the browser location
window (P4 is my username), it said "Internal Server Error". I'm working on
my personal computer. The tutorial says that it might happen because I
haven't changed file permissions using 'chmod 755 filename'. But there is no
chmod command in Windows XP. Also, if I don't want to change file
permission, will the code not be executed?


Please Help,
Thanks in advance for your help and time.
Regards,

Aditi







.



Relevant Pages

  • Re: BigApache for Windows - Why doesnt BSD have an installerpackage like this ???
    ... or do you know how to setup virtual hosting on a name basis for apache ... >>>All of these are available on FreeBSD too (except Mercury Mailserver, ... in contradiction to Windows (in which you have to press: ... > being said think the best way to install it, ...
    (freebsd-questions)
  • Re: BigApache for Windows - Why doesnt BSD have an installerpackage like this ???
    ... >>All of these are available on FreeBSD too (except Mercury Mailserver, ... being said think the best way to install it, ... > contains many of the necessary Apache modules: ... I think we are in front of windows. ...
    (freebsd-questions)
  • Re: Probably the easiest Linux distro out there....
    ... Unlike Windows you really can't just click and install.... ... able to install a lot of stuff just by clicking in the package ... check the oneyou want to install, ... Apache is something you should definitely read the docs on... ...
    (alt.gathering.rainbow)
  • Re: how to install samba and windows xp ?
    ... If you decide to use your FreeBSD computer you will need to ethernet cards, ... Apache and samba - what is not working. ... All I had to do to get apache was install it from the ports and type ... > with windows 2000 server with none problem, but I didnt have the licence so ...
    (freebsd-newbies)
  • Re: [PHP] Question before upgrading to 5
    ... anyway I see you did do a dual apache setup, cool, and got it working properly. ... but it sure is a cool trick if you really need to run php4 sites and php5 sites on one production ... install of apache would allow you to do. ... php in so far as you can also specify a custom prefix to have ...
    (php.general)