Web2.0
参拾萬ドメインのサーバで運用し始めたCGIたちのリスト
(自分自身のための防備録)
インストール先URL → http://www.300000.com/
インストール先 → http://www.300000.ch/ (このwikiです)
- pukiwiki.ini.php を以下のように編集することで,俺しか編集できない設定になっています。
- hogehogehoge がユーザ名,xxxxxxはハッシュ値生成ソフトで生成したMD5のパスワード。
/////////////////////////////////////////////////
// User definition
$auth_users = array(
// Username => password
'foo' => 'foo_passwd', // Cleartext
'bar' => '{x-php-md5}f53ae779077e987718cc285b14dfbe86', // PHP md5() 'bar_passwd'
'hoge' => '{SMD5}OzJo/boHwM4q5R+g7LCOx2xGMkFKRVEx', // LDAP SMD5 'hoge_passwd'
'hogehogehoge' => '{x-php-md5}xxxxxx', // 編集許可グループ => パスワード
);
---中略---
/////////////////////////////////////////////////
// Edit auth (0:Disable, 1:Enable)
//$edit_auth = 0;
$edit_auth = 1;
$edit_auth_pages = array(
// Regex Username
'#BarDiary#' => 'bar',
'#HogeHoge#' => 'hoge',
'#(NETABARE|NetaBare)#' => 'foo,bar,hoge',
'/^.*$/' => 'hogehogehoge', // 編集制限ページ(正規表現) => 編集許可グループ名
);
インストール先URL → http://mediawiki.300000.net/ (テスト運用中)
- 2008年04月17日(木)に,やっと数式を使えるようになりました。
ただし,数式の記述には<math></math>タグではなく<tex></tex>タグを使います。
- http://www.forkosh.dreamhost.com/mimetex.exe/ から適切なファイルをDLし,解凍した中の mimetex.cgi を,パーミッション755でアップロードする。
- 以下の内容を記した mimetex.php というファイルを,extensionsフォルダにアップロードする。
<?php
$wgExtensionFunctions[] = "MimetexExtension";
function MimetexExtension() {
global $wgParser;
# register the extension with the WikiText parser
# the first parameter is the name of the new tag.
# In this case it defines the tag <example> ... </example>
# the second parameter is the callback function for
# processing the text between the tags
$wgParser->setHook( "tex", "render_Mimetex" );
}
/**
* Renders $text in Mimetex
*/
function render_Mimetex($input, $argv, $parser = null) {
if (!$parser) $parser =& $GLOBALS['wgParser'];
// $img_url is the url the mimetex will be sent to.
// IMPORTANT!! The URL below should be the link to YOUR mimetex.cgi if possible
$img_url = "http://***.******.***/mimetex.cgi?".$input;
// Sets the output of the tex tag using the url from above, and the input as
// the Alt text. It's important to note that there is no error output added yet.
$output = "<img src=\"$img_url\" alt= \"$input\" />";
return $output;
}
?>
- 以下の1行を,localsettings.php の最後の行に追加する。
require("extensions/mimetex.php");
- inludesディレクトリにある editpage.php から
'open' => "\\<math\\>",
'close' => "<\\/math\\>",
という2行を探し,ここを次のように変更する。
'open' => "\\<tex\\>",
'close' => "\\</tex\\>",
- 参考: http://d.hatena.ne.jp/cou929_la/20071122/1195745561
インストール先URL → http://www.300000.tv/ (テスト運用中)
3度目のインストールで,やっと文字化けを解消することができた!
文字化け解消方法:.htaccessによってhtmlファイルの文字コードがUTF-8であると宣言
インストール先URL → http://blog.300000.net/ (テスト運用中)
インストール先URL → http://takuma.300000.net/ (テスト運用中,要パスワード)
インストール先URL → http://takuma.300000.net/ (テスト運用中,要パスワード)
未導入のPHPたち(備忘録) †