2007”N03ŒŽ23“ú

‚³‚­‚çƒCƒ“ƒ^[ƒlƒbƒg‚ÉPHP5‚ðƒCƒ“ƒXƒg[ƒ‹‚·‚é

‚³‚­‚çƒCƒ“ƒ^[ƒlƒbƒg‚ÌPHP‚́APHP4‚Å‚ ‚éB
PHP5‚ðƒCƒ“ƒXƒg[ƒ‹‚·‚é‚ɂ́A‰º‹L‚̃uƒƒO‹LŽ–‚ª‘å•Ï–ð‚ɗ��‚B

E[PHP]‚³‚­‚ç‚̃Œƒ“ƒ^ƒ‹ƒT[ƒo‚ÅPHP5@nazonoDiary(“úX‚¤‚ë‚�N‚Ú‚¦‹L)
E‚³‚­‚çƒCƒ“ƒ^[ƒlƒbƒg‚ÅPHP5‚ðŽg‚¤‚ɂ́@YANOSHIN's Mind Garage
E‚³‚­‚çƒCƒ“ƒ^[ƒlƒbƒg‚É PHP5 ‚ðƒCƒ“ƒXƒg[ƒ‹@applesy16g
E‚³‚­‚ç‚̃Œƒ“ƒ^ƒ‹ƒT[ƒo‚ÖPHP5.2.0‚ðƒCƒ“ƒXƒg[ƒ‹@www.koruri.com
Eactivecollab


‚PD‰º‹L‚v‚…‚‚ƒTƒCƒg‚©‚çÅV”Å‚ÌUNIX”ÅPHP5‚ðƒ_ƒEƒ“ƒ[ƒh‚·‚éB
@@@http://www.php.net/downloads.php

@(1)uComplete Source Codev‚̉º‚́uPHP 5.x.x(tar.gz)v‚ðƒNƒŠƒbƒNB
@(2)ƒ~ƒ‰[ƒTƒCƒg‚ð‘I‘ð‚·‚é‰æ–Ê‚ª•\Ž¦‚³‚ê‚é‚̂ŁA“ú–{‚̃T[ƒo[‚ð‘I‚ñ‚Å
@@ƒNƒŠƒbƒN‚·‚é‚ƁAƒ_ƒEƒ“ƒ[ƒh‚ªŠJŽn‚³‚ê‚éB

‚QDƒ_ƒEƒ“ƒ[ƒh‚µ‚½ƒtƒ@ƒCƒ‹‚ð‰ð“€‚·‚éB
@@i‚�}‚̍ì‹Æ‚̓Œƒ“ƒ^ƒ‹ƒT[ƒo‘¤‚ÌtarƒRƒ}ƒ“ƒh‚ōs‚Á‚Ä‚à‚æ‚��j

‚RDFFFTP‚È‚Ç‚ÌFTPƒ\ƒtƒg‚ŁA‚³‚­‚çƒCƒ“ƒ^[ƒlƒbƒg‚ÌŽ©•ª‚̃Œƒ“ƒ^ƒ‹ƒT[ƒo—̈æ‚ɁA
@@"work"“™‚ŃtƒHƒ‹ƒ_‚ðìï¿½ï¿½‚·‚éB

@@/home/example/work

‚SDã‹L‚RD‚ōìï¿½ï¿½‚µ‚½ƒtƒHƒ‹ƒ_‚ցAã‹L‚QD‚ʼn𓀂µ‚½ƒtƒ@ƒCƒ‹‚Ì
@@"php-5.x.x"ƒtƒHƒ‹ƒ_‚ðƒoƒCƒiƒŠƒ‚[ƒh‚ŃAƒbƒvƒ[ƒh‚·‚éB

@@@¦–ñ4,000ƒtƒ@ƒCƒ‹‚ ‚é‚̂ŁAŽžŠÔ‚ª‚©‚©‚éB

‚TD"conf.sh"ƒtƒ@ƒCƒ‹‚ðìï¿½ï¿½‚·‚éB
@@“à—e‚͉º‹L‚Ì’Ê‚èB

#!/bin/sh

./configure 
--prefix=$HOME 
--with-config-file-path=$HOME/www/cgi-bin 
--program-suffix=5 
--with-pear=$HOME/share/pear5 
--enable-force-cgi-redirect 
--enable-mbstring=all 
--enable-mbregex 
--enable-mbstr-enc-trans 
--enable-versioning 
--enable-trans-sid 
--with-mysql 
--with-openssl=/usr 
--with-soap=yes 
--with-zlib=/usr 
--with-gd=/usr/local 
--with-jpeg-dir=/usr 
--with-freetype-dir=/usr 
--with-ttf 
--with-png-dir=/usr 
--with-curl

@@¦‚͏��•ï¿½ï¿½Žš

@@¦--with-pear=$HOME/share/pear5 @‚͕ύX‚µ‚Ȃ��‚�}‚ƁB
@@@•ÏX‚·‚é‚ƁAmakeƒtƒ@ƒCƒ‹‚É‚æ‚éƒCƒ“ƒXƒg[ƒ‹Žž‚ÉWarning‚ªo‚éB
@@@•ÏX‚µ‚½ƒpƒX‚̃tƒHƒ‹ƒ_‚ÉPEAR‚͍ìï¿½ï¿½‚³‚ê‚Ȃ��B

@@¦--with-config-file-path ‚́Aphp.ini‚̃pƒX‚ðŽw’è‚·‚é‚Ì‚Å‚ ‚Á‚āA
@@@ƒtƒ@ƒCƒ‹–¼‚ðŽw’è‚·‚é‚̂ł͂Ȃ��B
@@@]‚Á‚āA

@@@@@--with-config-file-path=$HOME/www/php.ini @

@@@‚Ə‘‚��‚Ä‚Í‚È‚ç‚Ȃ��B

@@¦ã‚Ì—á‚ł́A--with-config-file-path ‚́A/www ‚Ì’¼‰º‚Å‚Í‚È‚­A
@@@ÅI“I‚É php5.cgi ‚ðƒCƒ“ƒXƒg[ƒ‹‚·‚éƒfƒBƒŒƒNƒgƒŠ‚Æ‚µ‚½B

@@¦‰º‹LƒGƒ“ƒgƒŠ‚àŽQÆ‚̂�}‚ƁB
@@@‚³‚­‚çƒCƒ“ƒ^[ƒlƒbƒg‚ÅPHP5‚ð“�}“ü‚µAphp.ini‚ð•ÒW‚·‚é


‚VDFFFTP‚ŃŒƒ“ƒ^ƒ‹ƒT[ƒo‚ɐڑ�}‚µAphp5‚ðƒCƒ“ƒXƒg[ƒ‹‚µ‚½ƒtƒHƒ‹ƒ_‚́A
@@"configure"‚ª‚ ‚éŠK‘w‚ɁAã‹L‚UD‚ōìï¿½ï¿½‚µ‚½ƒtƒ@ƒCƒ‹‚ðƒAƒbƒvƒ[ƒh‚·‚éB

‚WDFFFTP‚ŃŒƒ“ƒ^ƒ‹ƒT[ƒo‚ɐڑ�}‚µAphp5‚ðƒCƒ“ƒXƒg[ƒ‹‚µ‚½ƒtƒHƒ‹ƒ_‚́A
@@"configure"ƒtƒ@ƒCƒ‹‚̃p[ƒ~ƒbƒVƒ‡ƒ“‚ð"755"‚ɕύX‚·‚éB

‚XDtelnet‚Őڑ�}‚µAphp5‚ðƒCƒ“ƒXƒg[ƒ‹‚µ‚½ƒtƒHƒ‹ƒ_‚́A
@@"configure"ƒtƒ@ƒCƒ‹‚Ì‚ ‚éŠK‘w‚Ɉړ®‚·‚éB

@@"cd xxxx" ‚ŁAƒtƒHƒ‹ƒ_‚Ɉړ®‚Å‚«‚éB(xxxx‚̓tƒHƒ‹ƒ_–¼j
@@"ls"ƒRƒ}ƒ“ƒh‚ŃtƒHƒ‹ƒ_“à‚̃tƒ@ƒCƒ‹ˆê——‚ð•\Ž¦‚·‚é‚�}‚Æ‚ª‚Å‚«‚éB

‚P‚ODƒRƒ}ƒ“ƒhƒ‰ƒCƒ“‚ŁA"sh conf.sh"‚Æ“ü—Í‚µAMakefile‚ðìï¿½ï¿½‚·‚éB

@@ƒƒbƒZ[ƒW‚ª’·‚­•\Ž¦‚³‚ꂽŒãA
@@"thank you for using PHP" ‚Æ•\Ž¦‚³‚ê‚ê‚΂n‚jB

‚P‚PDFFFTP‚ŃŒƒ“ƒ^ƒ‹ƒT[ƒo‚ɐڑ�}‚µA‰º‹Lƒtƒ@ƒCƒ‹‚̃p[ƒ~ƒbƒVƒ‡ƒ“‚ð"755"‚ɕύX‚·‚éB

@@/php-5.x.x/build/shtool

‚P‚QDƒRƒ}ƒ“ƒhƒ‰ƒCƒ“‚ŁA"make"‚Æ“ü—Í‚µAƒRƒ“ƒpƒCƒ‹‚ðŽÀŽ{B

‚P‚RDƒRƒ}ƒ“ƒhƒ‰ƒCƒ“‚ŁA"make install"‚Æ“ü—Í‚µAƒCƒ“ƒXƒg[ƒ‹‚ðŽÀs‚·‚éB

@@“r’†‚ŃGƒ‰[‚ªo‚½‚ç‰ðÍ‚µ‚đΉž‚ð‚Æ‚éB
@@‘Ήž‚ð‚Æ‚Á‚½‚ ‚ƁAÄ‚Ñ"make install"‚ŃCƒ“ƒXƒg[ƒ‹‚ªŒp‘�}‚³‚ê‚éB

‚P‚SDƒRƒ}ƒ“ƒhƒ‰ƒCƒ“‚ŃtƒHƒ‹ƒ_‚ðìï¿½ï¿½‚·‚éB(FFFTP‚ōìï¿½ï¿½‚·‚é‚ƁA‚È‚º‚©
@@@—]Œv‚ȃtƒ@ƒCƒ‹‚܂ōìï¿½ï¿½‚³‚ê‚é‚̂ŁAFFFTP‚ÍŽg—p‚µ‚Ȃ��‚�}‚Ɓj

@@/home/example/www/cgi-bin

@@ƒRƒ}ƒ“ƒhƒ‰ƒCƒ“F@cd‚Å /www ‚Ɉړ®‚µA

@@@@@@@@@@@mkdir cgi-bin

@@@@@@@@@@@‚Æ“ü—Í‚·‚éB

‚P‚TDphp5‚̃‚ƒWƒ…[ƒ‹‚ðƒRƒs[‚·‚éB

@@ƒRƒ}ƒ“ƒhƒ‰ƒCƒ“F@cd ..‚Ń‹[ƒg‚Ɉړ®‚µA

@@@@@@@@@@@cp ~/bin/php5 ~/www/cgi-bin/php5.cgi

@@@@@@@@@@@‚Æ“ü—Í‚·‚éB

‚P‚UD/home/example/www ‚̉º‚É.htaccess‚ð“o˜^‚·‚éB
@@Šù‚É‚ ‚é‚Ì‚Å‚ ‚ê‚΁A‰º‹L‚̃Rƒ}ƒ“ƒhƒ‰ƒCƒ“‚ð’ljÁ‚·‚éB

@(1)Šg’��Žq"php5"‚̃tƒ@ƒCƒ‹‚ðphp5‚Å“®‚©‚µ‚½‚��ê‡

@@Action php5-script /cgi-bin/php5.cgi
@@AddHandler php5-script .php5

@(2)Šg’��Žq"php"‚̃tƒ@ƒCƒ‹‚àphp5‚Å“®‚©‚µ‚½‚��ê‡

@@Action php5-script /cgi-bin/php5.cgi
@@AddHandler php5-script .php

@¦ŠeƒtƒHƒ‹ƒ_‚É.htaccess‚ðÝ’u‚µA
@AddHandler php5-script .php@‚Ü‚½‚Í
@AddHandler php5-script .php5@‚��Œä‚µ‚Ä‚à‚æ‚��B


‚P‚VDphp5.iniƒtƒ@ƒCƒ‹‚ðìï¿½ï¿½‚·‚éB

@@¦php5.ini‚́A‚³‚­‚çƒCƒ“ƒ^[ƒlƒbƒg•W€‚Ìphp4‚Ì‚à‚Ì‚ðˆø‚«Œp‚®‚ªA
@@@‚�}‚Ì—á‚ł́A
@@@@/home/example/www/cgi-bin/php5.ini
@@@@/home/example/www/php5.ini

@@@‚ðV‚½‚ɍìï¿½ï¿½‚·‚é‚�}‚ƁB

@@¦php5.ini ìï¿½ï¿½—á

@@@cgi.fix_pathinfo=1

@@@expose_php=off
@@@log_errors=on
@@@log_errors_max_len=4096
@@@error_log="/home/example/php5errlog"
@@@magic_quotes_gpc=off
@@@default_charset="UTF-8"
@@@file_uploads=off
@@@allow_url_include=off
@@@session.use_only_cookies=1


@@@output_handler = mb_output_handler
@@@mbstring.language = Japanese
@@@mbstring.internal_encoding = EUC-JP
@@@mbstring.http_input = auto
@@@mbstring.http_output = SJIS
@@@mbstring.encoding_translation = On
@@@mbstring.detect_order = auto
@@@mbstring.substitute_character = none;


‚P‚WD/home/example/www ‚̉º‚ɁAŠg’��Žqphp5‚ōìï¿½ï¿½‚µ‚½ƒtƒ@ƒCƒ‹‚Åphpinfo()‚ð
@@@ƒAƒbƒvƒ[ƒh‚µAphp5‚̊‹«‚ðŠm”F‚·‚éB

@@¦PEAR‚ðŽ¦‚·include_path‚ª³‚µ‚­‚È‚¯‚ê‚΁Aphp5.iniƒtƒ@ƒCƒ‹‚É
@@
@@@@include_path = ".:/home/example/share/pear5"

@@‚Æ‹Lq‚µ‚�N‚­‚�}‚ƁB
















‚�}‚Ì‹LŽ–‚ւ̃Rƒƒ“ƒg
ƒRƒƒ“ƒg‚ð‘‚­
‚�N–¼‘O: [•K{“ü—Í]

ƒ[ƒ‹ƒAƒhƒŒƒX:

ƒz[ƒ€ƒy[ƒWƒAƒhƒŒƒX:

ƒRƒƒ“ƒg: [•K{“ü—Í]

”FØƒR[ƒh: [•K{“ü—Í]


¦‰æ‘œ‚Ì’†‚̕��Žš‚𔼊p‚Å“ü—Í‚µ‚Ä‚­‚¾‚³‚��B
¦ƒuƒƒOƒI[ƒi[‚ª³”F‚µ‚½ƒRƒƒ“ƒg‚Ì‚Ý•\Ž¦‚³‚ê‚Ü‚·B

‚�}‚Ì‹LŽ–‚ւ̃gƒ‰ƒbƒNƒoƒbƒN

‚¿‚å‚Á‚Æ‚¾‚¯’ˆÓ‚ª•K—vu‚³‚­‚çƒCƒ“ƒ^[ƒlƒbƒg@ƒXƒ^ƒ“ƒ_[ƒhƒvƒ‰ƒ“‚ÅPHP5.2.3‚ðŽg‚¤ê‡v
Excerpt: ‚³‚­‚çƒCƒ“ƒ^[ƒlƒbƒg ‚³‚­‚çƒCƒ“ƒ^[ƒlƒbƒg‚̃Œƒ“ƒ^ƒ‹ƒT[ƒo[‚ł́A ƒXƒ^ƒ“ƒ_[ƒhƒvƒ‰ƒ“i500‰~/ŒŽA5,000‰~/”NjˆÈã‚ŁAPHPAMysql‚ªŽg‚¦AƒVƒFƒ‹ƒƒOƒCƒ“‚à‚ ‚邽‚߁AŽèŒy‚ÉLAMPŠÂ‹«‚Å..
Weblog: ‚˂˂Ƃ܂‚̏��•”‰®
Tracked: 2007-07-11 18:15