ログイン
編集不可のページディスカッション情報添付ファイル
yamazaki/note/windows

MMA

Windows Server 2008 R2の活用


部誌みたいに見やすい感じに整形してみたり。 2011/3/22


端書

Windows Serverを手に入れるには、どうすればいいのだろうか。
Microsoft Windows Server 2008 R2 Standard を普通に買うと、アカデミックですら60,000JPYとなる。
だが、運良く大学生協前で怪しげなライセンス等を配布していることがある。勿論正規品である。
それを手にいれれば、無料で手に入れられる。日時は完全に運なので、情報網を広げておこう。


25th February 2011 「構築中サーバ」

基本設定

Internet Information Server




26th February 2011 「全世界ナイトメア」

ドメイン (Domain)

DNS (Domain Name System)

ページの公開




27th February 2011 「計算機遠隔操作術(リモートデスクトップ)」

基本的なリモートデスクトップの設定

ホスト側

クライアント側

PT2

OSI参照モデル




3rd March 2011 「哀愁の青色SCREEN襲来」

DL

データベース作成

> mysql -u user名 -p

mysql > CREATE DATABASE wordpress;

mysql> GRANT ALL PRIVILEGES ON *.* TO user名@localhost IDENTIFIED BY 'PASSWORD' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;

wp-config.php

define(‘DB_NAME’, ‘database_name_here’);

define(‘DB_USER’, ‘username_here‘);

define(‘DB_PASSWORD’, ‘password_here‘);

ハンドラマッピング


handler.jpg

アプリケーションプールの設定

php.ini

; On windows:
 extension_dir = "C:\php5\ext"

fastcgi.impersonate = 1

cgi.fix_pathinfo=1

cgi.force_redirect = 0

extension=php_mysql.dll


お使いのサーバーの PHP では WordPress に必要な MySQL 拡張を利用できないようです。



extension=php_gd2.dll

extension=php_mbstring.dll

date.timezone="Asia/Tokyo"

Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Tokyo' for '9.0/no DST' instead in C:\inetpub\wwwroot\phpinfo.php on line 1


一度以下の文字列を info.php として保存して、wwwrootフォルダに入れ、ブラウザから開く。

<?php phpinfo() ?>

WordPress INSTALL




4th March 2011 「アンデュレイションエラー」


ディレクトリ変更

規定のドキュメント

<remove value="index.php" />

プラグイン関連

extension=php_curl.dll




31st March 2011 「シュート・ザ・サーバ」


テンプレート


php.jpg

行間設定

#content div.post div.storycontent {
        line-height: 1.6em;
}

  相対単位 

  1. em 現在のフォントサイズを1とした相対的な指定
  2. ex 現在の "x" のサイズを1とした相対的な指定


  絶対単位

  1. px ピクセルで指定
  2. in インチで指定


    行間設定は個人の嗜好なので、好きに変えるのが良いかもしれない。

固定ページ

<?php wp_list_pages('title_li='); ?>

<?php wp_list_pages('title_li='); ?>
<li class="page_item"><a href="http://www.exex.com" target="blank">例</a></li>
<li class="page_item"><a href="http://www.amam.com">例</a></li>
<li class="page_item"><a href="http://www.pleple.com">例</a></li>

yamazaki/note/windows (最終更新日時 2011-05-30 19:57:58 更新者 yamazaki)