How To Configure PHP 5 With Apache 2 On Windows in 2 Minutes PHP 5へとApacheを構成する方法の2をWindowsで2分。
I am assuming that you have downloaded and installed Apache 2.x on your windows machine.私はと仮定してダウンロードしてインストール必要がApache 2.xのをWindowsマシンにします。 Use the latest version 2.2, if you do not have plans to run Subversion on it.最新のバージョン2.2を使用して、お持ちでない場合は破壊を計画して実行している。 Otherwise choose Apache 2.0.x. Apacheの他の選択2.0.x. Install it with the defaults.デフォルトでインストールすることです。 You may want to however changes the drive on which it is installed.したいことがありますしかしドライブに変更することがインストールされています。 Anyway so you have it running.とにかく必要があるので、それを実行してください。 Then you went to php.net and have downloaded and extracted the zip file to say c:\ or d:\. php.netを行ったと入力して抽出したzipファイルをダウンロードして、言ってやるがc : \またはD : \です。 I am assuming you have then changed the name of php.ini-recommended to php.ini.と仮定すると私の名前を入力し、変更するには、 php.iniのphp.ini -お勧めします。 So far all the steps are straight forward and their install guide is good enough.これまでのすべての手順をまっすぐ進むとそのインストールガイドには十分ではない。 Now you are feeling happy about it and want to integrate PHP with Apache, right?今すぐあなたが幸せな気分で会社に統合することとしたいPHPをApache 、右ですか? That’s when the fun begins.その場合は、楽しいが開始されます。
To cut the long story short the instructions in PHP document doesn’t work and have obviously not been updated in a long while.人員を削減するための指示にPHPの長い物語短い文書は機能しませんが明らかにされていないと長い間更新されています。 So I will give you a 2 minute guide to glory.あなたを与えるので、私は2分ガイドに引導を渡す。
Open httpd.conf (in Drive:\Program Files\Apache Group\Apache2\conf) and search for LoadModule statements. httpd.confのオープン(ドライブ: \ Program Files \ Apacheグループ\ Apache2 \ confに)とLoadModuleへのステートメントを検索します。 At the end add:の末尾に追加:
LoadModule php5_module "D:/php/php5apache2.dll" LoadModuleへphp5_module " d : / php/php5apache2.dll "
Then search forを検索
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps するAddType application / -のhttpd - PHPのです。 PHPのするAddType application / -のhttpd - PHPのソースです。 phps
Note: The last AddType is a nicety.注:最後のAddTypeのは、慎重に扱うべきです。 It allows you to view .phps files (php files with extension renamed) in htmlized and colorful format from your browser.それを使用すると表示します。 phpsファイル(拡張子のファイルをPHPの名前を変更)をお使いのブラウザからhtmlizedとカラフルな形式です。
Now restart the server.今すぐ再起動してサーバーです。
Did I say you are done?あなたが何か言ってやるのですか? Well, you are.ええと、あなたがします。 So go out and enjoy.外出するので、お楽しみです。
Note: If you are a wimp and you don’t need Subversion you may take the easy way out and install Xampp instead.注:弱虫だとの場合は、破壊する必要はありませんがかかる場合がありますアウトしてインストールし、 XAMPPの代わりに簡単な方法です。 It will do the dirty work for you.それはあなたには、汚い仕事をします。
Filed under提出されて Headline Newsニュースの見出し , 、 How Toどのように , 、 Open Source Softwareオープンソースのソフトウェア , 、 PHP PHPの , 、 Tech Note技術のノート , 、 Webウェブ , 、 Web Hostingウェブホスティング , 、 Web Services Webサービス , 、 Windows Windowsの | |
| |
RSS 2.0 RSS 2.0を | |
Trackbackトラックバック this Article |この記事|
Email this Article電子メールこの記事
You may also like to readを読むようにすることも可能 |





September 22nd, 2007 at 4:16 am 2007年9月22日は4:16アム
Thank U very much..非常に感謝u ..
October 14th, 2007 at 11:28 pm 2007年10月14日11:28 pmの
hiやあ
does this config works on vista?では、この設定に取り組んでVistaのですか?
i download the latest php, but font contian the php5apache2.dll but i have the php5ts, can any1 tell me what to do..please私をダウンロードして最新のPHP 、しかし、フォントcontianのphp5apache2.dllしかし、私は、 php5ts 、 any1ことを教えてください何をするか..
December 18th, 2007 at 10:50 am 2007年12月18日の10:50時
Awesome, thanks! awesome 、ありがとう! this was the critical part I needed.これは私必要に応じての重要な部分です。 Even book installation procedures were off baseインストール手順は的外れでも予約
February 24th, 2008 at 9:39 pm 2008年2月24日は9:39 pmの
Thanks,ありがとう、
That worked well.がうまく機能です。
Extra step to smooth things in Vista余分なものをVistaのステップを滑らかに
I would add that in the htdocs folder (for those lazy folks who don\’t change the root directory to be something else), that changing the permission ability for USER makes it really simple to add/edit files私は追加して、 htdocsフォルダ(これらの怠惰な人々 whoドン\ 'トンに変更される何か他のルートディレクトリに) 、それを変更してユーザーのアクセス許可すること本当に単純な能力を追加/編集ファイル
go to htdocs directory htdocsディレクトリに行く
right click and select \”Customize This Folder\”右クリックし、 [ \ "このフォルダのカスタマイズ\ "
select \”Security\” tab.選択\ "安全保障\ "タブをクリックします。
select \”Edit\” or \”Advanced\” to change the permissions for USER選択\ "編集\ "または\ "高度な\ "を変更するにユーザーのアクセス権を
May 31st, 2008 at 7:17 am 2008年5月31日は7:17アム
Hiやあ
Thanks for the infoてくれてありがとう情報をもっと見る
Short and good.短いと良いです。
Well doneよくやった
I have follow you instructions but I get an error:しかし、私は次の指示をしようとするとエラー:
The specified module could not be found.指定されたモジュールが見つかりませんでした。
My OS is Vista home premium.私のOSがVista Home Premiumにします。
Must say that the file: php5apache2.dll言ってやる必要がありますされているファイル: php5apache2.dll
was not part of the PHP package.はない部分は、 PHPパッケージです。
instead, I have: php5ts.dllその代わりに、私は: php5ts.dll
(Here is a good link to find that missing php5apache2.dll (ここで良いのリンクを見つけることは、行方不明php5apache2.dll
http://kromann.info/download.php?strFolder=php5_1-Release_TS&strIndex=PHP5_1 http://kromann.info/download.php?strfolder=php5_1-release_ts&strindex=php5_1
) )
This is the code lines from my httpd.confこれは、コードの行からの私のhttpd.confの
I have placed the lines at the end of the LoadModule list.私が置かれている行の最後には、 LoadModuleへのリストです。
This line is the last one on the list:この行は表示されたリストの最後の1つ:
#LoadModule vhost_alias_module modules/mod_vhost_alias.so # LoadModuleへvhost_alias_moduleモジュール/ mod_vhost_alias.so
Then right bellow I have placed the 3 lines as you instructed:うなり声を右に配置する3行として私はあなたの指示:
LoadModule php5_module “php/php5apache2.dll” LoadModuleへphp5_module " php/php5apache2.dll "
AddType application/x-httpd-php .phpするAddType application / -のhttpd - PHPのです。 PHPの
AddType application/x-httpd-php-source .phpsするAddType application / -のhttpd - PHPのソースです。 phps
Please adviceご助言
Thanks for your help助けてくれてありがとう
Amit C.愛するamit c.