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ÏîµÄĿ¼ΪÉÏÃæÖ¸¶¨µÄ¸ùĿ¼µÄ
Ïà¹ØÎĵµ£º
½ñÌì·ÏÁËÒ»ÌìµÄʱ¼äÀ´´Óаѻ·¾³´î½¨ºÃ£º×ö¸ö±Ê¼Ç
°²×°Ë³Ðò£º
apache->php->mysql
һЩעÒâµÄµØ·½¼ÇÏÂÀ´°É£º
1. apache Ö§³Ö php
apache ÅäÖÃÎļþÏ£ºÐèÒªÐ޸ĵĵط½£º
i. PHPIniDir "F:/programs/php/"
&n ......
PHPÖ®¸¸Rasmus LerdorfÔÚ»¥ÁªÍø¼¼Êõ¾«Ó¢ÂÛ̳Éϱíʾ£¬¿ª·¢ºÍ»¥¶¯ÊÇÍøÕ¾³É¹¦µÄ»ù´¡¡£
¡¡¡¡RasmusÒÔÑÇÂíÑ·ºÍÑÅ»¢¾ÙÀý£¬“ÕâЩÍøÕ¾Èç¹ûûÓÐÓû§µÄ»°£¬×öµÃÔÙƯÁÁҲʲô¶¼²»ÊÇ”¡£RasmusÈÏΪ£¬ÍøÕ¾Ò»¿ªÊ¼Ó뱨ֽһÑù£¬½ö½öÊÇ“µ¥Ïò½»Á÷”ÌṩÐÅÏ¢£¬ÓÐÈËÀ´¿´¼´¿É¡£
¡¡¡¡“µ«ÊǶÔÏÖ´úµÄÍøÕ¾À´Ëµ£¬ÕâÒÑ ......
ÕâÒ»½Ú¿ÎµÄÄÚÈݱȽÏÉÙ£¬Ö÷Òª½²Á˳éÏóÀàºÍ³éÏó·½·¨¡£
³éÏóÀàÊÇÖ¸º¬ÓгéÏó·½·¨µÄÀ࣬³éÏóÀàÖÁÉÙÒª°üº¬Ò»¸ö³éÏó·½·¨¡£ÓÃabstract¹Ø¼ü×Ö¶¨Òå³éÏó·½·¨ºÍÀà¡£
³éÏó·½·¨µÄÌصãÊÇÖ»Óз½·¨Ãû£¬²»°üº¬·½·¨Ì壬¼´Ã»Óз½·¨ÊµÏÖ£¬¾ßÌåÌåÏÖÔÚ´úÂëÖоÍÊdzéÏó·½·¨²»°üº¬´óÀ¨ºÅ{}¡£
³éÏóÀ಻Äܱ»ÊµÀý»¯£¬Ö»Äܱ»¼Ì³Ð£¬¼Ì³ÐµÄ×ÓÀà±ØÐëÖØÔظ¸ ......
ÔÌù:http://www.paitoubing.cn/blog/tag/apc
php³ÌÐòÌáËÙÔÀí·ÖÎö
2008Äê7ÔÂ19ÈÕ
ûÓÐÆÀÂÛ
¹Ø¼ü´Ê£ºxCache,Zend Accelerator,memcahced,xdebug£¬Zend Optimizer,APC.
»º³å²ã¼¶±ðµÄÓÅ»¯
xCacheÊÇ°Ñ PHP ²Ù×÷Â뻺´æµ½ÄÚ´æÖÐµÄ PHP À©Õ¹ÖУ¬XCache ½«±ÜÃâ´ú¼Û¸ß°ºÇÒ²»±ØÒªµÄ»¨·ÑÀ´ÖØбàÒëÏ ......