Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Apache + PHP + MySql °²×°


ËùÐèÈí¼þ£¨×¢Òâ°æ±¾£¡£©£º
Apache2.2.3 
PHP5.1.5 
MySQL5.0.24
ÕâÈý¸öÈí¼þ¶¼ÊÇÃâ·ÑµÄ£¬¿É´Ó¹ÙÍøÉÏÏÂÔØ£¬Ä¿Ç°ÎÒËùÓеÄÈí¼þÃûΪ£º
apache_2.2.3-win32-x86-no_ssl.msi 
mysql-5.0.24-win32.zip 
php-5.1.5-Win32.zip
»ùÓÚwindows²Ù×÷ϵͳ£¬ÔÚWindows XPϰ²×°Ê¹Óãº
1¡¢°²×°¹ý³Ì£º 
Ê×ÏȰ²×°Apache·þÎñÆ÷£¬Ë«»÷apache_2.2.3-win32-x86-no_ssl.msi¼´¿É°²×°¡£ºÍÒ»°ã°²×°Ã»ÓÐʲôÁ½Ñù£¬¿É²ÉÓÃĬÈϰ²×°¡£ÕâÀïÑ¡ÓÃcomplete°²×°£¬°²×°Ä¿Â¼¿ÉÒÔÈÎÒâÑ¡Ôñ£¬ÕâÀïΪ£ºD:\Program Files\Apache Software Foundation\Apache2.2; 
½Ó׎«PHPѹËõ°ü£¨php-5.1.5-Win32.zip£©½âѹµ½Ò»¸öĿ¼ÀÀýÈ磺D:\php5 
×îºó°²×°MySQL£¬½âѹºóË«»÷Setup.exeÎļþ½øÐа²×°£¬°²×°¹ý³ÌÖÐ×îºÃд´½¨Ò»¸öÓû§²¢É趨ÃÜÂ룬ѡÔñ¿ÉÒÔÔÚÃüÁîÐÐÏÂÔËÐÐÑ¡Ï°²×°ÍêÖ®ºó¼´¿É½øÐÐÏêϸµÄÅäÖã¬ÈçÊý¾Ý¿âĿ¼£¨C:\database£©µÈµÈ¡£
2¡¢ÊµÏÖÖ÷ÒªÅäÖ㺠
°²×°ÊDZȽϼòµ¥µÄ¹ý³Ì£¬×îÖ÷ÒªµÄ»¹ÊÇÅäÖÃÎÊÌâ¡£
Ê×ÏÈʵÏÖPHPÓëApacheµÄÁ¬½Ó£¬ÔÚApache°²×°Ä¿Â¼ÏµÄconfĿ¼ÀïÓиöÅäÖÃÎļþhttpd.conf£¬ÓüÇʱ¾´ò¿ª£¬ÕÒµ½ÒÔϼ¸ÐУº 
1)Listen 80 
ServerName NerverWinter.domain:80 
2)#LoadModule ssl_module modules/mod_ssl.so 
3)DocumentRoot "d:/Program Files/Apache Software Foundation/phpdocuments" 
4)<Directory "d:/Program Files/Apache Software Foundation/phpdocuments"> 
5)DirectoryIndex index.html default.php 
6)AddType application/x-compress .Z 
AddType application/x-gzip .gz .tgz 
1£©ListenÊÇApache·þÎñÆ÷¼àÌý¶Ë¿Ú£¬Ä¬ÈÏΪ80£¬¿ÉÒÔ¸ü¸Ä£¬×¢ÒâServerName NerverWinter.domain:80ÕâÒ»ÐеĶ˿ںÅÒªºÍlistenµÄÒ»ÖÂ; 
2£©ÔÚ#LoadModule ssl_module modules/mod_ssl.soÏÂÃæÔö¼ÓÒ»ÐУº 
LoadModule php5_module modules/php5apache2.dll£¨×¢Ò⣺±ØÐ뽫php°²×°Ä¿Â¼ÀïµÄphp5apache2.dll¿½±´ÖÁApache°²×°Ä¿Â¼ÏµÄmodulesĿ¼£© 
3£©DocumentRootΪ·þÎñÆ÷Îĵµ¸ùĿ¼£¬ÎªÁ˹ÜÀíÎļþ£¬ÎÒ½«ÆäÉèΪD£º\wwwrootĿ¼£¨×Ô¼ºÊ×ÏÈÒª´´½¨¸ÃĿ¼£©
4£©½Ó×Å»¹ÒªÐÞ¸ÄÉÏÃæµÚ4ÏîµÄĿ¼ΪÉÏÃæÖ¸¶¨µÄ¸ùĿ¼µÄ


Ïà¹ØÎĵµ£º

windowsÏÂapache,mysql,php°²×°ÈÕ¼Ç

½ñÌì·ÏÁËÒ»ÌìµÄʱ¼äÀ´´Óаѻ·¾³´î½¨ºÃ£º×ö¸ö±Ê¼Ç
°²×°Ë³Ðò£º
apache->php->mysql
һЩעÒâµÄµØ·½¼ÇÏÂÀ´°É£º
1. apache Ö§³Ö php
    apache ÅäÖÃÎļþÏ£ºÐèÒªÐ޸ĵĵط½£º
       i.  PHPIniDir "F:/programs/php/"
    &n ......

PHPµÄereg()Óëeregi()µÄ²»Í¬¼°Ïàͬµã¡£¶Ô±È

ereg()
×Ö·û´®±È¶Ô½âÎö¡£
Óï·¨: int ereg(string pattern, string string, array [regs]);
·µ»ØÖµ: ÕûÊý/Êý×é
º¯ÊýÖÖÀà: ×ÊÁÏ´¦Àí
ÄÚÈÝ˵Ã÷
±¾º¯ÊýÒÔ pattern µÄ¹æÔòÀ´½âÎö±È¶Ô×Ö·û´® string¡£±È¶Ô½á¹û·µ»ØµÄÖµ·ÅÔÚÊý×é²ÎÊý regs Ö®ÖУ¬regs[0] ÄÚÈݾÍÊÇÔ­×Ö·û´® string¡¢regs[1] ΪµÚÒ»¸öºÏºõ¹æÔòµÄ×Ö·û´®¡¢regs[2 ......

XPÏÂIISÅäÖÃPHP ºÍMySQL

µÚÒ»²½£º ÏÂÔØºÍ°²×°PHP
php°æ±¾: php-5.2.10-Win32.zip
1.½âѹphpÎļþµ½ c:\php
2.½«phpÎļþ¼ÐÏ php.ini-dist ¸ÄÃûΪ php.ini ,È»ºóÕÒµ½extension_dir = "./" ¸ÄΪ extension_dir = "c:\php\ext" (´ó¸ÅÔÚ461ÐÐ)
3.È¥µô;extension=php_mysql.dll ǰµÄ";"×¢ÊÍ·ûºÅ (´ó¸ÅÔÚ589ÐÐ)(Èç¹ûûÓеϰ¿ÉÒÔ¼ÓÉÏÕâÃû»°.)
4.¸´ÖÆp ......

ÔÚÉú²ú»·¾³ÖÐʹÓÃphpÐÔÄܲâÊÔ¹¤¾ßxhprof

xhprofÊÇfacebook¿ªÔ´³öÀ´µÄÒ»¸öphpÐÔÄܲâÊÔ¹¤¾ß£¬Ò²¿ÉÒÔ³ÆÖ®Îªprofile¹¤¾ß£¬Õâ¸ö´Ê²»ÖªµÀÔõô·­Òë²Å±È½Ï´ïÒâ¡£¸ú֮ǰһֱʹÓõÄxdebugÏà±È£¬ÓкܶàÀàËÆÖ®´¦¡£ÒÔǰ¶ÔxdebugÓÐһЩ¼Ç¼»¹¿ÉÒÔ¹©²Î¿¼£¬µ«ÊÇËüµÄȱµãÊǶÔÐÔÄÜÓ°ÏìÌ«´ó£¬¼´±ãÊÇ¿ªÆôÁËprofiler_enable_trigger²ÎÊý£¬ÓÃÔÚÉú²ú»·¾³ÖÐÒ²ÊDzҲ»È̶ã¬cpuÁ¢¿Ì¾Íì­µ½high ......

php³ÌÐòÌáËÙÔ­Àí·ÖÎö

Ô­Ìù:http://www.paitoubing.cn/blog/tag/apc
php³ÌÐòÌáËÙÔ­Àí·ÖÎö
2008Äê7ÔÂ19ÈÕ
ûÓÐÆÀÂÛ


¹Ø¼ü´Ê£ºxCache,Zend Accelerator,memcahced,xdebug£¬Zend Optimizer,APC.
»º³å²ã¼¶±ðµÄÓÅ»¯
xCacheÊÇ°Ñ PHP ²Ù×÷Â뻺´æµ½ÄÚ´æÖÐµÄ PHP À©Õ¹ÖУ¬XCache ½«±ÜÃâ´ú¼Û¸ß°ºÇÒ²»±ØÒªµÄ»¨·ÑÀ´ÖØÐ±àÒëÏ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ