Virtual PCにXindowsXPの環境を作り、PHPとApacheをインストール

Virtual PCにXindowsXPをインストール

手順1 Virtual PCを起動し、新規を選びます。

Virtual PCを起動し、新規を選びます。

手順2 次のように表示されるので、次をクリックします。

次のように表示されるので、次をクリックします。

手順3 バーチャルマシンの作成を選んで、次をクリックします。

バーチャルマシンの作成を選んで、次をクリックします。

手順4 名前を変更します。

名前を変更します。

手順5 名前を決定したら、次をクリックします。

名前を決定したら、次をクリックします。

手順6 使用OSやメモリが表示されるので、確認したら、次をクリックします。

使用OSやメモリが表示されるので、確認したら、次をクリックします。

手順7 RAMの調整をクリックします。

RAMの調整をクリックします。

手順8 RAM(メモリ)を調整して、次をクリックします。

RAM(メモリ)を調整して、次をクリックします。

手順9 新しいバーチャルディスクを選択して、次をクリックします。

新しいバーチャルディスクを選択して、次をクリックします。

手順10 新しいバーチャルディスクの格納場所を確定し、次をクリックします。

新しいバーチャルディスクの格納場所を確定し、次をクリックします。

手順11 完了をクリックします。

完了をクリックします。

手順12 インストールCDをセットして、バーチャルマシンを選択して、起動をクリックします。
CDから物理CDの使用を選んで、次に操作からリセットを選択します。

インストールCDをセットして、バーチャルマシンを選択して、起動をクリックします。
CDから物理CDの使用を選んで、次に操作からリセットを選択します。

手順13 OSのインストールを開始します。

OSのインストールを開始します。

Apache(Webサーバー)のインストール

http://httpd.apache.orgよりApacheをダウンロードします。

例として2009年3月4日現在最新のApache2.2.11をダウンロードします。

手順1 http://httpd.apache.org/に行き、Apache 2.2.11 Released からDownloadをクリックします。
次のように表示されます。

php1

手順2 Win32 Binary without crypto (no mod_ssl) (MSI Installer): apache_2.2.11-win32-x86-no_ssl.msi [PGP] [MD5] をクリックします。
次のように表示されますので、保存をクリックします。

php1

手順3 具体的に保存する場所を決定します。例ではディスクトップに保存しています。

php1

手順4 ダウンロードが終了したら、閉じるを選択して、ウィルスチェックを行います。

php1

手順5 デスクトップからapache_2.2.11-win32-x86-no_ssl.msiをクリックしインストールを開始します。

php1

手順6 セキュリティの警告が表示されますが、ウィルスチェックを実行ずみで問題がなければ、実行をクリックします。

php1

手順7 NEXTをクリックします。

php1

手順8 I accept・・・を選択し、NEXTをクリックします。

php1

手順9 説明を読み問題がなければ、NEXTをクリックします。

php1

手順10 localhostなどを条件に合わせて設定し、NEXTをクリックします。

php1

手順11 Typicalを選択し、NEXTをクリックします。

php1

手順12 インストール先を選択し、NEXTをクリックします。

php1

手順13 installボタンをクリックし、インストールを開始します。

php1

手順14 Finishボタンをクリックし、インストーラを終了します。

php1

手順15 ブラウザを起動します。

php1

手順16 urlにhttp://localhostを入力しenterキーを押して、ブラウザにIt works!と表示されば、インストール成功です。

php1

PHPのインストール

php1
php2
php3
php4
php5
php6
php7
php8
php9
phpA
phpB
phpC
phpD
phpE
phpF

pearのインストール

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\kobori>cd "c:\Program Files"

C:\Program Files>cd php

C:\Program Files\PHP>go-pear

Are you installing a system-wide PEAR or a local copy?
(system|local) [system] :

Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type 'all' to change all of them or simply press Enter to
accept these locations.

1. Installation base ($prefix) : C:\Program Files\PHP
2. Temporary directory for processing : C:\Program Files\PHP\tmp
3. Temporary directory for downloads : C:\Program Files\PHP\tmp
4. Binaries directory : C:\Program Files\PHP
5. PHP code directory ($php_dir) : C:\Program Files\PHP\pear
6. Documentation directory : C:\Program Files\PHP\docs
7. Data directory : C:\Program Files\PHP\data
8. User-modifiable configuration files directory : C:\Program Files\PHP\cfg
9. Public Web Files directory : C:\Program Files\PHP\www
10. Tests directory : C:\Program Files\PHP\tests
11. Name of configuration file : C:\WINDOWS\pear.ini
12. Path to CLI php.exe : C:\Program Files\PHP\.

1-12, 'all' or Enter to continue:
Beginning install...
Configuration written to C:\WINDOWS\pear.ini...
Initialized registry...
Preparing to install...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.2.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.3.tar...

installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.7.2.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.2.tar.
..
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
install ok: channel://pear.php.net/Archive_Tar-1.3.2
install ok: channel://pear.php.net/Console_Getopt-1.2.3
install ok: channel://pear.php.net/Structures_Graph-1.0.2
install ok: channel://pear.php.net/PEAR-1.7.2
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)

PEAR: To install optional features use "pear install pear/PEAR#featurename"

******************************************************************************
WARNING! The include_path defined in the currently used php.ini does not
contain the PEAR PHP directory you just specified:
<C:\Program Files\PHP\pear>
If the specified directory is also not in the include_path used by
your scripts, you will have problems getting any PEAR packages working.


Would you like to alter php.ini <C:\Program Files\PHP\php.ini>? [Y/n] : y

php.ini <C:\Program Files\PHP\php.ini> include_path updated.

Current include path : .;C:\Program Files\php\includes
Configured directory : C:\Program Files\PHP\pear
Currently used php.ini (guess) : C:\Program Files\PHP\php.ini
Press Enter to continue:

** WARNING! Old version found at C:\Program Files\PHP, please remove it or be su
re to use the new c:\program files\php\pear.bat command

The 'pear' command is now at your service at c:\program files\php\pear.bat


* WINDOWS ENVIRONMENT VARIABLES *
For convenience, a REG file is available under C:\Program Files\PHP\PEAR_ENV.reg
.
This file creates ENV variables for the current user.

Double-click this file to add it to the current user registry.

続行するには何かキーを押してください . . .

C:\Program Files\PHP>

C:\Program Files\PHP>pear install -a pear_info
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update p
ear.php.net" to update
pear/PEAR_Info can optionally use package "channel://pear.phpunit.de/PHPUnit" (v
ersion >= 3.1.4)
downloading PEAR_Info-1.9.2.tgz ...
Starting to download PEAR_Info-1.9.2.tgz (60,722 bytes)
...............done: 60,722 bytes
downloading Console_Getargs-1.3.4.tgz ...
Starting to download Console_Getargs-1.3.4.tgz (17,796 bytes)
...done: 17,796 bytes
install ok: channel://pear.php.net/Console_Getargs-1.3.4
install ok: channel://pear.php.net/PEAR_Info-1.9.2

C:\Program Files\PHP> inserted by FC2 system