text
stringlengths
1
254
output
stringlengths
2
255
Warning
PHP スクリプトで䜿甚したい拡匵子を入力しお䞋さい。 䟋: .php
One error here can leave your system in an unstable state.
新しい文字列倀をダブルクリックし、 php.exe ぞのパスをデヌタのフィヌルドに入力しお䞋さい。䟋えば、 c:\php\php.exe ずなりたす。
The PHP Development team will not be held responsible if you damage your registry.
PHP スクリプトに関連付けたい党おの拡匵子に関しおこれらの手順を 繰り返したす。
Navigate to:
以䞋の手順は、Webサヌバのむンストヌルには圱響を䞎えたせん。 (c:\myscripts\test.php のように) PHPスクリプ トをコマンドラむンやディレクトリビュアりむンドりでPHPスクリプトを ダブルクリックしお実行したい堎合にのみ関係したす。PHPファむルをダ ブルクリックした際にテキスト゚ディタにロヌドしたい堎合には、以䞋 の手順を飛ばしたいず思うかもしれたせん。
On the edit menu select:
HKEY_CLASSES_ROOT に進んでください。
Type in the extension you wish to use for your php scripts.
線集メニュヌから次のものを遞んでください: 新芏䜜成- キヌ
Double click on the new string value and enter the path to php.exe in the value data field. ex: c:\php\php.exe.
前のセクションで蚭定した拡匵子をキヌに入力しお䞋さい。䟋: .php
The following steps do not affect the web server installation and only apply if you want your php scripts to be executed when they are run from the command line (ex. run c:\myscripts\test.php) or by double clicking on them in a directory viewer window.
新芏のキヌをハむラむト衚瀺にし、右偎ペヌンで、"デフォルト倀" を ダブルクリックした埌、 phpfile を入力しお䞋 さい。
Navigate to:
各拡匵子に関しお先のセクションの蚭定手順を繰り返しおください。
On the edit menu select:
ここで他の 新芏䜜成- キヌ を HKEY_CLASSES_ROOT のもずに䜜成し、 phpfile ず名前を付けたす。
Highlight the new key and in the right side pane, double click the "default value" and enter phpfile.
新芏キヌ phpfile をハむラむト衚瀺し、 右偎ペヌン䞊で、"デフォルト倀" をダブルクリックし、 PHPスクリプト を入力したす。
Now create another New - Key under HKEY_CLASSES_ROOT and name it phpfile.
phpfile キヌを右クリックし、 新芏䜜成- キヌ を遞択し、 Shell ずいう名前を぀けたす。
Highlight the new key phpfile and in the right side pane, double click the "default value" and enter PHP Script.
Shell キヌを右クリックし、 新芏䜜成- キヌ を遞択し、 open ずいう名前を ぀けたす。
Right click on the Shell key and select New - Key, name it open.
open キヌを右クリックし、 新芏䜜成- キヌ を遞択し、 command ずいう名前を぀けたす。
Highlight the new key command and in the right side pane, double click the "default value" and enter the path to php.exe. ex: c:\php\php.exe -q %1. (don't forget the %1).
新芏キヌ command をハむラむト衚瀺し、 右偎ペヌンにお "デフォルト倀" をダブルクリックし、 php.exe ぞのパスを入力したす。䟋: c:\php\php.exe -q %1. (%1 を忘れないで䞋さい。)
Exit Regedit.
Regedit を終了しお䞋さい。
If using PWS on Windows, reboot to reload the registry.
Windows で PWS を䜿甚した堎合、レゞストリを再ロヌドするために リブヌトしお䞋さい。
IIS 3 users can use a nifty tool from Steven Genusa to configure their script maps.
ここたでの䜜業で、PWSおよび IIS 3甚のシステムむンストヌルは完了したす。 IIS 3 ナヌザヌは、Steven Genusa が䜜成したスクリプトマップ蚭定甚の すばらしい ツヌル を䜿甚するこず ができたす。
One to set up the PHP CGI binary, the other is to use the ISAPI module DLL.
PWS 4以降を実行するWindows䞊にPHPをむンストヌルする際には、二぀の 方法がありたす。䞀぀は、PHP CGIバむナリを蚭定する方法で、もう䞀぀ は、ISAPIモゞュヌル dllを䜿甚する方法です。
If you choose the CGI binary, do the following:
CGIバむナリを遞択した堎合は、次のようにしたす。
Backslashes should be escaped, for example: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="c:\\php\\php.exe "Now merge this registery file into your system; you may do this by double-clicking it.
添付の(sapiディレクトリにある) pws-php4cgi.reg ファむルを䜿甚するphp.exe の䜍眮に合うように線集したす。前向きスラッシュは、゚スケヌプす る必芁がありたす。䟋えば、 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="C:\\php\\php.exe"
Check the 'Execute' checkbox, and confirm.
PWSマネヌゞャにおいお、PHPサポヌトを远加したいディレクトリで右 クリックし、プロパティを遞択したす。'実行'チェックボックスを チェックし、確認したす。
If you choose the ISAPI module, do the following:
ISAPIモゞュヌルを遞択した堎合、次のようにしたす。
Backslashes should be escaped, for example: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="c:\\php\\sapi\\php4isapi.dll "Now merge this registery file into your system; you may do this by double-clicking it.
添付されおいる pws-php4isapi.reg ファむルを 線集し(sapiディレクトリを参照)、php4isapi.dllの䜍眮をシステム にあったものに修正しお䞋さい。前向きスラッシュぱスケヌプする 必芁がありたす。䟋えば、 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="C:\\PHP\\sapi\\php4isapi.dll"
Check the 'Execute' checkbox, and confirm.
PWS マネヌゞャで、PHPサポヌトを远加したいディレクトリで右クリッ クす、プロパティを遞択したす。「実行」チェックボックスをチェッ クし、確認を抌したす。
You have two options to set up PHP, using the CGI binary (php.exe) or with the ISAPI module.
PHPをIIS 4以降を実行しおいるNT/2000サヌバ䞊にむンストヌルするには、 以䞋の指瀺に埓っお䞋さい。PHPを蚭定するには、CGIバむナリ(php.exe) 版ずISAPIモゞュヌル版の2皮類ありたす。
Then right click on your Web server node (this will most probably appear as'Default Web Server'), and select'Properties'.
どちらの堎合も、マむクロ゜フトマネヌゞメントコン゜ヌルを起動する 必芁がありたす。(「むンタヌネットサヌビスマネヌゞャ」たたはNT 4.0 オプションパックたたはWindows 2000では、コントロヌルパネル= 管 理ツヌルに珟れたす。)぀づ意で、Webサヌバノヌド䞊で右クリック (「デフォルトのWebサヌバ」ずしおこれが珟れおいるこずが倚い)
Under 'Home Directory', 'Virtual Directory', or'Directory', click on the'Configuration' button, and then enter the App Mappings tab.
CGIバむナリを䜿甚したい堎合、次のようにしたす。
In the Extension box, type the file name extension you want associated with PHP scripts.
'ホヌムディレクトリ'、'仮想ディレクトリ'、'ディレクトリ'の䞋で' 蚭定'ボタンをクリックし、Appマッピングタブに移りたす。
You may also like to check the 'check that file exists' box - for a small performance penalty, IIS (or PWS) will check that the script file exists and sort out authentication before firing up php.
远加をクリックし、実行ボックスで次のように入力したす。 c:\php\php.exe %s %s (PHPのzipアヌカむブを c:\php\で解凍したず仮定したす) %s %s を終端に付ける必芁があり たす。これを行わないず、PHPは正しく機胜したせん。
You must start over from the previous step for each extension you want associated with PHP scripts. .php and .phtml are common, although .php3 may be required for legacy applications.
実行ボックスの䞭で、PHPスクリプトを関連づけるファむル名の拡匵 子を入力しお䞋さい。'陀倖メ゜ッド'を空癜のたたにし、スクリプト ゚ンゞンチェックボックスをチェックしお䞋さい。 手順3および4をPHPスクリプトに関連づけたい拡匵毎に繰り返しお䞋 さい。( .php ず .phtml が䞀般的です)
To use the ISAPI module, do the following:
適切にセキュリティを蚭定しお䞋さい。(これは、むンタヌネットセキュ リティマネヌゞャにおいお行われたす) NTサヌバがNTFSファむルシス テムを䜿甚しおいる堎合、I_USR_に関する実行暩限を php.exe を有するディレクトリに远加しお䞋さ い。
Under ISAPI Filters, add a new ISAPI filter.
ISAPIモゞュヌルを䜿甚するには、次のようにしお䞋さい。
Under 'Home Directory', click on the'Configuration' button.
PHPを䜿甚しおHTTP認蚌を実行したくない堎合は、この手順を飛ばす こずも可胜です(そしお、そうするべきです)。ISAPIフィルタの元で 新芏フィルタを远加しお䞋さい。PHPをフィルタ名ずしお䜿甚し、 php4isapi.dllぞのパスを入力しお䞋さい。
Use the path to the php4isapi.dll as the Executable, supply .php as the extension, leave Method exclusions blank, and check the Script engine checkbox.
'Home Directory'以䞋で'Configuration'ボタンをクリックしお䞋さ い。アプリケヌションマネヌゞャぞの新芏゚ントリを远加したす。 実行ファむルにphp4isapi.dllぞのパスを入力しお䞋さい。拡匵子ず しお .php を指定、陀倖メ゜ッドは空癜のたた、スクリプト゚ンゞン チェックボックスをチェックしお䞋さい。
Start IIS again (NET START w3svc)
IISを完党に停止
Servers-Netscape and iPlanet
IISを再床開始
Many Linux distributions have some sort of package installation system, such as RPM.
本節では、PHPをLinuxにむンストヌルする堎合の泚意ずコツに぀いお説明 したす。
If you are unfamiliar with building and compiling your own software, it is worth checking to see whether somebody has already built a packaged version of PHP with the features you need.
倚くのLinuxディストリビュヌションではrpmファむルのようなパッケヌ ゞむンストヌル機胜がサポヌトされおいたす。これにより、暙準蚭定の 構築はかなり簡単になりたすが、(セキュアサヌバや暙準以倖のデヌタベヌ スドラむバのような)暙準以倖の機胜を必芁ずする堎合には、PHPやWebサヌ バを再構築する必芁がありたす。゜フトり゚アの構築およびコンパむル に䞍慣れな堎合には、必芁ずする機胜を有するPHPが既にパッケヌゞ化さ れおいないかどうかを調べおみる䟡倀はありたす。
There are a few pre-packaged and pre-compiled versions of PHP for Mac OS X.
本節は、PHPをMac OS Xをむンストヌルする際の泚意事項ずコツを説明し たす。
If you are unfamiliar with building and compiling your own software, it 's worth checking whether somebody has already built a packaged version of PHP with the features you need.
数は少ないですが、Mac OS X 甚にパッケヌゞ化され、コンパむルされた PHPが存圚したす。これにより暙準的な蚭定を構築するこずが非垞に楜に なりたすが、(セキュアサヌバたたは別のデヌタベヌスドラむバのような) 異なる機胜が必芁な堎合には、PHPやWebサヌバを自分で構築する必芁が あるかもしれたせん。゜フトり゚アの構築およびコンパむルに䞍慣れな堎 合、必芁ずする機胜を有するパッケヌゞ版のPHPが既に構築されおいない かどうかを調べるこずを掚奚したす。
The following is for OS X Server.
Mac OS Xには僅かに異なる二぀のバヌゞョン、぀たり、クラむアントず サヌバがありたす。以䞋の説明は、OS Xサヌバに関するものです。
You may also want to add this line: setenv OPTIM=-O2 If you want the compiler to do some optimization.
䟋 3-2Mac OS X サヌバぞのむンストヌル
6. make 7. make install This will add a directory to your Apache source directory under src / modules / php4.
以䞋のヒントは、 Marc Liyanage 氏に提䟛しお頂いたものです。
That 'll bring the link table up to date.
Apache Webサヌバ甚PHPモゞュヌルがMac OS Xに含たれおいたす。 このバヌゞョンには、 デヌタベヌスMySQLずPostgreSQLのサポヌトが含た れおいたす。
Those tips are graciously provided by Marc Liyanage.
泚意:以䞋の手順を行う際は、Apache Webサヌバをダりンさせる可胜性 があるので泚意しお䞋さい!
This version includes support for the MySQL and PostgreSQL databases.
以䞋のむンストヌル手順を実行したす。
Do this to install:
1. タヌミナルりむンドりをオヌプン
Type "wget http: / /www.diax.ch / users / liyanage / software / macosx / libphp4.so.gz", wait for download to finish
2. "wget http://www.diax.ch/users/liyanage/software/macosx/libphp4.so.gz" を入力し、ダりンロヌド完了を埅぀。
Type "gunzip libphp4.so.gz"
3. "gunzip libphp4.so.gz" を入力
#AddType application / x-httpd-php .php #AddType application / x-httpd-php-source .phps
4. "sudo apxs -i -a -n php4 libphp4.so" を入力
PHP should now be up and running.
最埌に、Webサヌバを再起動するために" sudo apachectl graceful "ず入力しお䞋さい。
Into that file, write this line: "?php phpinfo()?".
この時点でPHPが動䜜しおいるはずです。"test.php"ずいう名前のファむ ルを"Sites"フォルダに䜜成しお䞋さい。このファむルには、次の行を 曞いお䞋さい。: "?php phpinfo()?"
You should see a status table with information about the PHP module.
次に 127.0.0.1/~your_username/test.php をWebブラ りザからオヌプンしお䞋さい。PHPモゞュヌルに関する情報を含むステヌ タステヌブルが衚瀺されるはずです。
Firstly you may need to add some paths to the LD_LIBRARY_PATH environment for Netscape to find all the shared libs.
PHPをNESたたはiPlanet Webサヌバ甚に構築するには、適圓なむンストヌ ルディレクトリを付けお --with-nsapi = DIR オプションを䜿甚しお䞋さい。 デフォルトのディレクトリは、通垞 /opt/netscape/suitespot/ です。 /php-xxx-version/sapi/nsapi/nsapi-readme.txt も参照䞋さい。
To Install PHP as CGI (for Netscape Enterprise Server, iPlanet, perhaps Fastrack), do the following:
䟋 3-10 Solaris 䞊の Netscape Enterprise ぞのむンストヌル䟋
In the Netscape Enterprise Administration Server create a new mime type (Category: type, Content-Type: magnus-internal / shellcgi, File Suffix:php).
たず、党おの共有ラむブラリを芋぀けるためにNetscape甚の環境倉数 LD_LIBRARY_PATH にいく぀かのパスを远加する必芁がありたす。これらの 蚭定は、Netscapeサヌバの開始スクリプトで行うのが最善でしょう。 Windows ナヌザは、おそらくこの手順をずばすこずが可胜です。開始スク リプトは、通垞以䞋の堎所にありたす。 /path/to/server/https-servername/start
In The Object name=" default "section, place this line necessarily after all'ObjectType 'and before all'AddLog' lines:
/path/to/server/https-servername/config/ にある蚭定ファむルを線集するこずも可胜です。
Object name=" x-httpd-php "ObjectType fn="force-type" type="magnus-internal / x-httpd-php "Service fn=php4_execute / Object
䟋 3-11 Netscape Enterprise甚の蚭定䟋
You need to complete the following steps to make PHP work with OmniHTTPd.
本節は、Omni HTTPdを䜿甚する際の泚意ずコツに぀いお説明したす。
SAPI is supported by OmniHTTPd, but some tests have shown that it is not so stable to use PHP as an ISAPI module.
以䞋のように蚭定するのが最も簡単です。
This directive needs to be set to 0.
手順 1: Omni サヌバヌをむンストヌルしたす
Step 3:
手順 2: システムトレむにある青い OmniHTTPd アむコンを 右クリックし、 Properties を遞択したす。
On the 'External' tab, enter: virtual = .php _BAR_ actual = c:\path-to-php-dir\php.exe, and use the Add button.
手順 3: Web Server Global Settings をクリッ クしたす。
On the Mime tab, enter: virtual = wwwserver / stdcgi _BAR_ actual = .php, and use the Add button.
手順 4: 'External' タブにお次のように入力したす。: virtual = .php _BAR_ actual = c:\path-to-php-dir\php.exe
You can choose at setup time to do a custom setup, and uncheck the PHP component.
手順 5: Mime タブにお、次のように入力したす。 virtual = wwwserver/stdcgi _BAR_ actual = .php
Some OmniHTTPd servers come with PHP 4 beta distributions, so you should choose not to set up the built in support, but install your own.
手順 6: OK をクリックしお䞋さい
Prev
PHPず共に実行したい各拡匵機胜毎に手順 26 を繰り返したす。
The core package has been separated from the various modules, and each can be installed and removed independently from the others.
本節では、PHPを OpenBSD にむン ストヌルする堎合に固有の泚意事項ずヒントに぀いお説明したす。
Next, take a look at the module packages, such as php4-mysql-4.2.3.tgz or php4-imap-4.2.3.tgz.
この方法は維持管理する人により最新のパッチやセキュリティ䞊の修正 が適甚されおおり、PHPをOpenBSDにむンストヌルする際に掚奚される方 法です。この方法を䜿甚するには、 最新のportsツリヌ を手に入れおいるかどうかを確認しお䞋さい。 続いお、むンストヌルしたいものを芋぀け、 make install コマンドを実行したす。以䞋にこれを実行する際の䟋 を瀺したす。
Example 3-3.
䟋 3-3OpenBSD ports によるむンストヌル䟋
Read the packages( 7) manual page for more information about binary packages on OpenBSD.
OpenBSD のバヌゞョン毎にコンパ むル枈のパッケヌゞが入手可胜です。これらは、OSにむンストヌルされ たApacheのバヌゞョンに自動的に合わせられたす。しかし、このポヌト には( flavors ず呌ばれる)倚くのオプションがあ るため、ports ツリヌを䜿甚しお゜ヌスからコンパむルする方が簡単で あるず思うかもしれたせん。利甚可胜なパッケヌゞに関するより詳现な 情報に぀いおはマニュアル packages(7) を参照䞋さい。
Installation
本節では、Oreilly Website Proに固有の泚意事項ずヒントに぀いお蚘述 したす。
This section contains notes and hints specific to Oreilly Website Pro.
以䞋の手順は、Window䞊のOreilly Website ProでPHP CGIバむナリたた はISAPIモゞュヌルを動䜜させる際の蚭定方法を説明するものです。
This list describes how to set up the PHP CGI binary or the ISAPI module to work with Oreilly Website Pro on Windows.
サヌバのプロパティを線集し、"Mapping"タブを遞択したす。
From the List select "Associations" and enter the desired extension (.php) and the path to the CGI exe (ex. c:\php\php.exe) or the ISAPI DLL file (ex. c:\php\sapi\php4isapi.dll).
Listから"Associations"を遞択し、 奜きな拡匵子(".php") ずCGI exe (䟋: c:\php\php.exe)たたはISAPI dllファむル (䟋: c:\php\sapi\php4isapi.dll)ぞのパスを入力したす。
If you choose the CGI executable file, enter 'wwwserver / shellcgi', if you choose the ISAPI module, enter'wwwserver / isapi' (both without quotes).
"Content Types"を遞択し、同じ拡匵子 ".php" を遞択し、 content typeを入力したす。CGI exeファむルを遞択した堎合は、 'wwwserver/shellcgi'ず入力しお䞋さい。ISAPIモゞュヌルを遞択し た堎合は、'wwwserver/isapi'ず入力しお䞋さい。(䞡方ずも匕甚笊な し)
The PHP CGI binaries are compatible with almost all webservers supporting the CGI standard.
PHPは、倚くのWebサヌバヌをサポヌトするように構築するこずが可胜で す。サヌバヌに関係する蚭定オプションの完党なリストに぀いおは、 サヌバヌに関係したオプションを参照䞋さい。PHPのCGIバむナリは、CGI むンタヌフェヌスを備えるほが党おのWebサヌバず互換性がありたす。
If you are still stuck, someone on the PHP installation mailing list may be able to help you.
幟぀かの問題が、その他の問題よりもより䞀般的に生じおいたす。 最も䞀般的な問題は、PHP FAQ に蚘茉されおいたす。 PHP FAQ は、 http://www.php.net/FAQ.php にありたす。
The archives are available from the support page on http: / /www.php.net /.
PHPのバグを発芋した堎合は報告しお䞋さい。PHPの開発者は、あなたが そのバグをレポヌトしない限り、恐らくそのバグを知るこずがなく、修 正されるこずもないでしょう。バグのレポヌトは、 http://bugs.php.net/ にあるバグ远跡システ ムを䜿甚しおも行うこずができたす。
The mailing list address is [email protected].
バグレポヌトを投皿する前に Bugs-Dos-And-Donts を参照䞋 さい!
You can report bugs using the bug-tracking system at http: / /bugs.php.net /.
メヌリングリストにおいお質問をしたい堎合は、正確さを心がけ、 解答に必芁な䜿甚環境に関する事項(オペレヌティングシステムの皮類、 PHP のバヌゞョン、Webサヌバヌの皮類、PHP を CGI ずしお䜿甚しおいるのか サヌバヌモゞュヌルずしお䜿甚しおいるのか、等)を明らかにするように しお䞋さい。他の人が問題を再珟し、テストできるのに充分なコヌドを 瀺すこずが奜たしいです。
This section contains notes and hints specific to the Sambar server for Windows.
This section contains notes and hints specific to the Sambar server for Windows.
Find the file called mappings.ini (in the config directory) in the Sambar isntall directory.
This list describes how to set up the ISAPI module to work with the Sambar server on Windows.
*.php = c:\php\php4isapi.dll
Find the file called mappings.ini (in the config directory) in the Sambar isntall directory.
Prev
Open mappings.ini and add the following line under [ISAPI]:
Servers-Oreilly Website Pro
Now restart the Sambar server for the changes to take effect.
Installation
本節は、SolaricにPHPをむンストヌルする際の泚意ずコツを説明したす。
Solaris installs often lack C compilers and their related tools.
Solaris むンストヌルは、Cコンパむラおよび関連するツヌルを欠いおい るこずが倚いです。必芁な゜フトり゚アは次のようになりたす。
gcc (recommended, other C compilers may work)
gcc (掚奚されたすが、他のC コンパむラも動䜜するかもしれたせん)
Installation on UNIX systems
必芁なコンポヌネントのほずんどをむンストヌルする際にpkgaddにより solarisむンストヌル凊理を簡単に行うこずが可胜です。
Be sure to investigate any sections specific to your platform or web server before you begin the process.
本節においおは、UNIXシステム䞊でのPHP のむンストヌルず蚭定に関する 手匕きを瀺したす。読み進む前に䜿甚するプラットフォヌムたたはWebサヌ バに぀いお必芁な郚分を調べるようにしお䞋さい。
Prerequisite knowledge and software:
事前に必芁な知識ず゜フトり゚アを以䞋に瀺したす。
Basic UNIX skills (being able to operate "make "and a C compiler, if compiling)
UNIX に関する基本的な知識("make" およびC コンパむラを䜿える皋床)
An ANSI C compiler (if compiling)
ANSI C コンパむラ(コンパむルする堎合)
flex (for compiling)
flex(コンパむル甚)
bison (for compiling)
bison (コンパむル甚)
A web server
Web サヌバ
Any module specific components (such as gd, pdf libs, etc.)
(gd、pdfラむブラリ等のような)モゞュヌル甚のコンポヌネント
This documentation is mainly focused around the process of compiling and configuring PHP.
UNIXプラットフォヌムで様々なパッケヌゞを䜿甚しおPHPのコンパむルお よび蚭定を行う方法は耇数ありたす。ナヌザ自身によるコンパむルおよび 蚭定の凊理はより耇雑です。このため、この文曞ではこれらの手順に぀い おより詳现に説明したす。