Windows Server 2008R2 IIS 環境でのメモです
1. 環境を集める
WordPress本体 = http://ja.wordpress.org/
MySQL = http://dev.mysql.com/ -> Downloads -> MySQL Community Server ->Windows (x86, 64-bit), MSI Installer
PHP = http://windows.php.net/download/ -> 今回はIISなのでVC9のZipで
流れ
. MySQLのインスコ
. データベースとユーザの作成
. PHPの展開-設定
. IISの設定
. WordPressの設定
–MySQLをインストール–
Wizard ->
server Machine -> Serverマシンとして
Best Support For Multilingualism -> マルチバイト文字セット
Include Bin Directory in Windows PATH -> 環境変数に追加される。手動で設定でもいい
他はデフォで
再設定がしたければ
bin/MySQLInstanceConfig.exeで
MySQL再インストールの際エラーが出る場合、
C:\Documents and Settings\All Users\Application Data\MySQL ディレクトリを削除。
次にユーザとデータベースを作成
※以下 プロンプト
net start mysql -> 動いてるか確認
mysql -u root -p -> ログイン
※以下 mysql>
show databases; -> 既存データベースの確認
create database wordpress; -> WordPress用のデータベース作成
show databases; -> 作成を確認
create user pino@localhost; -> 新しいユーザを作成 ホストがlocalhostなのでコンソールセッションでないとログインできないので注意
use mysql; -> ユーザデータベース選択
show tables; -> テーブルの確認
select host,user from mysql.user; -> ユーザ一覧を確認
set password for pino@localhost = password(‘passwdpino’); -> パスワードを設定
show grants for pino@localhost; -> 権限を確認します
grant ALL on wordpress.* to pino@localhost; -> 権限を与えます
exit
–PHPの展開-設定–
現時点では”php-5.3.2-Win32-VC9-x86.zip”
1. C:\Program Files\PHP に解凍(任意)
2. フォルダ名をPHP(任意)に変更
3. “php.ini-production”をコピーして”php.ini”を作成
4. php.iniの”extension_dir”の値を C:\Program Files\PHP\ext へ変更 -> モジュールディレクトリの指定
5. extension=php_mbstring.dll をコメントアウト
6. extension=php_mssql.dll をコメントアウト
php.exeを実行してエラーが無いか確認
–IISの設定–
“インターネット インフォメーション サービス (IIS) マネージャー” ->
“スタート ページ”の一つ下(rootディレクトリ)をクリック ->
1. ハンドラーマッピング
ハンドラーマッピング ->
モジュール マップの追加 ->
要求パス => *.php
モジュール => FastCgiModule
実行可能ファイル => C:\Program Files\PHP\php-cgi.exe
名前 => PHP
2. ISAPI及びCGIの制限
追加 ->
ISAPIまたはCGIのパス => C:\Program Files\PHP\php-cgi.exe
説明 => PHP
拡張パスの実行を許可する => ON
3. ISAPIフィルター
追加 ->
フィルター名 => PHP
実行可能ファイル => C:\Program Files\PHP\php5isapi.dll
次にCGIが実行可能か確認します
wwwrootフォルダに
<?php phpinfo(); ?> を入力した phpinfo.phpを作成します
http://localhost/phpinfo.php か http://127.0.0.1/phpinfo.phpで接続します
PHPの設定画面がでればPHPは動いています。
一覧に mysql の項目があればsqlの設定も成功です
–WordPressの設定–
wwwrootフォルダへ解凍 ->
wp-config-sample.php をコピーして wp-config.phpを作成
メモ帳で開く(メモ帳で編集するな。と書いてあるけど問題なかった)
データベース名 => wordpress
ユーザー名 => pino
パスワード => passwdpino
ホスト名 => localhost
保存。
後は http://localhost/wp-admin/index.phpへ接続するだけです。
これで導入完了です。
Place post here also.
If you develop your on project for this mod be sure to copy/paste the Priority categories list to your on project.
Hiya! I just would like to give an enormous thumbs up for the nice information you may have right here on this post. I will likely be coming again to your weblog for extra soon.
titanic almanac you’ve have in hand
i am in general bumping all around the internet the majority of the afternoon which means that I have a tendency to peruse a good deal, which unfortunately isnt generally a good matter as many of the web sites I view are composed of worthless nonsense copied from many other sites a thousand times, on the other hand I have to give you credit this page is genuinely readable and also has got some unique content, for that reason kudos for stopping the fad of basically duplicating other people’s sites 🙂
Is this a site templete? I like the layout very much.
I discovered this blog from my cousin. You should submit this to rss directories. It would make it easier to find. Thanks!
When i visit a blog, chances are that I see that the construction is poor and the writting bad.On the other hand,I have to say that you have done a good job here.
The update frequency is low. but, I want to expand the blog with a thick content. Thank you.
One must be wondering in shock given your evidence of such admirable blogging gifts … As we find stuff on the net we are flabbergasted at the true number of thin blogs , therefore your blog is a lovely exception ! In addition, we like to move around quite a lot about the house and so my internet cuts down on occasions yet this blog each time manages to come up , that small ability renders your writing all the more brilliant …
We’re considering in surprise given the exposure of such excellent creative ability … As we find stuff on the internet I am amazed at the true number of bad websites – and this blog is something unique . As well, we like to move about quite a lot about the home and my broadband cuts down sometimes still this website each occasion will load – that small fact renders this site additionally outstanding .
Hello exipsecrended and enjoy!
hey! in new user here and i just wanne say hello
nawigacja krakow
Todo dinбmica y muy positiva! 🙂
Ivan