{"id":102,"date":"2008-12-21T22:18:03","date_gmt":"2008-12-21T14:18:03","guid":{"rendered":"http:\/\/www.alunwk.com\/?p=102"},"modified":"2008-12-21T22:18:03","modified_gmt":"2008-12-21T14:18:03","slug":"vista-apmp-install","status":"publish","type":"post","link":"https:\/\/wukan.me\/?p=102","title":{"rendered":"\u5173\u4e8evista\u4e0bapache+php+mysql+phpmyadmin\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e"},"content":{"rendered":"<p>\u5148\u8bf4\u4e00\u4e0b\u52a8\u673a\uff1a\u4eca\u5929\u51b3\u5b9a\u628a\u6570\u636e\u5e93\u7684\u5927\u4f5c\u4e1a\u4ecelinux\u4e0b\u642c\u5230windows\u6765\u505a\uff0c\u539f\u56e0\u662f\u5b9e\u5728\u6ca1\u5269\u591a\u5c11\u65f6\u95f4\u4e86\u3002\u5728windows\u4e0b\uff0c\u60f3\u5199\u7684\u65f6\u5019\u5c31\u4e0d\u7528\u91cd\u65b0\u542f\u52a8\u673a\u5668\u4e86\uff0c\u5728\u67d0\u79cd\u610f\u4e49\u4e0a\u8fd8\u662f\u4f1a\u8282\u7701\u8bb8\u591a\u65f6\u95f4\u3002<br \/>\n\u5173\u4e8e\u7f51\u4e0a\u8fd9\u65b9\u9762\u4ecb\u7ecd\u7684\u6587\u7ae0\u5df2\u7ecf\u975e\u5e38\u591a\u4e86\uff0c \u4e0d\u8bba\u662f\u4e2d\u6587\u7684\u8fd8\u662f\u82f1\u6587\u7684\uff0c\u4f46\u662f\u56e0\u4e3a\u673a\u5668\u73af\u5883\u4e5f\u662f\u5343\u53d8\u4e07\u5316\uff0c\u6240\u4ee5\u6bcf\u6b21\u6211\u914d\u7684\u65f6\u5019\u90fd\u662f\u4e1c\u770b\u770b\u897f\u770b\u770b\u3002\u8fd9\u6b21\u628a\u8fc7\u7a0b\u8bb0\u5f55\u4e0b\u6765\uff0c\u4ee5\u540e\u8981\u662f\u518d\u6709\u673a\u4f1a\u914d\u7f6e\u7684\u8bdd\u53c2\u7167\u8d77\u6765\u4e5f\u6bd4\u8f83\u65b9\u4fbf\uff0c\u5f53\u7136\u5982\u679c\u6709\u76f8\u540c\u914d\u7f6e\u7684\u7f51\u53cb\u770b\u5230\u4e86\uff0c\u4e5f\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u591f\u7ed9\u4e00\u4e9b\u5e2e\u52a9\u3002<br \/>\n\u5148\u8bf4\u4e00\u4e0b\u73af\u5883\uff0c<br \/>\n\u64cd\u4f5c\u7cfb\u7edf\uff1aWindows Vista Ultimate<br \/>\nApache_2.2.11+php_5.2.8+mysql_5.1.30+phpmyadmin_3.1.1<br \/>\napache:<br \/>\n\u5148\u7ed9\u4e00\u4e2a\u5b98\u65b9\u7684\u4e0b\u8f7d\u9875\u9762\uff1a<a href=\"http:\/\/httpd.apache.org\/download.cgi\" target=\"_blank\" rel=\"noopener\">http:\/\/httpd.apache.org\/download.cgi<\/a>\uff0c\u5728\u9875\u9762\u91cc\u9009\u4e2d&#8221; <a href=\"http:\/\/dev.xiaonei.com\/apache-mirror\/httpd\/binaries\/win32\/apache_2.2.11-win32-x86-openssl-0.9.8i.msi\">apache_2.2.11-win32-x86-openssl-0.9.8i.msi<\/a>&#8220;\u8fdb\u884c\u4e0b\u8f7d\u3002<br \/>\n\u4e0b\u8f7d\u540e\u53cc\u51fb\u8fdb\u884c\u5b89\u88c5\uff0c\u6211\u9009\u62e9\u7684\u5b89\u88c5\u4f4d\u7f6e\u662f&#8221;D:\/web\/apache2.2&#8243;\uff0c\u9009\u4e00\u4e2a\u77ed\u4e00\u4e9b\u7684\u6587\u4ef6\u8def\u5f84\uff0c\u4ee5\u540e\u914d\u7f6e\u4e5f\u6bd4\u8f83\u65b9\u4fbf\uff0c\u57fa\u672c\u4e0a\u5c31\u4e00\u76f4next\u76f4\u5230\u5b89\u88c5\u7ed3\u675f\uff0c\u9664\u4e86domain\u90a3\u4e2a\u9875\u9762\u586b&#8221;localhost&#8221;\u3002<br \/>\nvista\u5b89\u88c5\u4f1a\u63d0\u793a\u51fa\u9519\uff0c\u9700\u8981\u4e00\u4e9b\u989d\u5916\u7684\u5de5\u4f5c\uff0c\u9020\u6210\u9519\u8bef\u7684\u539f\u56e0\u662f\u56e0\u4e3a\u5b89\u5168\u6743\u9650\u7684\u539f\u56e0\u670d\u52a1\u4e0d\u80fd\u6b63\u786e\u5b89\u88c5\u3002<br \/>\n\u89e3\u51b3\u65b9\u6cd5\uff1a\u5728 \u547d\u4ee4\u63d0\u793a\u7b26\u73af\u5883\u4e0b\u8fdb\u5165&#8221;D:\/web\/apache2.2\/bin&#8221;\uff0c\u8f93\u5165&#8221;httpd -k install&#8221;\uff0c\u5c31\u53ef\u4ee5\u5b89\u88c5\u4e86\uff0c\u4e4b\u540e\u5728\u539f\u8def\u5f84\u8f93\u5165&#8221;httpd -k start&#8221;\uff0c\u542f\u52a8apache\u670d\u52a1\u5668<br \/>\n\u56e0\u4e3a\u6211\u7684\u673a\u5668UAC \u662f\u5173\u6389\u7684\uff0c\u6240\u4ee5\u8fd9\u4e00\u6b65\u5c31\u5ffd\u7565\u4e86\uff0c\u4e0d\u8fc7\u4ee5\u4ee5\u9632\u4e07\u4e00\u8fd8\u662f\u8c61\u5f81\u6027\u5730\u6572\u4e00\u4e0b\u547d\u4ee4<br \/>\n\u4e4b\u540e\u8c8c\u4f3c\u8fd8\u4f1a\u63d0\u793a\u53e6\u4e00\u4e2a\u9519\u8bef\uff0c\u5927\u610f\u662f\u8bf480\u7aef\u53e3\u4e0d\u80fd\u7ed1\u5b9a\uff0c\u53ef\u80fd\u662fIIS\u9020\u6210\u7684\u3002\u5728\u6d4f\u89c8\u5668\u91cd\u8f93\u5165&#8221;http:\/\/localhost&#8221;\uff0c\u770b\u80fd\u4e0d\u80fd\u63d0\u793a&#8221;It works&#8221;\uff0c\u53ef\u4ee5\u5c31\u8bf4\u660e\u670d\u52a1\u5668\u5df2\u7ecf\u8fd0\u8f6c\u8d77\u6765\u4e86\u3002\u5982\u679c\u53ef\u4ee5\u8fd0\u8f6c\u5c31\u4e0d\u7528\u7ba1\u90a3\u4e2a\u8b66\u544a\u4e86\uff0c\u5982\u679c\u4e0d\u884c\u7684\u8bddgoogle\u4e00\u4e0b\u8b66\u544a\u7684\u4fe1\u606f\uff0c\u7f51\u4e0a\u76f8\u5173\u7684\u6587\u7ae0\u8ddf\u6d77\u4e00\u6837\u3002<br \/>\nphp:<br \/>\n\u8fd8\u662f\u5148\u7ed9\u4e00\u4e2a\u5b98\u65b9\u7684\u4e0b\u8f7d\u9875\u9762\uff1a<a href=\"http:\/\/www.php.net\/downloads.php\" target=\"_blank\" rel=\"noopener\">http:\/\/www.php.net\/downloads.php<\/a>\uff0c\u6ce8\u610f\u8fd9\u91cc\u4e0d\u8981\u9009\u62e9installer\uff0c\u9009\u62e9<a href=\"http:\/\/cn2.php.net\/get\/php-5.2.8-Win32.zip\/from\/cn.php.net\/mirror\" target=\"_blank\" rel=\"noopener\">zip package<\/a>\u4e0b\u8f7d\u81ea\u884c\u89e3\u538b\u5b89\u88c5\u3002<br \/>\n\u6253\u5f00\u4e0b\u8f7d\u540e\u7684\u538b\u7f29\u6587\u4ef6\uff0c\u5c06\u6587\u4ef6\u89e3\u538b\u5230&#8221;D:\/web\/php&#8221;\u3002<br \/>\n\u8fd9\u91cc\u9700\u8981\u914d\u7f6e\u4e00\u4e0bapache\u670d\u52a1\u5668<br \/>\n\u9996\u5148\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939&#8221;www&#8221;\u5728&#8221;D:web&#8221;\u4e0b\uff0c\u7136\u540e\u5728\u6253\u5f00d:apache2.2conf\u4e0b\u7684httpd.conf \u6587\u4ef6<br \/>\n\u627e\u5230&#8221;DocumentRoot&#8221;\uff0c\u628a\u540e\u9762\u8ddf\u7740\u7684\u53e5\u5b50\u6539\u6210&#8221;D:webwww&#8221;\uff0c\u8fd9\u4e2a\u4ee3\u8868\u4f60\u5728\u6d4f\u89c8\u5668\u4e0b\u8f93&#8221;localhost&#8221;\uff0c\u670d\u52a1\u5668\u627e\u5230\u7684\u9ed8\u8ba4\u76ee\u5f55\uff0c\u5f53\u7136\u4ee5\u540e\u4f60\u628alocalhost\u6539\u6210\u522b\u7684\u57df\u540d\uff0c\u4f60\u8f93\u5165\u6539\u4e86\u7684\u57df\u540d\u5c31\u81ea\u52a8\u4f1a\u627e\u5230\u8fd9\u4e2a\u76ee\u5f55\u3002<br \/>\n\u5728\u4e00\u5927\u7fa4LoadModule\u4e0b\u9762\u6dfb\u4e0a\u4e0b\u9762\u4e24\u53e5\u8bdd\uff1a<br \/>\nLoadModule php5_module &#8220;D:\/web\/PHP\/php5apache2_2.dll&#8221;<br \/>\nPHPIniDir &#8220;D:\/web\/PHP&#8221;<br \/>\n\u53e6\u5916\u627e\u5230\u4e00\u5927\u5a36AddType\uff0c\u5728\u4e0b\u9762\u6dfb\u8fd9\u53e5\u8bdd\uff1a<br \/>\nAddType application\/x-httpd-php .php<br \/>\n\u8fd9\u6837\u5b50\u4f60\u7684apache\u670d\u52a1\u5668\u542f\u52a8\u4ee5\u540e\u5c31\u53ef\u4ee5\u8dd1php\u4e86\u3002<br \/>\n\u7136\u540e\u627e\u5230&#8221;DirectoryIndex index.html&#8221;\uff0c\u4fee\u6539\u4e3a&#8221;DirectoryIndex index.php index.html&#8221;<br \/>\n\u610f\u601d\u662f\u5c06\u9ed8\u8ba4\u4e3b\u9875\u7684\u6587\u4ef6\u540d\u8bbe\u7f6e\u4e3a\u5148\u5bfb\u627eindex.php\uff0c\u518d\u627eindex.html\u3002\u4ec0\u4e48\u610f\u601d\u5462\uff1f\u6bd4\u5982\u4f60\u8f93\u5165http:\/\/localhost\uff0capache\u4f1a\u5148\u627e\u4f60\u7f51\u7ad9\u76ee\u5f55(\u8fd9\u91cc\u6211\u4eec\u8bbe\u7f6e\u4e3a&#8221;D:webwww&#8221;)\u4e0b\u7684index.php\u6587\u4ef6\u5e76\u663e\u793a\u7ed3\u679c\uff0c\u5982\u679c\u6587\u4ef6\u4e0d\u5b58\u5728\u63a5\u4f1a\u53bb\u627eindex.html\u3002\u4e5f\u5c31\u662f\u4e3a\u4ec0\u4e48\u6211\u4eec\u5e73\u5e38\u4e0a\u7f51\u53ea\u7528\u8f93\u5165\u57df\u540d\u800c\u4e0d\u7528\u8f93\u5165\u6307\u5b9a\u663e\u793a\u54ea\u4e2a\u6587\u4ef6\uff0c\u56e0\u4e3a\u670d\u52a1\u5668\u4f1a\u81ea\u52a8\u6307\u5411\u9ed8\u8ba4\u7684\u4e3b\u9875\u6587\u4ef6\u3002<br \/>\n\u4e4b\u540e\u4fdd\u5b58httpd.conf\uff0c\u7136\u540e\u91cd\u542f\u4e00\u4e0bapache\u670d\u52a1\u5668\u3002<br \/>\n\u91cd\u542f\u65b9\u6cd5\u6709\u4e24\u79cd\uff0c\u7b2c\u4e00\u79cd\u6253\u5f00\u5f00\u59cb-&gt;\u7a0b\u5e8f-&gt;apache\u4e0b\u7684apache\u670d\u52a1\u7ba1\u7406\u5668\uff0c\u6253\u5f00\u4e00\u4e2a\u56fe\u5f62\u754c\u9762\u70b9&#8221;restart&#8221;\uff0c\u53e6\u5916\u4e00\u79cd\u65b9\u6cd5\u662f\u901a\u8fc7\u547d\u4ee4\u63d0\u793a\u7b26\u6765\u5230&#8221;D:webapache2.2bin&#8221;\uff0c\u8f93\u5165&#8221;httpd -k restart&#8221;\uff0c\u611f\u89c9\u540e\u9762\u4e00\u4e9b\u6bd4\u8f83\u4e13\u4e1a\uff0c\u6211\u6bd4\u8f83\u7ec6\u559c\u6b22\uff0c\u56e0\u4e3a\u5982\u679c\u51fa\u9519\u7684\u8bdd\u8fd8\u53ef\u4ee5\u770b\u5230\u9519\u8bef\u63d0\u793a\u4fe1\u606f\u3002<br \/>\n\u6211\u4eec\u6d4b\u8bd5\u4e00\u4e0b\uff0c\u6253\u5f00D:webwww\u6587\u4ef6\u5939\uff0c\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\uff0c\u6587\u4ef6\u540d\u4e3a:index.php\uff0c\u6253\u5f00\u6587\u4ef6\uff0c\u8f93\u5165\uff1a<br \/>\n&lt;?php phpinfo(); ?&gt;<br \/>\n\u7136\u540e\u6253\u5f00\u4e00\u4e2a\u6d4f\u89c8\u5668\uff0c\u8f93\u5165http:\/\/localhost\uff0c\u770b\u80fd\u4e0d\u80fd\u663e\u793aphp\u7684\u4fe1\u606f\uff0c\u53ef\u4ee5\u7684\u8bdd\u5c31\u4ee3\u8868\u6211\u4eec\u524d\u9762\u4e00\u7cfb\u5217\u7684\u914d\u7f6e\u90fd\u6210\u529f\u4e86\u3002\u8fd8\u6ca1\u5b8c\uff0c\u63a5\u4e0b\u6765\u914d\u7f6eMySQL<br \/>\nMySQL:<br \/>\n\u5148\u7ed9\u4e00\u4e2a\u5b98\u65b9\u4e0b\u8f7d\u9875\u9762\u5730\u5740\uff1a<a href=\"http:\/\/dev.mysql.com\/downloads\/mysql\/5.1.html#win32\" target=\"_blank\" rel=\"noopener\">http:\/\/dev.mysql.com\/downloads\/mysql\/5.1.html#win32<\/a>\uff0c\u9009Windows Essential(x86)\u8fdb\u884c\u4e0b\u8f7d\u3002<br \/>\n\u4e0b\u8f7d\u540e\u70b9\u51fb\u5b89\u88c5\u6587\u4ef6\u5f00\u59cb\u5b89\u88c5\uff0c\u5176\u4e2d\u8def\u5f84\u9009\u62e9D:webmysql\u3002<br \/>\n\u5b89\u88c5\u5b8c\u6bd5\u540e\u9009\u62e9\u914d\u7f6eMySQL\uff0c\u9009standard\uff0c\u8f93\u5165\u4f60\u7684root\u8d26\u53f7\u5bc6\u7801(\u4e00\u5b9a\u8981\u8bb0\u5f97)\uff0c\u7136\u540e\u70b9\u4e0b\u4e00\u6b65\u8ba9\u5b83\u914d\u7f6e\u5b8c\uff0c\u5230\u6b64MySQL\u5c31\u914d\u7f6e\u5b8c\u6bd5\u4e86\u3002<br \/>\n\u63a5\u4e0b\u6765\u7684\u5de5\u4f5c\u662f\u8981\u914d\u7f6ePHP\u8ba9\u5b83\u80fd\u591f\u96c6\u6210MySQL\u7684\u6a21\u5757\u3002<br \/>\n\u9996\u5148\u6253\u5f00php\u7684\u76ee\u5f55\u5c06php.ini-dist\u6587\u4ef6\u590d\u5236\u4e00\u4efd\u5e76\u6539\u6587\u4ef6\u540d\u4e3aphp.ini\u3002<br \/>\n\u6253\u5f00\u8be5\u6587\u4ef6\uff0c\u627e\u5230extension_dir\uff0c\u5c06\u524d\u9762\u7684\u5206\u53f7(\u5982\u679c\u6709\u7684\u8bdd)\u7ed9\u53bb\u6389\uff0c\u4ee3\u8868\u8fd9\u53e5\u8bdd\u4e0d\u88ab\u6ce8\u91ca\uff0c\u5c06&#8221;=&#8221;\u540e\u9762\u7684\u8def\u5f84\u6539\u4e3a&#8221;D:webphpext&#8221;\uff0c\u8fd9\u4e00\u6b65\u662f\u6307\u5b9aphp\u7684\u52a8\u6001\u6269\u5c55\u76ee\u5f55\u3002<br \/>\n\u7136\u540e\u628a\u4e0b\u9762\u51e0\u53e5\u7684\u524d\u9762\u7684\u6ce8\u91ca\u5206\u53f7\u53bb\u6389<br \/>\nextension=php_gd2.dll<br \/>\nextension=php_mbstring.dll<br \/>\nextension=php_mcrypt.dll<br \/>\nextension=php_mhash.dll<br \/>\nextension=php_mime_magic.dll<br \/>\nextension=php_ming.dll<br \/>\nextension=php_mysql.dll<br \/>\n\u4e0a\u9762\u662f\u53bb\u6389\u540e\u7684\u6837\u5b50&#8230;<br \/>\n\u4fdd\u5b58php.ini\u6587\u4ef6<br \/>\n\u7136\u540e\u8981\u628aphp\u76ee\u5f55\u4e0b\u7684 libmysql.dll\u6587\u4ef6copy\u5230windows\/system32\u4e0b<br \/>\n\u91cd\u542fapache\u670d\u52a1&#8230;<br \/>\n\u6d4b\u8bd5\u4e00\u4e0b\uff0c\u5728\u6d4f\u89c8\u5668\u8f93\u5165http:\/\/localhost\uff0c\u770bphpinfo()\u662f\u5426\u663e\u793a\u6709MySQL\u6a21\u5757\u3002\u5728\u6d4f\u89c8\u5668\u6309ctrl+F\uff0c\u8f93\u5165mysql\u770b\u627e\u4e0d\u627e\u5f97\u5230\uff0c\u627e\u5f97\u5230\u5c31\u8bf4\u660e\u914d\u7f6e\u6210\u529f\u4e86\u3002<br \/>\n\u4e00\u822c\u5982\u679c\u4f60\u6309\u6211\u7684\u6b65\u9aa4\u505a\u4e0b\u6765\u5e94\u8be5\u662f\u53ef\u4ee5\u7684\uff0c\u5982\u679c\u4e0d\u884c\u7684\u8bdd\u95ee\u9898\u5c31\u5f88\u590d\u6742\u4e86\uff0c\u5efa\u8bae\u8fd8\u662f\u4e0agooglegoogle\u4e00\u4e0b<br \/>\nphpmyadmin:<br \/>\n\u5230\u8fd9\u513f\u6211\u4eec\u7684\u5de5\u4f5c\u5df2\u7ecf\u5b8c\u621090%\u4e86\uff0cOMG\u4f60\u7adf\u7136\u575a\u6301\u770b\u5230\u4e86\u8fd9\u91cc\u3002\u8fd9\u5c31\u662fopen source\uff0c\u4e00\u5207\u90fd\u5f97\u9760\u4f60DIY\uff0c\u867d\u7136\u9ebb\u70e6\u4e86\u4e00\u4e9b\uff0c\u4f46\u8fd8\u662f\u86ee\u953b\u70bc\u80fd\u529b\u7684\uff0c\u5c24\u5176\u662f\u9047\u5230\u83ab\u540d\u5176\u5999\u7684\u95ee\u9898\u7684\u65f6\u5019\uff0c\u5982\u4f55\u5728\u5f3a\u5927\u7684\u641c\u7d22\u5f15\u64ce\u4e0a\u627e\u5230\u4f60\u9700\u8981\u7684\u4fe1\u606f\uff0c\u4e5f\u662f\u9700\u8981\u6280\u5de7\u7684\uff0c\u5475\u5475\u3002<br \/>\n\u5148\u7ed9\u51fa\u5b98\u65b9\u4e0b\u8f7d\u9875\u9762\uff1a<a href=\"http:\/\/www.phpmyadmin.net\/home_page\/downloads.php\" target=\"_blank\" rel=\"noopener\">http:\/\/www.phpmyadmin.net\/home_page\/downloads.php<br \/>\n<\/a>phpmyadmin\u5176\u5b9e\u5c31\u662f\u4e00\u4e2a\u56fe\u5f62\u5316\u7684MySQL\u7ba1\u7406\u8f6f\u4ef6\uff0c\u4e0d\u8fc7\u662f\u7528php\u5199\u7684\uff0c\u6240\u4ee5\u9700\u8981\u5c06\u4e0a\u9762\u4e09\u4e2a\u6b65\u9aa4\u90fd\u5b8c\u6210\u540e\u624d\u80fd\u4f7f\u7528\u5b83\u3002<br \/>\n\u8a00\u5f52\u6b63\u4f20\uff0c\u5c06\u4e0b\u8f7d\u540e\u7684\u538b\u7f29\u6587\u4ef6\u6253\u5f00\uff0c\u5c06\u91cc\u9762\u7684\u6587\u4ef6\u5939\u6574\u4e2a\u89e3\u538b\u5230D:webwww\u4e0b\uff0c\u7136\u540e\u5c06\u6587\u4ef6\u5939\u7684\u540d\u5b57\u6539\u6210phpmyadmin\u3002<br \/>\n\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165http:\/\/localhost\/phpmyadmin<br \/>\n\u5982\u679c\u6253\u5f00\u5c31\u8bf4\u660eOK\u4e86\uff0c\u8d26\u53f7\u8f93\u5165root\uff0c\u5bc6\u7801\u8f93\u5165\u5b89\u88c5mysql\u65f6\u6211\u8ba9\u4f60\u8bb0\u4f4f\u7684\u90a3\u4e00\u4e2a\uff0c\u5c31\u8fdb\u53bb\u4e86\u3002<br \/>\n\u5982\u679c\u5931\u8d25\u7684\u8bdd&#8230;<br \/>\n\u5982\u679c\u63d0\u793a\u7684\u4fe1\u606f\u662f\u8bf4php\u6ca1\u80fd\u8fde\u63a5mysql\u7684\u8bdd\uff0c\u8bf7\u53c2\u7167\u914d\u7f6eMySQL\u7684\u6bb5\u843d\uff1b\u5982\u679c\u63d0\u793a\u7684\u4e0d\u662f\u4e0a\u8ff0\u4fe1\u606f\uff0cgoogle\u5427&#8230;<br \/>\n\u5230\u8fd9\u91cc\u914d\u7f6e\u5c31\u5b8c\u6210\u4e86\uff0c\u5982\u679c\u6bcf\u4e00\u6b65\u6211\u7ed9\u7684\u6d4b\u8bd5\u6761\u4ef6\u90fd\u901a\u8fc7\u4e86\uff0c\u4eab\u53d7\u7528php\u5199\u7f51\u9875\u7684\u5feb\u611f\u5427\u3002\u63d0\u793a\u4e00\u4e0b\u5317\u822a\u7528jsp\u5199\u7f51\u9875\u7684\u540c\u5b66\uff0c\u636e\u8eab\u5728\u7f8e\u56fd\u7684\u7ae0\u9c7c\u540c\u5b66\u65e5\u5fd7\u7684\u8bf4\u6cd5\uff0c\u90a3\u8fb9\u662f\u6ca1\u4eba\u7528jsp\u7684\uff0c\u5927\u5bb6\u5e73\u5e38\u8fd8\u662f\u5c3d\u53ef\u80fd\u5730\u591a\u63a5\u89e6open source\u5427\u3002\u5077\u5077\u544a\u8bc9\u5927\u5bb6\uff0c\u5317\u822a\u662f\u6709\u4e00\u4e2a<a href=\"https:\/\/groups.google.com\/group\/beihang-open-source-club\" target=\"_blank\" rel=\"noopener\">open source\u793e\u56e2<\/a>\u7684\u54e6\uff0c\u70b9\u51fb\u94fe\u63a5\u6253\u5f00\u3002<br \/>\n\u6b22\u8fce\u5927\u5bb6\u4e0e\u6211\u4ea4\u6d41\u554a\uff0c\u5982\u679c\u6709\u4e0d\u660e\u767d\u6216\u8005\u62cd\u7816\u7684\u540c\u5b66\u5728\u4e0b\u9762\u7559\u8a00\u5c31\u597d\u4e86\uff0c\u6211\u4f1a\u5c3d\u6211\u8fd9\u4e2a\u83dc\u9e1f\u7684\u6700\u5927\u529b\u91cf\u7ed9\u5927\u5bb6\u89e3\u7b54\u7684\u3002<br \/>\n\u53c2\u8003\u6587\u7ae0\uff1a<br \/>\n1.<a href=\"http:\/\/drupalchina.org\/node\/2688\">Vista\u4e0b\u6700\u65b0\u7248Apache+PHP+MySQL+phpMyAdmin\u5b89\u88c5\u6307\u5357<\/a><br \/>\n2.<a href=\"http:\/\/edu.yesky.com\/edupxpt\/67\/2208567.shtml\">Win\u4e0b\u914d\u7f6eApache2,PHP5,MYSQL5,Zend<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u8bf4\u4e00\u4e0b\u52a8\u673a\uff1a\u4eca\u5929\u51b3\u5b9a\u628a\u6570\u636e\u5e93\u7684\u5927\u4f5c\u4e1a\u4ecelinux\u4e0b\u642c\u5230windows\u6765\u505a\uff0c\u539f\u56e0\u662f\u5b9e\u5728\u6ca1\u5269\u591a\u5c11\u65f6\u95f4\u4e86\u3002\u5728windows\u4e0b\uff0c\u60f3\u5199\u7684\u65f6\u5019\u5c31\u4e0d\u7528\u91cd\u65b0\u542f\u52a8\u673a\u5668\u4e86\uff0c\u5728\u67d0\u79cd\u610f\u4e49\u4e0a\u8fd8\u662f\u4f1a\u8282\u7701\u8bb8\u591a\u65f6\u95f4\u3002 \u5173\u4e8e\u7f51\u4e0a\u8fd9\u65b9\u9762\u4ecb\u7ecd\u7684\u6587\u7ae0\u5df2\u7ecf\u975e\u5e38\u591a\u4e86\uff0c \u4e0d\u8bba\u662f\u4e2d\u6587\u7684\u8fd8\u662f\u82f1\u6587\u7684\uff0c\u4f46\u662f\u56e0\u4e3a\u673a\u5668\u73af\u5883\u4e5f\u662f\u5343\u53d8\u4e07\u5316\uff0c\u6240\u4ee5\u6bcf\u6b21\u6211\u914d\u7684\u65f6\u5019\u90fd\u662f\u4e1c\u770b\u770b\u897f\u770b\u770b\u3002\u8fd9\u6b21\u628a\u8fc7\u7a0b\u8bb0\u5f55\u4e0b\u6765\uff0c\u4ee5\u540e\u8981\u662f\u518d\u6709\u673a\u4f1a\u914d\u7f6e\u7684\u8bdd\u53c2\u7167\u8d77\u6765\u4e5f\u6bd4\u8f83\u65b9\u4fbf\uff0c\u5f53\u7136\u5982\u679c\u6709\u76f8\u540c\u914d\u7f6e\u7684\u7f51\u53cb\u770b\u5230\u4e86\uff0c\u4e5f\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u591f\u7ed9\u4e00\u4e9b\u5e2e\u52a9\u3002 \u5148\u8bf4\u4e00\u4e0b\u73af\u5883\uff0c \u64cd\u4f5c\u7cfb\u7edf\uff1aWindows Vista Ultimate Apache_2.2.11+php_5.2.8+mysql_5.1.30+phpmyadmin_3.1.1 apache: \u5148\u7ed9\u4e00\u4e2a\u5b98\u65b9\u7684\u4e0b\u8f7d\u9875\u9762\uff1ahttp:\/\/httpd.apache.org\/download.cgi\uff0c\u5728\u9875\u9762\u91cc\u9009\u4e2d&#8221; apache_2.2.11-win32-x86-openssl-0.9.8i.msi&#8220;\u8fdb\u884c\u4e0b\u8f7d\u3002 \u4e0b\u8f7d\u540e\u53cc\u51fb\u8fdb\u884c\u5b89\u88c5\uff0c\u6211\u9009\u62e9\u7684\u5b89\u88c5\u4f4d\u7f6e\u662f&#8221;D:\/web\/apache2.2&#8243;\uff0c\u9009\u4e00\u4e2a\u77ed\u4e00\u4e9b\u7684\u6587\u4ef6\u8def\u5f84\uff0c\u4ee5\u540e\u914d\u7f6e\u4e5f\u6bd4\u8f83\u65b9\u4fbf\uff0c\u57fa\u672c\u4e0a\u5c31\u4e00\u76f4next\u76f4\u5230\u5b89\u88c5\u7ed3\u675f\uff0c\u9664\u4e86domain\u90a3\u4e2a\u9875\u9762\u586b&#8221;localhost&#8221;\u3002 vista\u5b89\u88c5\u4f1a\u63d0\u793a\u51fa\u9519\uff0c\u9700\u8981\u4e00\u4e9b\u989d\u5916\u7684\u5de5\u4f5c\uff0c\u9020\u6210\u9519\u8bef\u7684\u539f\u56e0\u662f\u56e0\u4e3a\u5b89\u5168\u6743\u9650\u7684\u539f\u56e0\u670d\u52a1\u4e0d\u80fd\u6b63\u786e\u5b89\u88c5\u3002 \u89e3\u51b3\u65b9\u6cd5\uff1a\u5728 \u547d\u4ee4\u63d0\u793a\u7b26\u73af\u5883\u4e0b\u8fdb\u5165&#8221;D:\/web\/apache2.2\/bin&#8221;\uff0c\u8f93\u5165&#8221;httpd -k install&#8221;\uff0c\u5c31\u53ef\u4ee5\u5b89\u88c5\u4e86\uff0c\u4e4b\u540e\u5728\u539f\u8def\u5f84\u8f93\u5165&#8221;httpd -k start&#8221;\uff0c\u542f\u52a8apache\u670d\u52a1\u5668 \u56e0\u4e3a\u6211\u7684\u673a\u5668UAC \u662f\u5173\u6389\u7684\uff0c\u6240\u4ee5\u8fd9\u4e00\u6b65\u5c31\u5ffd\u7565\u4e86\uff0c\u4e0d\u8fc7\u4ee5\u4ee5\u9632\u4e07\u4e00\u8fd8\u662f\u8c61\u5f81\u6027\u5730\u6572\u4e00\u4e0b\u547d\u4ee4 \u4e4b\u540e\u8c8c\u4f3c\u8fd8\u4f1a\u63d0\u793a\u53e6\u4e00\u4e2a\u9519\u8bef\uff0c\u5927\u610f\u662f\u8bf480\u7aef\u53e3\u4e0d\u80fd\u7ed1\u5b9a\uff0c\u53ef\u80fd\u662fIIS\u9020\u6210\u7684\u3002\u5728\u6d4f\u89c8\u5668\u91cd\u8f93\u5165&#8221;http:\/\/localhost&#8221;\uff0c\u770b\u80fd\u4e0d\u80fd\u63d0\u793a&#8221;It works&#8221;\uff0c\u53ef\u4ee5\u5c31\u8bf4\u660e\u670d\u52a1\u5668\u5df2\u7ecf\u8fd0\u8f6c\u8d77\u6765\u4e86\u3002\u5982\u679c\u53ef\u4ee5\u8fd0\u8f6c\u5c31\u4e0d\u7528\u7ba1\u90a3\u4e2a\u8b66\u544a\u4e86\uff0c\u5982\u679c\u4e0d\u884c\u7684\u8bddgoogle\u4e00\u4e0b\u8b66\u544a\u7684\u4fe1\u606f\uff0c\u7f51\u4e0a\u76f8\u5173\u7684\u6587\u7ae0\u8ddf\u6d77\u4e00\u6837\u3002 php: \u8fd8\u662f\u5148\u7ed9\u4e00\u4e2a\u5b98\u65b9\u7684\u4e0b\u8f7d\u9875\u9762\uff1ahttp:\/\/www.php.net\/downloads.php\uff0c\u6ce8\u610f\u8fd9\u91cc\u4e0d\u8981\u9009\u62e9installer\uff0c\u9009\u62e9zip package\u4e0b\u8f7d\u81ea\u884c\u89e3\u538b\u5b89\u88c5\u3002 \u6253\u5f00\u4e0b\u8f7d\u540e\u7684\u538b\u7f29\u6587\u4ef6\uff0c\u5c06\u6587\u4ef6\u89e3\u538b\u5230&#8221;D:\/web\/php&#8221;\u3002 \u8fd9\u91cc\u9700\u8981\u914d\u7f6e\u4e00\u4e0bapache\u670d\u52a1\u5668 \u9996\u5148\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939&#8221;www&#8221;\u5728&#8221;D:web&#8221;\u4e0b\uff0c\u7136\u540e\u5728\u6253\u5f00d:apache2.2conf\u4e0b\u7684httpd.conf \u6587\u4ef6 \u627e\u5230&#8221;DocumentRoot&#8221;\uff0c\u628a\u540e\u9762\u8ddf\u7740\u7684\u53e5\u5b50\u6539\u6210&#8221;D:webwww&#8221;\uff0c\u8fd9\u4e2a\u4ee3\u8868\u4f60\u5728\u6d4f\u89c8\u5668\u4e0b\u8f93&#8221;localhost&#8221;\uff0c\u670d\u52a1\u5668\u627e\u5230\u7684\u9ed8\u8ba4\u76ee\u5f55\uff0c\u5f53\u7136\u4ee5\u540e\u4f60\u628alocalhost\u6539\u6210\u522b\u7684\u57df\u540d\uff0c\u4f60\u8f93\u5165\u6539\u4e86\u7684\u57df\u540d\u5c31\u81ea\u52a8\u4f1a\u627e\u5230\u8fd9\u4e2a\u76ee\u5f55\u3002 \u5728\u4e00\u5927\u7fa4LoadModule\u4e0b\u9762\u6dfb\u4e0a\u4e0b\u9762\u4e24\u53e5\u8bdd\uff1a LoadModule php5_module &#8220;D:\/web\/PHP\/php5apache2_2.dll&#8221; PHPIniDir &#8220;D:\/web\/PHP&#8221; \u53e6\u5916\u627e\u5230\u4e00\u5927\u5a36AddType\uff0c\u5728\u4e0b\u9762\u6dfb\u8fd9\u53e5\u8bdd\uff1a AddType application\/x-httpd-php .php \u8fd9\u6837\u5b50\u4f60\u7684apache\u670d\u52a1\u5668\u542f\u52a8\u4ee5\u540e\u5c31\u53ef\u4ee5\u8dd1php\u4e86\u3002 \u7136\u540e\u627e\u5230&#8221;DirectoryIndex index.html&#8221;\uff0c\u4fee\u6539\u4e3a&#8221;DirectoryIndex index.php index.html&#8221; \u610f\u601d\u662f\u5c06\u9ed8\u8ba4\u4e3b\u9875\u7684\u6587\u4ef6\u540d\u8bbe\u7f6e\u4e3a\u5148\u5bfb\u627eindex.php\uff0c\u518d\u627eindex.html\u3002\u4ec0\u4e48\u610f\u601d\u5462\uff1f\u6bd4\u5982\u4f60\u8f93\u5165http:\/\/localhost\uff0capache\u4f1a\u5148\u627e\u4f60\u7f51\u7ad9\u76ee\u5f55(\u8fd9\u91cc\u6211\u4eec\u8bbe\u7f6e\u4e3a&#8221;D:webwww&#8221;)\u4e0b\u7684index.php\u6587\u4ef6\u5e76\u663e\u793a\u7ed3\u679c\uff0c\u5982\u679c\u6587\u4ef6\u4e0d\u5b58\u5728\u63a5\u4f1a\u53bb\u627eindex.html\u3002\u4e5f\u5c31\u662f\u4e3a\u4ec0\u4e48\u6211\u4eec\u5e73\u5e38\u4e0a\u7f51\u53ea\u7528\u8f93\u5165\u57df\u540d\u800c\u4e0d\u7528\u8f93\u5165\u6307\u5b9a\u663e\u793a\u54ea\u4e2a\u6587\u4ef6\uff0c\u56e0\u4e3a\u670d\u52a1\u5668\u4f1a\u81ea\u52a8\u6307\u5411\u9ed8\u8ba4\u7684\u4e3b\u9875\u6587\u4ef6\u3002 \u4e4b\u540e\u4fdd\u5b58httpd.conf\uff0c\u7136\u540e\u91cd\u542f\u4e00\u4e0bapache\u670d\u52a1\u5668\u3002 \u91cd\u542f\u65b9\u6cd5\u6709\u4e24\u79cd\uff0c\u7b2c\u4e00\u79cd\u6253\u5f00\u5f00\u59cb-&gt;\u7a0b\u5e8f-&gt;apache\u4e0b\u7684apache\u670d\u52a1\u7ba1\u7406\u5668\uff0c\u6253\u5f00\u4e00\u4e2a\u56fe\u5f62\u754c\u9762\u70b9&#8221;restart&#8221;\uff0c\u53e6\u5916\u4e00\u79cd\u65b9\u6cd5\u662f\u901a\u8fc7\u547d\u4ee4\u63d0\u793a\u7b26\u6765\u5230&#8221;D:webapache2.2bin&#8221;\uff0c\u8f93\u5165&#8221;httpd -k restart&#8221;\uff0c\u611f\u89c9\u540e\u9762\u4e00\u4e9b\u6bd4\u8f83\u4e13\u4e1a\uff0c\u6211\u6bd4\u8f83\u7ec6\u559c\u6b22\uff0c\u56e0\u4e3a\u5982\u679c\u51fa\u9519\u7684\u8bdd\u8fd8\u53ef\u4ee5\u770b\u5230\u9519\u8bef\u63d0\u793a\u4fe1\u606f\u3002 \u6211\u4eec\u6d4b\u8bd5\u4e00\u4e0b\uff0c\u6253\u5f00D:webwww\u6587\u4ef6\u5939\uff0c\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\uff0c\u6587\u4ef6\u540d\u4e3a:index.php\uff0c\u6253\u5f00\u6587\u4ef6\uff0c\u8f93\u5165\uff1a &lt;?php phpinfo(); ?&gt; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/wukan.me\/?p=102\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;\u5173\u4e8evista\u4e0bapache+php+mysql+phpmyadmin\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[19,79,85,90,91,124,128],"class_list":["post-102","post","type-post","status-publish","format-standard","hentry","category-5","tag-apache","tag-mysql","tag-open-source","tag-php","tag-phpmyadmin","tag-vista","tag-windows"],"_links":{"self":[{"href":"https:\/\/wukan.me\/index.php?rest_route=\/wp\/v2\/posts\/102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wukan.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wukan.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wukan.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wukan.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=102"}],"version-history":[{"count":0,"href":"https:\/\/wukan.me\/index.php?rest_route=\/wp\/v2\/posts\/102\/revisions"}],"wp:attachment":[{"href":"https:\/\/wukan.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wukan.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wukan.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}