• 締切済み

CGI-PLANTさんの「切り出し日記」

こんにちわ。 ここんとこ、CGIの質問ばかりですいません… で、今回は、CGI-PLANTさんの「切り出し日記」なんですが、昔、一回使ったことがあり、そのときは、ふっつ~に動きました。 最近また使おうと思ってHPからDLしてサーバへUPして、アクセス権も変更して、いざ行かん!と思ったら、エラーが出て動きません……perlのパスはあってるし、他はまだいじってないし…アクセス権が違うとは考えにくいですし… errorは「CGIWrap Error: Script Execution Failed CGIWrap encountered an error while attempting to execute this script: Error Message: No such file or directory Error Number: 2 This message usually indicates there is a problem with the script itself. Often this indicates either that the #! line of the script is incorrect, or the script was uploaded in binary mode instead of ascii mode. Check to make sure that the script does not have control-M's at the end of every line. That will prevent it from executing. An easy fix that takes care of this most of the time is to put '#!/.../perl --' instead of '#!/.../perl' on the first line of the script. If you are not the owner of this script, please forward this error and the URL that caused it to the script owner. That is often the component in the URL right after /cgiwrap/. 」 って感じです。翻訳機かけても意味不明だし、#!/.../perl --'って書いてあるところを見るとパスが違うみたいだけどあってるし…分かる人いますか? 宜しくお願いします

  • t-d-s
  • お礼率60% (102/170)
  • CGI
  • 回答数1
  • ありがとう数2

みんなの回答

  • mirurin
  • ベストアンサー率43% (48/111)
回答No.1

スクリプトの改行コードの問題じゃないですか? アスキーモードでUPしてみてください。

関連するQ&A

  • 見本のCGIをマニュアル通りに置いたのですが

    CGIのテキストどおりに、サンプルCGIをサーバに置いたのですが 下記のようなメッセージがでます。 CGIWrap encountered an error while attempting to execute this script: Error Message: Exec format error Error Number: 8 This message usually indicates there is a problem with the script itself. Often this indicates either that the #! line of the script is incorrect, or the script was uploaded in binary mode instead of ascii mode. Check to make sure that the script does not have control-M's at the end of every line. That will prevent it from executing. An easy fix that takes care of this most of the time is to put '#!/.../perl --' instead of '#!/.../perl' on the first line of the script. This is typically a problem if the script was edited or uploaded from a DOS/Windows/Macintosh station to a unix based server. If you are not the owner of this script, please forward this error and the URL that caused it to the script owner. That is often the component in the URL right after /cgiwrap/. 英語がさっぱり分からないのでなにがどうまずいのか全くわかりません。 メッセージの意味の分かる方是非、解説お願いします。

    • 締切済み
    • CGI
  • CGIが分かりません

    ホームページをリニューアルするということで、一度アップしていたものをすべて削除し、新しく作り直したホームページをFFFTPでアップしました。 すると、以前まで使えていたフォームメールが使えなくなってしまいました。 「予約」と「お問合せ」と2つ作っていたのですが、「お問合せ」のほうはなぜかうまく繋がるのですが、「予約」のほうは以下のようなエラー文がでてしまいます。 CGIWrap Error: Script Execution Failed -------------------------------------------------------------------------------- CGIWrap encountered an error while attempting to execute this script: Error Message: Permission denied Error Number: 13 This message usually indicates there is a problem with the script itself. Often this indicates either that the #! line of the script is incorrect, or the script was uploaded in binary mode instead of ascii mode. Check to make sure that the script does not have control-M's at the end of every line. That will prevent it from executing. An easy fix that takes care of this most of the time is to put '#!/.../perl --' instead of '#!/.../perl' on the first line of the script. This is typically a problem if the script was edited or uploaded from a DOS/Windows/Macintosh station to a unix based server. If you are not the owner of this script, please forward this error and the URL that caused it to the script owner. That is often the component in the URL right after /cgiwrap/. -------------------------------------------------------------------------------- Local Information and Documentation: Contact Name: Administrator Contact EMail: admin Server Data: Server Administrator/Contact: admin Server Name: www.tsurugagolf.co.jp Server Port: 80 Server Protocol: HTTP/1.1 Virtual Host: www.tsurugagolf.co.jp Request Data: User Agent/Browser: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6) Request Method: POST Remote Address: 210.143.245.129 Remote Port: 59165 Extra Path Info: /cgi-bin/yoyaku/postmail/postmail.cgi 削除してアップしなおしただけなので、以前使われていたCGIやその他は変更していないつもりなのですが、すべてエラーがでてしまうようになってしまいました。 コンピュータのことはあまり詳しくないので難しくてさっぱりわかりません。 最初のホームページは私が作っていたわけではないので詳しいことはわからないのですが、 新しいホームページのフォームメールは使われていたものをそのまま持ってきました。 すべてが初心者なので困っています。

  • すごく基本的な事なのでしょうが・・わからないんです

    ある人のHPに行こうとすると、次のメッセージが でてきました。  どうすればいいのかわかりません。 どこでどの様な操作をすれば解決するのでしょうか? CGI Error The error was detected while processing this request. Be sure of followings: The CGI script does exist. The permission of CGI script is 755. The Perl path in CGI script is #!/bin/perl. CGIスクリプトの呼び出し中にエラーが発生しました。 下記の点をご確認ください。 ・CGIスクリプトが存在すること。 ・CGIスクリプトのパーミッションが755であること。 ・CGIスクリプトのperlのパスが#!/bin/perlであること。

    • ベストアンサー
    • CGI
  • perlのcgiで、変数の中身を表示させたい

    cgiで変数の中身を表示させたい perlのcgiで変数の中身を表示させたいのですが、うまくいきません ▽環境   レンタルサーバ ▽やりたいこと   通常のブラウザ画面に、変数の中身を表示させたい ▽現状   use Data::Dumper;   print Dumper($hoge));もしくは、warn Dumper $hoge;   とすると、下記エラーとなります 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 thisscript under CGIWrap debugging. Usually, either rename or linkthe script temporarily to a file which ends with .cgidextension, or add a AddHandler cgi-script-debug .cgiline to your .htaccess file. 指示に従い、.htaccessへ、AddHandler cgi-script-debug .cgiを追記すると、ズラズラ出てきたと何か出てきた中の一行に、変数の中身が表示されます ■質問事項   ▼変数の中身を確認する際、いちいち.htaccessへ追記するのが面倒なのですが、どうやって回避するのでしょうか?   ▼なぜ、変数の中身を確認しようとしただけで、Script Errorとなるのでしょうか?   ・書き方を間違えている?   ・書く場所を間違えている?   ・レンタルサーバの仕様?   ・perlのcgiだから? イメージしてるのは、PHPのvar_dumpなのですが…

    • ベストアンサー
    • Perl
  • 初歩的なCGIですが その2

    print <<END_OF_DATA; Content-type:text/html <html> <head> <title>test</title> </head> <body> This is TEST page. </body> </html> END_OF_DATA 上記プログラムをperlプログラムで実行したら、 「Can't find string terminator "END_OF_DATA" anywhere before EOF at inout3.pl line 1.」 と出てきて正しく出力されません。なにがいけないのでしょうか?最後の「END_OF_DATA」の後は空白・改行はありません。 どなたか教えて下さい。お願いします。

    • ベストアンサー
    • CGI
  • PerlからSSLのページを読み込みたい

    ここのページを参考にuse Socketでホームページを読み込むスクリプトを作りました。 http://ash.jp/perl/socket_http.htm httpは問題なく読み込めるのですが、httpsのページが読み込めません。 以下のように'http'を'https'に変更してみたのですが、エラーになります。 $port = getservbyname('https', 'tcp'); ■エラー Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please. ---- use Socketではsslのページを読めないのでしょうか? Perlでsslのページを読む方法はありますでしょうか?

    • ベストアンサー
    • Perl
  • 分かりません。誰か教えて

    え~~!はっきり言ってCGIはど素人です。 サーバーはインターQを使用しています、そこで、掲示板を作成しようと思ってるのですがうまいこといきません。 インターQにのってるテスト用のCGIをアップしても、うまいこと表示されません。 で、私が用意したCGIをアップしてアドレスのアクセスするとこのようなエラーがでます。 「CGIWrap Error: Execution of this script not permitted Execution of (/export/home/m/e/8/4/me101384/./cgi-bin/test.cgi) is not permitted for the following reason: Script is not executable. Issue 'chmod 755 filename'」 この場合、なにが良くないんでしょう? 分かる方教えてください。

    • ベストアンサー
    • CGI
  • アンケートCGIについて

    よろしくお願い致します。 ホームページにアンケートを設置したく、http://www.rescue.ne.jp/cgi/weban/ にあるCGIをダウンロードさせて頂いたのですが、必要なファイルを全てサーバーにアップしたのですが、an.cgiが正常に動作しません。 an.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 thisscript under CGIWrap debugging. Usually, either rename or linkthe script temporarily to a file which ends with .cgidextension, or add a AddHandler cgi-script-debug .cgiline to your .htaccess file. ---------------------- サーバーはxreaを使用しており、パーミッションは705(xrea推奨)でアップしています。他のcgi(メールフォー等)も同様のパーミッションでアップして正常に動作しているので、パーミッションの問題ではないと思うのですが..。 何が原因なのか、お分かりになる方がいらっしゃいましたら、どうかご教授下さいますようお願い致します。

    • ベストアンサー
    • CGI
  • 何がダメなのかわからない

    http://validator.w3.org/check?uri=referer で自分のサイトを見てみたら、 62 Errors, 3 warning(s) となり、たくさんのエラーに驚きました。 ただなぜエラーになるのかわからない部分があります。 例えば、 <body text="gray" link="#808080"> がエラーとなっていますが、何がいけないのでしょうか? --------------------------------------------------------- Line 10, Column 12: there is no attribute "TEXT" <body text="gray" link="#808080"> ✉ You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. --------------------------------------------------------- と書いてあります。

    • ベストアンサー
    • HTML
  • 英文

    どちらがいいでしょうか? This is a CD which Tom often listens to. または、 This is the CD which Tom often listens to.

専門家に質問してみよう