computer/linux/service
の編集
http://siti.dip.jp/wiki/index.php?computer/linux/service
[
トップ
] [
編集
|
差分
|
バックアップ
|
添付
|
リロード
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
-- 雛形とするページ --
bikefriday
books
BracketName
chemical
computer
computer/equation
computer/gromacs
computer/linux
computer/linux/apache2
computer/linux/cluster
computer/linux/emacs
computer/linux/FreeNAS
computer/linux/iptables
computer/linux/networking
computer/linux/ProFTPD
computer/linux/pukiwiki
computer/linux/RaspberryPi
computer/linux/service
computer/linux/torque
computer/programing
computer/programing/Eclipse
computer/programing/Python
computer/programing/python
computer/programing/Python/matplotlib
computer/programing/regular expression
computer/programing/vba
computer/programing/vmd
computer/windows
computer/windows/command prompt
computer/windows/ffmpeg
computer/windows/ImageJ
computer/windows/Inkscape
computer/windows/service
computer/windows/VBA
computer/windows/WebExpression
english
english/mail
english/P.R. response
english/あ
english/か
english/さ
FormattingRules
FrontPage
gnuplot
Help
InterWiki
InterWikiName
InterWikiSandBox
memo
memo/201902
memo/201903
memo/201904
memo/201905
memo/201907
memo/201911
memo/ai
memo/descri
memo/document
memo/life
memo/message
memo/procedure
memo/record
memo/work
memo/引っ越し
MenuBar
microserver
Notebook
PHP
PukiWiki
PukiWiki/1.4
PukiWiki/1.4/Manual
PukiWiki/1.4/Manual/Plugin
PukiWiki/1.4/Manual/Plugin/A-D
PukiWiki/1.4/Manual/Plugin/E-G
PukiWiki/1.4/Manual/Plugin/H-K
PukiWiki/1.4/Manual/Plugin/L-N
PukiWiki/1.4/Manual/Plugin/O-R
PukiWiki/1.4/Manual/Plugin/S-U
PukiWiki/1.4/Manual/Plugin/V-Z
RecentDeleted
SandBox
ST
testable
WikiEngines
WikiName
WikiWikiWeb
work
YukiWiki
[[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"> }}
テキスト整形のルールを表示する