2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Windows8でWordPressの環境をつくる

Posted at

WindowsでWordPressを勉強するための環境をつくるにはどうすればよいのだろう?と考えてみたら普通にMySQL+Apache2+PHPをインストールするだけでした。

MySQLインストール

http://dev.mysql.com/downloads/windows/installer/

ここからインストーラーをダウンロードします。注意点は、 Windows (x86, 32-bit) は64bitにも対応してるということです。最初気づかなくて、64bit版がない…だと!と焦りました。

インストーラーで迷うことはないでしょう。インストールしたらWindowsのサービスとして起動します。

Apache2インストール

http://www.apachelounge.com/download/

こちらからzipをダウンロードしてc:¥に展開します。c:¥直下に置くのが嫌ならReadmeを見た上で、httpd.confを編集しましょう。 サービス化する方法もReadmeに書いてあります。

PHPインストール

http://windows.php.net/download/

ここからzipをダウンロードして同じようにc:¥に展開します。php.ini-developmentphp.iniとしてコピーしてリネーム。

httpd.confに追記。

LoadModule php5_module "C:/path/to/php/php5apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir "C:/path/to/php"

Wordpressインストール

http://ja.wordpress.org/

ここからダウンロードして c:¥/path/to/apache/htdocs/に展開します。 あとはphp.iniを開いて

;extension=php_mysql.dll
;extension=php_mysqli.dll

をコメントアウトします。

extension_dir = "c:/path/to/php/ext"

として、PHPのインストールフォルダを絶対パスで指定します。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?