X



自鯖でCGI
■ このスレッドは過去ログ倉庫に格納されています
0043DNS未登録さん
垢版 |
2006/05/24(水) 17:27:29ID:???
>>42
CGIの知識すら無い奴に自宅鯖なんて以ての外。
おまけにWindowsで鯖?プププw

なんて思われても仕方ないぞw
経験を積み重ねることによって知識が身に付くもんだし。
一応マジレスしておくと、まずANHTTPDの一般設定でルートと実行プログラムの設定を汁。
これぐらいは自分で調べれ
で、そのSn UploaderとかいうCGIの一行目に#!/usr/local〜みたいなのがあるからそこをperl.exeへのローカルパスへ変更
0044DNS未登録さん
垢版 |
2006/05/28(日) 23:52:42ID:???
>>43
とかいいながらANHTTPDの使い方知ってるお前キモス

>>42
>(Apache、AN HTTPD両方)はインストールしました。
突っ込んでほしいのか?
0045DNS未登録さん
垢版 |
2007/07/10(火) 13:25:50ID:x88YOuDh
gauche入れてSchemeCGIも楽しいよ
0046DNS未登録さん
垢版 |
2008/04/20(日) 15:29:17ID:jHakZg9l
ここでいいのかな?
snuploder使ってますが、直リンクを防ぎたいのですがどうしたらいいですかね?
(/upload.htmlから出ないとDL出来ないようにしたい)
WinXPで04WEBSERVERです。Apacheの方がいいのかな
0047DNS未登録さん
垢版 |
2008/08/17(日) 12:50:05ID:???
>>43は実は優しい奴
>>42はいつか誰かにハックされるから気をつけろw
0048DNS未登録さん
垢版 |
2008/11/02(日) 10:12:48ID:???
rootでll /var/?www/html/up?を行い
下記の様に表示されました。
合計 140
-rw-rw-rw- 1 apache apache 6158 2008-10-25 23:07 all.html
-rw-rw-rw- 1 apache apache 418 2008-10-25 22:48 error.cgi
-rw-rw-rw- 1 apache apache 1749 2008-10-25 23:07 log.cgi
drwxrwxrwx 3 apache apache 4096 2008-10-25 23:07 src
-rwxr-xr-x 1 root root 49173 2008-10-25 23:05 upload.cgi
-rw-r--r-- 1 root root 49175 2008-10-25 22:46 upload.cgi~
-rw-rw-rw- 1 apache apache 6155 2008-10-25 23:07 upload.html
この、apacheやrootの隣の49173や6155は何でしょうか?
如何すれば変更出来ますか?
初歩的な質問ですみません。
0049DNS未登録さん
垢版 |
2008/11/02(日) 16:41:59ID:???
ファイルの大きさ。
ファイルを書き換えれば変わる。
0051DNS未登録さん
垢版 |
2008/11/02(日) 20:32:49ID:???
単位はバイト。
3桁ごとに切るか、カンマ入れろと思ってるのは俺だけじゃ無い筈。
0053DNS未登録さん
垢版 |
2009/01/18(日) 20:35:34ID:???
>>51
ls -lh

>>52
「yum install httpd」でアパッチをインストール。
/var/www/cgi-binにcgiをぶちこむ。
「chmod 755 CGIのパス+ファイル名」で実行権限付与。
「service httpd start」
0054DNS未登録さん
垢版 |
2010/10/14(木) 02:17:55ID:fSEbGJ7H
cgiが動きません。拡張子はcgiです。ソフトはapacheです。ファイルは「cgi-bin」の下にあります
以下、confのソースです。
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2>; for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>;
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "C:/Apache2.2" will be interpreted by the
# server as "C:/Apache2.2/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which httpd.exe is located
# will be used by default. It is recommended that you always supply
# an explicit drive letter in absolute paths to avoid confusion.

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path. If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk. If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
0055DNS未登録さん
垢版 |
2010/10/14(木) 02:20:43ID:fSEbGJ7H
ServerRoot "C:/Apache2.2"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
0056DNS未登録さん
垢版 |
2010/10/14(木) 02:24:01ID:fSEbGJ7H
<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
User daemon
Group daemon

</IfModule>
</IfModule>

ServerAdmin webmaster@localhost

DocumentRoot "C:/Apache2.2/htdocs"


<Directory />
Options FollowSymLinks ExecCGI
AllowOverride All
</Directory>


<Directory "C:/Apache2.2/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI

AllowOverride All


Order allow,deny
Allow from all

</Directory>

<IfModule dir_module>
DirectoryIndex index.html
</IfModule>



<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

ErrorLog "logs/error.log"
LogLevel warn

<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common

0057DNS未登録さん
垢版 |
2010/10/14(木) 02:29:36ID:fSEbGJ7H

<IfModule dir_module>
DirectoryIndex index.html
</IfModule>


<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

ErrorLog "logs/error.log"
LogLevel warn

<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common

<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>

CustomLog "logs/access.log" common

</IfModule>
0058DNS未登録さん
垢版 |
2010/10/14(木) 02:31:48ID:fSEbGJ7H

<IfModule alias_module>
ScriptAlias /cgi-bin/ "C:/Apache2.2/cgi-bin/"

</IfModule>

<IfModule cgid_module>

</IfModule>

<Directory "C:/Apache2.2/cgi-bin">
AllowOverride All
Options All
Order allow,deny
Allow from all
</Directory>
<Directory />
Options FollowSymLinks ExecCGI
AllowOverride All
</Directory>
DefaultType text/plain

<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

AddHandler cgi-script .cgi .pl


AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
0059DNS未登録さん
垢版 |
2010/10/14(木) 02:33:00ID:fSEbGJ7H
長々とすいませんでした。どうか原因解明をお願いします
0060DNS未登録さん
垢版 |
2010/10/14(木) 06:28:41ID:???
エラーログとアクセスログはまだですか?

Perlで書いてるなら
perl -wc プログラム
の結果も。
0061DNS未登録さん
垢版 |
2010/10/15(金) 00:13:04ID:crmHCM7P
>>60
返答ありがとうございます。
cgiが起動しないのでエラーログもアクセスログもないんですよ<m(__)m>
ですからまだperlプログラムの方には問題があるかないかの段階にすら至ってないんですよ
すみません。
ブラウザでcgiファイルを開いたら、ダウンロード画面が出てきてしまいます
よろしくお願いします<m(__)m>
0062DNS未登録さん
垢版 |
2010/10/15(金) 00:24:56ID:crmHCM7P
説明不足ですみません。追記です
OS:vista home premium SP2 32bit
メーカー:富士通
Cドライブの下に Apache2.2\cgi-bin\sample.cgi
という構成です
ブラウザにcgiのプログラムがそのまま表示される等ではなく、
開いたら直ぐにダウンロード画面がでてきてしまうんです
もうhttpd.confファイルにしか原因がないと思い、そちらを上に記載しました
ある程度、いじったのですが、なぜかダウンロード画面がでてきてしまいます
すみません。よろしくお願いします
0063DNS未登録さん
垢版 |
2010/10/15(金) 17:38:19ID:Ns/g68yo
質問させてください。
スレ違い(板?)だったらすみません。

会社PCにフリーのWeb見積書CGIを設置しようとしたのですがうまく動作しません。
わかる方いらっしゃいましたら教えてください。

【エラー内容】
OS:Windows7-Pro
Webサービス:Apache2.2
CGI:Web見積書発行システム Lite Free Edition
配布元URL:http://www.dw-dev.com/download/00003/15.html
エラー内容:「初期設定ファイルの読み込みに失敗しました。」と表示されて動作しません。
恐らくiniファイルが読み込めてないようなのですがC言語型CGIを動かしたのが始めて
煮詰まってしまいました。

お手数ですがよろしくお願いいたします。
006563
垢版 |
2010/10/16(土) 14:53:52ID:???
>>64
わかりました。
他をあたってみます。

ありがとうございました。
0066DNS未登録さん
垢版 |
2010/10/17(日) 07:15:39ID:???
>>65
重要な誤字があった。すまなかった。訂正する。
板違いだから氏ね
0067DNS未登録さん
垢版 |
2011/01/06(木) 21:47:41ID:95Fqu/ph
>>58
今更ですが
cgi-binのとこにExecCGIオプションが書かれてないっすよ
(options_allって効くの?使ったことない)
ルートのディレクティブダブって書いてありますよ
conf書き換えてからapache再起動しました?
0069DNS未登録さん
垢版 |
2013/02/07(木) 19:01:45.26ID:???
国鉄は人殺しだ〜国鉄は人殺しだ〜
0070DNS未登録さん
垢版 |
2018/05/02(水) 07:05:13.02ID:QsLqCbG/
すごくおもしろいPCさえあれば幸せ小金持ちになれるノウハウ
一応書いておきます
グーグルで検索するといいかも『金持ちになりたい 鎌野介メソッド』

U4Z0C
■ このスレッドは過去ログ倉庫に格納されています

ニューススポーツなんでも実況