All of the cgi scripts I create to access postgres databases work from the command line but do not work as CGI scripts. When accessed from a
browser the following line:
my $dbh =
DBI->connect( dbi:Pg:dbname=$DatabaseName;host=localhost;port=5432;",
"postgres","mydog")
Produces the following error:
[Thu Jul 28 23:14:45 2005] [error] [client 207.161.60.253] DBI
connect('dbname=myRunningData;host=localhost;port=5432;' ,
'postgres',...) failed: could not create socket: Permission denied
I have tried to establish different identity rules for apache and have
ensured that the password for postgres is correct.
Re: [SLE] Staring programs at boot - first time at doing this ... we'll call the script postgres.... The only tricky part is creating the stop/start script if you don't know how to write/edit shell scripts. ... actual command which starts postgres ... ... I don't think I'm looking for the complexity of adapting the /etc/init.d/skeleton file but I'm willing to be proven wrong here since this is the first time I've looked seriously at a boot script.... (SuSE)
[SLE] SPAM: SOLVED: Re: [SLE] Staring programs at boot - first time at doing this ... in /etc/init.d (adhering to the init instructions) and containing ... but you can also put the command in the existing postgres startup script. ... My course of action will be, although I generally do not like modifying files which could be overwritten by an upgrade, is to modify the existing postgres in /etc/init.d and to keep a backup copy elsewhere. ... I understand that one instance of PostgreSQL can contain many databases; I do not wish to mix work and home databases in the same grouping. ... (SuSE)
[SLE] ps command output regarding swapped processes ... the Postgres processes are swapped to disk. ... PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP Command... shows that only part of those 3 processes's memory is swapped to disk.... line info about the postmaster processes.... (SuSE)
Re: [SLE] Staring programs at boot - first time at doing this ... we'll call the script postgres.... The only tricky part is creating the stop/start script if you don't know how to write/edit shell scripts. ... actual command which starts postgres ... ... I don't think I'm looking for the complexity of adapting the /etc/init.d/skeleton file but I'm willing to be proven wrong here since this is the first time I've looked seriously at a boot script.... (SuSE)
Re: DBD:Pg unable to connect as CGI process -- could not create socket ... > All of the cgi scripts I create to access postgres databases work from ... > the command line but do not work as CGI scripts.... Your problem is not a Perl problem, and is therefore inappropriate for this ... (comp.lang.perl.misc)