computer/linux/service
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[linux]]
*BBS [#t05e7aff]
SUN BOARD presented in [[KENT-WEB:http://www.kent-web.com]] was used.
Directory structure is following.
#highlighter(){{
/usr/lib/cgi-bin/
|
+--- bbs / sunbbs.cgi [705]
| regist.cgi [705]
| captcha.cgi [705]
| init.cgi [604]
| check.cgi [705]
| admin.cgi [705] ... control view
|
+-- lib / *.pm
| | *.pl
| |
| +-- Jcode / *.*
| +-- Crypt / RC4.pm
| +-- GD / SecurityImage.pm
| +-- bin / *.png
| *.ttf
|
+-- data / log.cgi [606]
| | pastno.dat [606]
| | html.dat [606]
| |
| +-- past [707] / 0001.cgi [606]
|
+-- tmpl / *.html
/var/www/html/
|
+--- bbs / sunbbs.css
In this folder, BBS based on html is built.
}}
What is important is that index.html is made on the basis of bbs.html at /usr/lib/cgi-bin/bbs/tmpl/.
Principal setting is performed at init.cgi.
#highlighter(PHP){{
#Master password for delete writing.
#half size of alpha-numeral.
$cf{password} = '0123';
#Directory URL of CGI file (sunbbs.cgi).
$cf{cgi_url} = "http://153.126.186.135/cgi-bin/bbs/";
#Directory URL of HTML file. This html file is displayed.
$cf{html_url} = "http://153.126.186.135/bbs";
#Server path of BBS display part.
$cf{html_dir} = "/var/www/html/bbs";
#Select 1 to use log function.
$cf{pastkey} = 1;
#Image authentication setting.
#0:nonuse
#1:library version (abridged edition)
#2:module version
$cf{use_captcha} = 1;
}}
Modify the Parl path of following cgi program.
-bullistsunbbs.cgi
-bullistregist.cgi
-captcha.cgi
-admin.cgi
-check.cgi
Parl path can be confirmed by following command.
#highlighter(){{
$ which perl
}}
After setting, checking of operations can be performed by accessing check.cgi file dilectry. In my case, ImageMagick error was not resolved although it was installed by apt system.
My research proved that ImageMagick and ImageMagick-perl are completely different. So, ImageMagick-perl is needed to run ImageMagick from perl script.
#highlighter(){{
$sudo aptitude install ImageMagick-perl
}}
When you control this bbs, admin.cgi is accessed directly.
In case of this system, following URL is control page.
#highlighter(){{
http://153.126.186.135/cgi-bin/bbs/admin.cgi
}}
CGIが動かない場合
下記のようなエラーを吐く場合。
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, mail@address and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
ログを見ろということなので、見てみたが、どうにもよくわからない。
/var/log/apache2/
permissionとかいろいろ原因は考えられたのだが、結局はFTPによるファイルの転送モードが原因だった。
自動にしておけば問題ないだろうとたかをくくっていたのが間違い。テキスト、バイナリモードの違いはシビアに効きました。
----
設置後、最初に記事を投稿する場合は、sunbbs.cgiに「?mode=form」という引数を付けて呼び出すと、投稿フォームが表示されます。
[例] http://www.example.com/sunbbs/sunbbs.cgi?mode=form
記事が正常に受理されると、htmlディレクトリに掲示板表示部がHTMLベースで自動生成されます。 掲示板にアクセスする箇所(あるいはリンクするURL)は、「html/index.html」になります。
*Counter [#r9ccf474]
I used MAGICK COUNTER presented in [[[KENT-WEB:http://www.kent-web.com/]]
Directory structure is following.
#highlighter(){{
/usr/lib/cgi-bin/
|
|
+--counter / mgcount.cgi [705] ... main body
| check.cgi [705] ... check program
| init.cgi [604] ... setting file
|
+-- data / mpcount.dat [606]
|
+-- gif / 0.gif 1.gif .... 9.gif
}}
Principal setting is performed at init.cgi.
Following description is added to setup counter in website.
#highlighter(){{
<img src="cgi-bin/counter/mgcount.cgi">
}}
終了行:
[[linux]]
*BBS [#t05e7aff]
SUN BOARD presented in [[KENT-WEB:http://www.kent-web.com]] was used.
Directory structure is following.
#highlighter(){{
/usr/lib/cgi-bin/
|
+--- bbs / sunbbs.cgi [705]
| regist.cgi [705]
| captcha.cgi [705]
| init.cgi [604]
| check.cgi [705]
| admin.cgi [705] ... control view
|
+-- lib / *.pm
| | *.pl
| |
| +-- Jcode / *.*
| +-- Crypt / RC4.pm
| +-- GD / SecurityImage.pm
| +-- bin / *.png
| *.ttf
|
+-- data / log.cgi [606]
| | pastno.dat [606]
| | html.dat [606]
| |
| +-- past [707] / 0001.cgi [606]
|
+-- tmpl / *.html
/var/www/html/
|
+--- bbs / sunbbs.css
In this folder, BBS based on html is built.
}}
What is important is that index.html is made on the basis of bbs.html at /usr/lib/cgi-bin/bbs/tmpl/.
Principal setting is performed at init.cgi.
#highlighter(PHP){{
#Master password for delete writing.
#half size of alpha-numeral.
$cf{password} = '0123';
#Directory URL of CGI file (sunbbs.cgi).
$cf{cgi_url} = "http://153.126.186.135/cgi-bin/bbs/";
#Directory URL of HTML file. This html file is displayed.
$cf{html_url} = "http://153.126.186.135/bbs";
#Server path of BBS display part.
$cf{html_dir} = "/var/www/html/bbs";
#Select 1 to use log function.
$cf{pastkey} = 1;
#Image authentication setting.
#0:nonuse
#1:library version (abridged edition)
#2:module version
$cf{use_captcha} = 1;
}}
Modify the Parl path of following cgi program.
-bullistsunbbs.cgi
-bullistregist.cgi
-captcha.cgi
-admin.cgi
-check.cgi
Parl path can be confirmed by following command.
#highlighter(){{
$ which perl
}}
After setting, checking of operations can be performed by accessing check.cgi file dilectry. In my case, ImageMagick error was not resolved although it was installed by apt system.
My research proved that ImageMagick and ImageMagick-perl are completely different. So, ImageMagick-perl is needed to run ImageMagick from perl script.
#highlighter(){{
$sudo aptitude install ImageMagick-perl
}}
When you control this bbs, admin.cgi is accessed directly.
In case of this system, following URL is control page.
#highlighter(){{
http://153.126.186.135/cgi-bin/bbs/admin.cgi
}}
CGIが動かない場合
下記のようなエラーを吐く場合。
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, mail@address and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
ログを見ろということなので、見てみたが、どうにもよくわからない。
/var/log/apache2/
permissionとかいろいろ原因は考えられたのだが、結局はFTPによるファイルの転送モードが原因だった。
自動にしておけば問題ないだろうとたかをくくっていたのが間違い。テキスト、バイナリモードの違いはシビアに効きました。
----
設置後、最初に記事を投稿する場合は、sunbbs.cgiに「?mode=form」という引数を付けて呼び出すと、投稿フォームが表示されます。
[例] http://www.example.com/sunbbs/sunbbs.cgi?mode=form
記事が正常に受理されると、htmlディレクトリに掲示板表示部がHTMLベースで自動生成されます。 掲示板にアクセスする箇所(あるいはリンクするURL)は、「html/index.html」になります。
*Counter [#r9ccf474]
I used MAGICK COUNTER presented in [[[KENT-WEB:http://www.kent-web.com/]]
Directory structure is following.
#highlighter(){{
/usr/lib/cgi-bin/
|
|
+--counter / mgcount.cgi [705] ... main body
| check.cgi [705] ... check program
| init.cgi [604] ... setting file
|
+-- data / mpcount.dat [606]
|
+-- gif / 0.gif 1.gif .... 9.gif
}}
Principal setting is performed at init.cgi.
Following description is added to setup counter in website.
#highlighter(){{
<img src="cgi-bin/counter/mgcount.cgi">
}}
ページ名: