> I want to be able to the same thing via cgi-bin, can anyone advise where to
> start. Basically, I want to be able to display the contents of the
> INI/config file in some kind of FORM or web page and then allow the user to
> be able to edit and save it at the same time.
That is do
newbie01 perl asked:
> At the moment, I have some sort of INI/config file that I edit manually
> via vi. These config files are "simple" delimited file that are used by
> some of the scripts running on the server.
>
> I want to be able to the same thing via cgi-bin, can
Hi,
At the moment, I have some sort of INI/config file that I edit manually via
vi. These config files are "simple" delimited file that are used by some of
the scripts running on the server.
I want to be able to the same thing via cgi-bin, can anyone advise where to
start. Basically,
On 6/20/07, whitsey <[EMAIL PROTECTED]> wrote:
> On 6/14/07, Mumia W. <[EMAIL PROTECTED]> wrote:
> Did some tinkering, commented out that option and Add-Handler which I
> also thought was required and my cgi code still worked.
>
> #Options ExecCGI
> #AddHandler cgi-script .cgi
>
> Then I found t
;>>
> > >>> AllowOverride None
> > >>> Options None
>
> > >> You need "Options ExecCGI" or (more probably) "Options +ExecCGI"
>
> > > The Apache/Tomcat documentation states that the "ScriptAlias&q
uot; or (more probably) "Options +ExecCGI"
>
> The Apache/Tomcat documentation states that the "ScriptAlias"
> directive automatically assigns the alias as a cgi-bin, therefore all
> files within this directory are by default assigned as files to be
> executed.
ot;ScriptAlias"
directive automatically assigns the alias as a cgi-bin, therefore all
files within this directory are by default assigned as files to be
executed.
I did add this however is made no difference...
You're right. Your configuration code (without +ExecCGI) worked on my
system (Apache
"ScriptAlias"
directive automatically assigns the alias as a cgi-bin, therefore all
files within this directory are by default assigned as files to be
executed.
I did add this however is made no difference...
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
On 06/12/2007 09:38 PM, whitsey wrote:
[...]
AllowOverride None
Options None
You need "Options ExecCGI" or (more probably) "Options +ExecCGI"
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
I am trying to execute the printenv perl script in the cgi-bin
directory and it is printing the code instead of executing the
script. Normally this is prety basic stuff setting this up however I
just can't get it to work. I have gone through the Apache
documentation and performed everythi
On 2/3/02 1:49 PM, Sir Douglas Cook <[EMAIL PROTECTED]> wrote:
> Searching for a free CGI-BIN
>
> I have Sympatico highspeed which does not support custom cgi.
>
> I have Tropod which is slow and has limits on every script I write.
> Example: $ENV{REMOTE_HOST}; retur
Searching for a free CGI-BIN
I have Sympatico highspeed which does not support custom cgi.
I have Tropod which is slow and has limits on every script I write.
Example: $ENV{REMOTE_HOST}; returns 10.10.23.235 and that
is not my IP address at the time.
Is there a site that I can obtain free
. My problem is that when
> I attempt to execute a simple script in my cgi-bin dir, the script
> attempts to save as, rather than execute the perl script.
> Any help would be appreciated.
Assuming that you are actually running them through a Web server, it sounds like your
Web server
is no
Folsk,
Forgive me. I am new to the list and cgi's in general.
I decided that I wanted to test my scripts locally,
before I implement them and/or debug them on the remote server.
So, I build a unix box for my house. My problem is that when
I attempt to execute a simple script in my cgi-bi
Mel,
BINGO! Thanks for the assist.
Frank
-Original Message-
From: Mel Matsuoka [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 8:22 PM
To: [EMAIL PROTECTED]
Subject: Re: Apache and cgi-bin directory - Redhat 7.1
At 05:15 PM 07/16/2001 -0400, you wrote:
>I have apache set up
At 05:15 PM 07/16/2001 -0400, you wrote:
>I have apache set up on a Linux machine running Redhat 7.1 (local home
>network). The install (from rpm) placed the directories as follows:
>
>/var/www/html
>/var/www/cgi-bin
>/var/www/icons
>
>I can point a browser to 192.168.x
- Original Message -
From: Frank J. Schmuck <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 4:15 PM
Subject: Apache and cgi-bin directory - Redhat 7.1
> I have apache set up on a Linux machine running Redhat 7.1 (local home
> network). The
Couple of things to check: Now, if I'm reading this correctly, you already
have http://hostname/cgi-bin/perlfile.cgi running if you point the browser
directly to that link. Now, you're trying to get that script to run by
pointing to http://hostname/cgi-bin/ itself. The first thi
point the browser to http://192.168.xxx.xxx//cgi-bin
> > directly to execute a script.
there should not be 2 slashes between the ip and the cgi-bin:
http://192.168.xxx.xxx/cgi-bin
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Mon, 16 Jul 2001, Frank J. Schmuck wrote:
> I have apache set up on a Linux machine running Redhat 7.1 (local home
> network). The install (from rpm) placed the directories as follows:
>
> /var/www/html
> /var/www/cgi-bin
> /var/www/icons
>
> I can point a browser to
I have apache set up on a Linux machine running Redhat 7.1 (local home
network). The install (from rpm) placed the directories as follows:
/var/www/html
/var/www/cgi-bin
/var/www/icons
I can point a browser to 192.168.xxx.xxx and I am taken to the /var/www/html
directory and the file
I generally put my cgi-bin directory in the same level as my root www
directory.
For example:
root www -> /usr/local/www/htdocs
cgi-bin -> /usr/local/www/cgi-bin
Then you need to add a ScriptAlias Directive (if you're using Apache) into
your httpd.conf file
Yes of course. My question is where in the linux box;
\usr\cgi-bin
\root\cgi-bin
\cgi-bin
that's what I meant to say...
Thanks
Frank
-Original Message-
From: Aaron Craig [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 12:10 PM
To: [EMAIL PROTECTED]
Subject: Re: cg
At 11:10 10.07.2001 -0400, Frank J. Schmuck wrote:
>I have a home network set-up to test cgi scripts. I have a Win2k box hooked
>up to a linux box. The intent is to write on the Win2k box and test on the
>Linuxbox. My question is where should the cgi-bin directory reside?
>
>
I have a home network set-up to test cgi scripts. I have a Win2k box hooked
up to a linux box. The intent is to write on the Win2k box and test on the
Linuxbox. My question is where should the cgi-bin directory reside?
My intent is to open a browser from the Win2k box and look at
http
> the script should be ...
thanks John. OK got it working. so what am I looking for? here is some of
the info:
PATHS are: /bin /usr/vde/bin /usr/local/bin /usr/gnu/bin /usr/ucb
/usr/css/bin /usr/local/cvbin
$INC[1]= /usr/local/pkg/perl5/lib
$INC[2]= /usr/local/pkg/perl5/lib/site_perl/sun4-so
tdk wrote:
Did you just copy the FTP.pm file into this area, or did you actually do
the install? i.e., something like
perl Makefile.PL prefix=/myinstall/directory
make
make test
make install
I just deleted the entire libnet folder & started over.
so, first I did:
perl Makefile.PL prefix=/l
print '';
}
}
else
{
print "$key = $ENV{$key}\n";
}
}
print 'INC follows:';
foreach $b (@INC) {
print '$INC[' . $i++ . "]= $b\n";
print '';
-Original Message-
From: Al Hospers [mailto:[EMAIL
> Oops ... too much paste ...
sorry John. does not compute?
Al
> if ($#path > 0)
> @paths=split /:/, $ENV{$key};
Should be
if ($#path > 0) {
@paths=split /:/, $ENV{$key};
}
Your content type should be (space after the colon)
print "Content-Type: text/html\n\n";
--- Al Hospers <[EMAIL PROTECTED]> wrote:
> is this correct?
>
Oops ... too much paste ...
John W Moon
-Original Message-
From: Al Hospers [mailto:[EMAIL PROTECTED]]
Sent: June 08, 2001 15:57
To: [EMAIL PROTECTED]
Subject: RE: using modules installed in local CGI bin
is this correct?
#!/usr/local/bin/perl
print "Content-Type:text/htm
> Did you just copy the FTP.pm file into this area, or did you
> actually do
> the install? i.e., something like
>
> perl Makefile.PL prefix=/myinstall/directory
> make
> make test
> make install
I did perl Makefile.PL but not the perfix... stuff. perhaps I should remove
it all, copy it up again
is this correct?
#!/usr/local/bin/perl
print "Content-Type:text/html\n\n";
print 0)
@paths=split /:/, $ENV{$key};
if
Al Hospers wrote:
: I changed the setup to
:
: #!/usr/local/bin/perl
: use CGI qw(:all);
: use lib "./libnet";
: use Net::FTP;
: print header;
: ...
: now I get this error
:
: BEGIN failed--compilation aborted at weather_ftp.cgi line 4.
I presume this is from the server's error_log. Is th
OK,
I changed the setup to
#!/usr/local/bin/perl
use CGI qw(:all);
use lib "./libnet";
use Net::FTP;
print header;
originally this was the error I got:
BEGIN failed--compilation aborted at weather_ftp.cgi line 4.
vde$ perl weather_ftp.cgi
Can't locate Net/FTP.pm in @INC (@INC contains: ./
: use line "./libnet";
sorry, that should be
use lib "./libnet";
-- tdk
Al Hospers wrote:
: ... HOWEVER, I cannot get my
: script to find the modules.
:
: here's the initial part of the code. according to the error message it fails
: on line 4 where it cannot find the Net::FTP module.
:
: #!/usr/local/bin/perl
: use CGI qw(:all);
: use lib "/libnet/Net";
: use
NC follows:';
foreach $b (@INC) {
print '$INC[' . $i++ . "]= $b\n";
}
print "";
John W Moon
-----Original Message-
From: Al Hospers [mailto:[EMAIL PROTECTED]]
Sent: June 08, 2001 14:02
To: [EMAIL PROTECTED]
Subject: using modules installed in l
the
hosting company they said they would not install libnet in the Perl
libraries. so, I got the bundle from CPAN, copied them into my local CGI
bin & installed them. the Makefile seemed to go OK. HOWEVER, I cannot get my
script to find the modules.
here's the initial part of the code.
ample, if you wanted ~merlyn/cgi to be a cgi-bin, simply:
[incantation omitted]
: And like magic, it's a CGI bin!
And like magic, you've opened up a potential security hole, because
you're allowing "general users" who probably know zip about web
security to create CGI areas th
>>>>> "n6tadam" == n6tadam <[EMAIL PROTECTED]> writes:
n6tadam> Perhaps I can join in the conversation?? Are you running apache as your
n6tadam> websever? If so, you can specify mutiple aliases so that the main /cgi-bin/
n6tadam> folder is aliased to othe
Hi,
Perhaps I can join in the conversation?? Are you running apache as your
websever? If so, you can specify mutiple aliases so that the main /cgi-bin/
folder is aliased to other folders of your convienience.
If you need help, let me know.
Regards,
Thomas Adam
- Original Message
case. Thank you very much
Exile
- Original Message -
From: Gary Stainburn <[EMAIL PROTECTED]>
To: Exile <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, June 05, 2001 5:40 PM
Subject: Re: CGI-BIN
> Hi,
>
> firstly, a couple of netiquet (I hate that word)
On Tue, 5 Jun 2001, Exile <[EMAIL PROTECTED]> wrote,
> Hi All,
Hi Exile,
> I 've try to write some CGI scripts, however, I have to put my scripts in
> cgi-bin.. so... anybody tell me what is this?
The cgi-bin directory is by convetionally a place to put all CGI progra
but a web server question
- although we're not averse to answering those too, but you would get
better replies from a web server mailing list.
the /cgi-bin/ directory is actually an alias set up in the web server's
config file. On Apache, which you're running, this will be somewh
Hi All,
I 've try to write some CGI scripts, however, I have to put my scripts in
cgi-bin..
so... anybody tell me what is this?
I mean anybody can tell me some concepts about redirect? My most problem
is, I can't read write files in my home directory.
The other case is , is that
46 matches
Mail list logo