pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Carla J Breuker <carlajb@juno.com>
To: pgsql-interfaces@postgresql.org
Subject: Perl Script and Postgres DB running via Apache Web Server
Date: Sun, 27 Feb 2000 16:40:42 -0700
Message-ID: <20000227.164045.-425475.0.CarlaJB@juno.com> (raw)

Hi...

I have the following Perl Script (with Postgres code):

	#!/usr/bin/perl -w
	use Pg;

	print "<HTML><P>This is a test</HTML"

	$conn = Pg::connectdb("dbname=test");
	$conn->exec("insert into test_table values ('Carla', '90')");

This Script will run from the command line, and inserts values into the
existing DB and table.
When it is run via the web browser, nothing happens (browser hangs).

The script is in the /usr/local/httpd/cgi-bin directory, owned by a user
(not root), and has 755 permissions.

We have exhaustively searched perl, cgi, postgres, and apache
documentation both printed and web-based,
and cannot determine how to correct this problem.

We suspect that it may be a permissions / execution rights for the httpd,
but we are stumped.

Any help will be greatly appreciated.

Thanks,
	-Carla and Chris :)
________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.



Message-ID: <20000227.164045.-425475.0.CarlaJB@juno.com>
Permalink:  ../20000227.164045.-425475.0.CarlaJB@juno.com/
Also on:    postgresql.org/message-id/20000227.164045.-425475.0.CarlaJB@juno.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: carlajb@juno.com
  Subject: Re: Perl Script and Postgres DB running via Apache Web Server
  In-Reply-To: <20000227.164045.-425475.0.CarlaJB@juno.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox