View Full Version : sendmail
HyperBeat
2002/09/28, 05:16 PM
ページでsendmailを使おうとしているのですが変なエラーがでます
設定はちゃんとしたはずなのに・・・
教えてください
↓
http://hyperbeat.s20.xrea.com/sendmail/sendmail.html
http://sb.xrea.com/forumdisplay.php?s=&forumid=5
http://sb.xrea.com/showthread.php?s=&threadid=1824
http://www.xrea.com/?action=spec
ちょっと情報が少ない気が…
koeta
2002/09/28, 06:26 PM
http://hyperbeat.s20.xrea.com/sendmail/sendmail.cgi
↑このファイルのパーミッションはいくらに設定されてますか?
CGIWrap Error: Execution of this script not permitted
HyperBeat
2002/09/28, 06:57 PM
パーミッションは755です
SAKURA
2002/09/28, 11:30 PM
Originally posted by HyperBeat
パーミッションは755です
XREA推奨の700にしてみてはどうでしょう?
JAMさんが書いてくださったリンク先はご覧になりましたか?
設置しようとしているのはご自身で作られたのでしょうか?
それともどこかで配布されていたものでしょうか?
先ほどアクセスしてみたところ、「そんなもんは無い」というエラーも吐いてましたので…
初期設定も不完全な気がします。
アップロードした全てのファイル、設置ディレクトリと以下の階層、
それらのパーミッションも書いてくれないと、皆さん「予想」するだけです。
なるべくならソース(パスワードやE-Mail送信先は伏字で可)をアップして下さると解決しやすいと思います。
# 「CGI関連フォーラム1」の話題のような気がしますが
HyperBeat
2002/09/28, 11:42 PM
パーミッションを700に設定してやってみたのですが結果は同じでした・・・
なんでだろう?
HyperBeat
2002/09/28, 11:51 PM
配布してあったものを使わせてもらいました
↓
http://hyperbeat.s20.xrea.com/sendmail.txt
階層
public_html
|
+-snedmail
|
+-sendmail.html
sendmail.cgi
jcode.pl
でいいのですか?
なにぶん初心者なもんで・・・
そのまま(メールアドレス等は変更)で動きました。
http://cgi.s1.xrea.com/xrea/sendmail/sendmail.html
(削除しました)
ディレクトリのパーミッション705
sendmail.cgiのパーミッション700
jcode.plのパーミッション600
sendmai.html(変更不要:644 or 604)
FFFTPをお使いなら、全て
「アスキー転送モード」
で転送されていることを確認してみてください。
HyperBeat
2002/09/29, 01:23 AM
ご指摘されたように設定したにもかかわらずエラーがでてしまいます
わけがわかりません
エラーの文言を晒してくらはい。どこでツマヅイテいるかわかるかも知れましぇんので。
HyperBeat
2002/09/29, 01:42 AM
こんなエラーメッセージです
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/.
よくわかりません
お使いのFTPクライアントは何でしょう?
転送モードをもう一度確認してみてください。
(sample削除しました)
HyperBeat
2002/09/29, 02:21 AM
私はアップロードにはマイ ネットワークにFTPディレクトリを作ってそこにコピーしています
もしかしてこの方法ではバイナリなのですか?
Originally posted by HyperBeat
もしかしてこの方法ではバイナリなのですか?
・・・そうみたいですね。
場当たり的な対処ですが
ソースの末尾に2〜3回分多めに改行を加える
→改行コードをLFで保存(文字コードは変えない)
→アップロード
これで動きました。
http://cgi.s1.xrea.com/xrea/sendmail/sendmail6.html
(削除しました)
# 「ネットワークプレイス」を使って、転送モードの切り替えができるのか
# 検索してみましたが引っかかりませんでした。
# 情報をお持ちの方、フォローお願いします。
今後もcgiを設置する予定があるなら、普通のFTPクライアントソフトを準備した方が良いような気がします。
このスレッド、CGI関連フォーラムに移動してくれないかな…
HyperBeat
2002/09/29, 03:33 AM
ありがとうございます
最後に改行を3つほどくわえると正常にできました
本当にありがとうございました
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.