youthful
2002/11/22, 04:12 PM
いつもお世話になってます。
s20サーバーでPostgreを使おうとしてるのですが
ここでスクリプトエラーがでます。
パーミッションは755です。
確認用に使ったCGI↓
#!/usr/local/bin/perl
use DBI;
$ds = "DBI:Pg:dbname=youthful:host=localhost";
$user = "youthful";
$pass = "パスワード";
$dbh = DBI->connect($ds,$user,$pass,{AutoCommit => 0}) ||
print $DBI::errstr . "\n";
---------------------------------------------------
http://youthful.s20.xrea.com/test.cgi
でスクリプトエラーがでます。
Script Error
The script did not produce proper HTTP headers. Please see the error log to see the detail of the errors. Depending on the server configuration, you can also run this script under CGIWrap debugging. Usually, either rename or link the script temporarily to a file which ends with .cgid extension, or add a AddHandler cgi-script-debug .cgi line to your .htaccess file.
------------------------------------------------------------
尚、データベース作成申請及び、sshでのテーブル作成・データの登録が
できることは確認済みです。
他のスレに似たようなケースがありました。
http://sb.xrea.com/showthread.php?threadid=3870
これと同じケースでしょうか?
上記以外にも書き方にミスがある場合。
よろしければお教え願えないでしょうか。
s20サーバーでPostgreを使おうとしてるのですが
ここでスクリプトエラーがでます。
パーミッションは755です。
確認用に使ったCGI↓
#!/usr/local/bin/perl
use DBI;
$ds = "DBI:Pg:dbname=youthful:host=localhost";
$user = "youthful";
$pass = "パスワード";
$dbh = DBI->connect($ds,$user,$pass,{AutoCommit => 0}) ||
print $DBI::errstr . "\n";
---------------------------------------------------
http://youthful.s20.xrea.com/test.cgi
でスクリプトエラーがでます。
Script Error
The script did not produce proper HTTP headers. Please see the error log to see the detail of the errors. Depending on the server configuration, you can also run this script under CGIWrap debugging. Usually, either rename or link the script temporarily to a file which ends with .cgid extension, or add a AddHandler cgi-script-debug .cgi line to your .htaccess file.
------------------------------------------------------------
尚、データベース作成申請及び、sshでのテーブル作成・データの登録が
できることは確認済みです。
他のスレに似たようなケースがありました。
http://sb.xrea.com/showthread.php?threadid=3870
これと同じケースでしょうか?
上記以外にも書き方にミスがある場合。
よろしければお教え願えないでしょうか。