{"id":100,"date":"2016-05-12T11:17:02","date_gmt":"2016-05-12T03:17:02","guid":{"rendered":"http:\/\/www.lnzdl.com\/blog\/?p=100"},"modified":"2016-05-12T11:17:02","modified_gmt":"2016-05-12T03:17:02","slug":"windows%e7%8e%af%e5%a2%83%e4%b8%8b%e7%9a%84php%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%e6%90%ad%e5%bb%ba-%ef%bc%88apachemysqlphp%ef%bc%89","status":"publish","type":"post","link":"http:\/\/www.lnzdl.com\/blog\/windows%e7%8e%af%e5%a2%83%e4%b8%8b%e7%9a%84php%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%e6%90%ad%e5%bb%ba-%ef%bc%88apachemysqlphp%ef%bc%89\/","title":{"rendered":"Windows\u73af\u5883\u4e0b\u7684PHP\u5f00\u53d1\u73af\u5883\u642d\u5efa \uff08apache+mysql+php\uff09"},"content":{"rendered":"<p>\u57fa\u4e8eWindows\u73af\u5883\u4e0b\u7684PHP\u5f00\u53d1\u73af\u5883\u642d\u5efa \uff08apache+mysql+php\uff09 <\/p>\n<p><strong>\u4e00\u3001\u51c6\u5907\u5de5\u4f5c<\/strong> <\/p>\n<p>Apache2.2.11 <\/p>\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/www.apache.org\/\">http:\/\/www.apache.org<\/a> <\/p>\n<p>MySQL5.0 <\/p>\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/www.mysql.com\/\">http:\/\/www.mysql.com<\/a> <\/p>\n<p>PHP5.2.9 <\/p>\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/www.php.net\/\">http:\/\/www.php.net<\/a> <\/p>\n<p>\u4e8c\u3001\u914d\u7f6ePHP <\/p>\n<p>1\u3001 \u5c06php-5.2.9-win32.zip\u89e3\u538b\u7f29\u5230\u6307\u5b9a\u4f4d\u7f6e\uff08\u5982C:\\ \uff09\uff0c\u5e76\u5c06\u5176\u6539\u4e3aphp[\u5982\u4e0b\u56fe] <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092951.jpg\" width=\"620\" height=\"237\"> <\/p>\n<p>2\u3001\u6253\u5f00php\u6587\u4ef6\u5939\uff0c\u5e76\u5c06php.ini-dist\u66f4\u540d\u4e3aphp.ini[\u5982\u4e0b\u56fe] <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092952.jpg\"> <\/p>\n<p>3\u3001 \u53cc\u51fbphp.ini\uff0c\u8fdb\u5165\u5230php.ini\u7684\u7f16\u8f91\u72b6\u6001 <\/p>\n<p>4\u3001 \u67e5\u627eextension=php_gd2.dll\u548cextension=php_mysql.dll\uff0c\u5e76\u53bb\u6389\u5176\u524d\u9762\u7684\u5206\u53f7(;)\uff0c\u4fdd\u5b58\u8bbe\u7f6e\uff0c\u7136\u540e\u5173\u95ed\u6587\u4ef6[\u5982\u4e0b\u56fe] <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092953.jpg\"> <\/p>\n<p>5\u3001 \u5c06php\/ext\u6587\u4ef6\u5939\u5185\u7684php_gd2.dll\u548cphp_mysql.dll\u590d\u5236\u5230c:\\windows\\system32 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092954.jpg\"> <\/p>\n<p>6\u3001 \u5c06php\u6587\u4ef6\u5939\u4e0b\u7684libmysql.dll\u590d\u5236\u5230c:\\windows\\system32 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092955.jpg\"> <\/p>\n<p>7.\u4fdd\u5b58\u8bbe\u7f6e <\/p>\n<p>\u4e09\u3001\u5b89\u88c5MySQL <\/p>\n<p>1.\u53cc\u51fbMySQL\u5b89\u88c5\u6587\u4ef6\uff0c\u51fa\u73b0\u5982\u4e0b\u56fe\u6240\u793a\u7684\u754c\u9762 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092956.jpg\"> <\/p>\n<p>2.\u9009\u62e9\u5b89\u88c5\u7c7b\u578b\uff1aTypical(\u5178\u578b\u5b89\u88c5)\u3001Custom(\u81ea\u5b9a\u4e49\u5b89\u88c5) <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092957.jpg\"> <\/p>\n<p>3.\u7cfb\u7edf\u63d0\u793a\u6309\u7167\u5178\u578b\u5b89\u88c5\u7684\u914d\u7f6e\u5982\u4e0b\u56fe\u793a\u6240\u793a <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092958.jpg\"> <\/p>\n<p>4.\u5b89\u88c5\u8fdb\u5ea6\u6761 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092959.jpg\"> <\/p>\n<p>5.\u5e7f\u544a1 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092960.jpg\"> <\/p>\n<p>6.\u5e7f\u544a2 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092961.jpg\"> <\/p>\n<p>7.\u8be2\u95ee\u662f\u5426\u8fdb\u884cMySQL\u670d\u52a1\u5668\u7684\u914d\u7f6e <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092962.jpg\"> <\/p>\n<p>8.MySQL\u670d\u52a1\u5668\u914d\u7f6e\u5411\u5bfc\u7684\u6b22\u8fce\u754c\u9762 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092963.jpg\"> <\/p>\n<p>9.\u9009\u62e9\u914d\u7f6e\u7c7b\u578b:Detailed(\u8be6\u7ec6\u914d\u7f6e)\u3001Standard(\u6807\u51c6\u914d\u7f6e) <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092964.jpg\"> <\/p>\n<p>10.\u9009\u62e9\u670d\u52a1\u5668\u7c7b\u578b\uff1aDeveloper Machine\uff08\u5f00\u53d1\u6d4b\u8bd5\u7c7b\uff0cMySQL\u5360\u7528\u5f88\u5c11\u8d44\u6e90\uff09\u201d\u3001\u201cServer Machine\uff08\u670d\u52a1\u5668\u7c7b\u578b\uff0cMySQL\u5360\u7528\u8f83\u591a\u8d44\u6e90\uff09\u201d\u3001\u201cDedicated&nbsp; MySQL Server Machine\uff08\u4e13\u95e8\u7684\u6570\u636e\u5e93\u670d\u52a1\u5668\uff0cMySQL\u5360\u7528\u6240\u6709\u53ef\u7528\u8d44\u6e90\uff09\u201d <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092965.jpg\"><br \/>11.\u9009\u62e9MySQL\u6570\u636e\u5e93\u7684\u7528\u9014\uff1aMultifunctional Database\uff08\u901a\u7528\u591a\u529f\u80fd\u578b\uff0c\u597d\uff09\u201d\u3001\u201cTransactional Database Only\uff08\u670d\u52a1\u5668\u7c7b\u578b\uff0c\u4e13\u6ce8\u4e8e\u4e8b\u52a1\u5904\u7406\uff0c\u4e00\u822c\uff09\u201d\u3001\u201cNon-Transactional Database Only\uff08\u975e\u4e8b\u52a1\u5904\u7406\u578b\uff0c\u8f83\u7b80\u5355\uff0c\u4e3b\u8981\u505a\u4e00\u4e9b\u76d1\u63a7\u3001\u8bb0\u6570\u7528\uff0c\u5bf9MyISAM\u6570\u636e\u7c7b\u578b\u7684\u652f\u6301\u4ec5\u9650\u4e8enon-transactional\uff09 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092966.jpg\"> <\/p>\n<p>12. \u5bf9InnoDB Tablespace\u8fdb\u884c\u914d\u7f6e\uff0c\u5c31\u662f\u4e3aInnoDB \u6570\u636e\u5e93\u6587\u4ef6\u9009\u62e9\u4e00\u4e2a\u5b58\u50a8\u7a7a\u95f4\uff0c\u5982\u679c\u4fee\u6539\u4e86\uff0c\u8981\u8bb0\u4f4f\u4f4d\u7f6e\uff0c\u91cd\u88c5\u7684\u65f6\u5019\u8981\u9009\u62e9\u4e00\u6837\u7684\u5730\u65b9\uff0c\u5426\u5219\u53ef\u80fd\u4f1a\u9020\u6210\u6570\u636e\u5e93\u635f\u574f\u3002 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092967.jpg\"> <\/p>\n<p>13. \u9009\u62e9\u60a8\u7684\u7f51\u7ad9\u7684\u4e00\u822cmysql\u8bbf\u95ee\u91cf\uff0c\u540c\u65f6\u8fde\u63a5\u7684\u6570\u76ee\uff0c\u201cDecision Support(DSS)\/OLAP\uff0820\u4e2a\u5de6\u53f3\uff09\u201d\u3001\u201cOnline Transaction Processing(OLTP)\uff08500\u4e2a\u5de6\u53f3\uff09\u201d\u3001\u201cManual Setting\uff08\u624b\u52a8\u8bbe\u7f6e\uff0c\u81ea\u5df1\u8f93\u4e00\u4e2a\u6570\uff09\u201d <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092968.jpg\"> <\/p>\n<p>14. \u662f\u5426\u542f\u7528TCP\/IP\u8fde\u63a5\uff0c\u8bbe\u5b9a\u7aef\u53e3\uff0c\u5982\u679c\u4e0d\u542f\u7528\uff0c\u5c31\u53ea\u80fd\u5728\u81ea\u5df1\u7684\u673a\u5668\u4e0a\u8bbf\u95eeMySQL\u6570\u636e\u5e93\u4e86 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092969.jpg\"> <\/p>\n<p>15. \u5bf9MySQL\u9ed8\u8ba4\u6570\u636e\u5e93\u8bed\u8a00\u7f16\u7801\u8fdb\u884c\u8bbe\u7f6e <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092970.jpg\"> <\/p>\n<p>16. \u9009\u62e9\u662f\u5426\u5c06MySQL\u5b89\u88c5\u4e3awindows\u670d\u52a1\uff0c\u8fd8\u53ef\u4ee5\u6307\u5b9aService Name\uff08\u670d\u52a1\u6807\u8bc6\u540d\u79f0\uff09\uff0c\u662f\u5426\u5c06mysql\u7684bin\u76ee\u5f55\u52a0\u5165\u5230Windows PATH <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092971.jpg\"> <\/p>\n<p>17. \u8be2\u95ee\u662f\u5426\u8981\u4fee\u6539\u9ed8\u8ba4root\u7528\u6237\uff08\u8d85\u7ea7\u7ba1\u7406\uff09\u7684\u5bc6\u7801\uff08\u9ed8\u8ba4\u4e3a\u7a7a\uff09 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092972.jpg\"> <\/p>\n<p>18. \u786e\u8ba4\u8bbe\u7f6e\u65e0\u8bef\uff0c\u5982\u679c\u6709\u8bef\uff0c\u6309\u201cBack\u201d\u8fd4\u56de\u68c0\u67e5\u3002\u6309\u201cExecute\u201d\u4f7f\u8bbe\u7f6e\u751f\u6548\u3002 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092973.jpg\"> <\/p>\n<p>\u56db\u3001\u5b89\u88c5Apache <\/p>\n<p>1\u3001\u53cc\u51fbApache\u7684\u5b89\u88c5\u6587\u4ef6\uff0c\u51fa\u73b0\u5982\u4e0b\u56fe\u6240\u793a\u7684\u754c\u9762 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092974.jpg\"> <\/p>\n<p>2\u3001\u786e\u8ba4\u540c\u610f\u8f6f\u4ef6\u5b89\u88c5\u4f7f\u7528\u8bb8\u53ef\u6761\u4f8b\uff0c\u9009\u62e9\u201cI accept the terms in the license agreement\u201d\uff0c\u70b9\u201cNext\u201d\u7ee7\u7eed <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092975.jpg\"> <\/p>\n<p>3\u3001\u5c06Apache\u5b89\u88c5\u5230Windows\u4e0a\u7684\u4f7f\u7528\u987b\u77e5\uff0c\u8bf7\u9605\u8bfb\u5b8c\u6bd5\u540e\uff0c\u6309\u201cNext\u201d\u7ee7\u7eed <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092976.jpg\"> <\/p>\n<p>4\u3001\u8bbe\u7f6e\u7cfb\u7edf\u4fe1\u606f\uff0c\u5728Network Domain\u4e0b\u586b\u5165\u60a8\u7684\u57df\u540d\uff08\u6bd4\u5982\uff1awuhua.com\uff09\uff0c\u5728Server Name\u4e0b\u586b\u5165\u60a8\u7684\u670d\u52a1\u5668\u540d\u79f0\uff08\u6bd4\u5982\uff1a<a href=\"http:\/\/www.wuhua.com\/\">www.wuhua.com<\/a>\uff0c\u4e5f\u5c31\u662f\u4e3b\u673a\u540d\u52a0\u4e0a\u57df\u540d\uff09\uff0c\u5728Administrator&#8217;s Email Address\u4e0b\u586b\u5165\u7cfb\u7edf\u7ba1\u7406\u5458\u7684\u8054\u7cfb\u7535\u5b50\u90ae\u4ef6\u5730\u5740\uff08\u6bd4\u5982\uff1a<a href=\"http:\/\/www.gngu.net\/phphj\/2011\/0925\/mailto:admin@wuhua.com\">admin@wuhua.com<\/a>\uff09\uff0c\u4e0a\u8ff0\u4e09\u6761\u4fe1\u606f\u4ec5\u4f9b\u53c2\u8003\uff0c\u5176\u4e2d\u8054\u7cfb\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u4f1a\u5728\u5f53\u7cfb\u7edf\u6545\u969c\u65f6\u63d0\u4f9b\u7ed9\u8bbf\u95ee\u8005\uff0c\u4e09\u6761\u4fe1\u606f\u5747\u53ef\u4efb\u610f\u586b\u5199\uff0c\u65e0\u6548\u7684\u4e5f\u884c\u3002\u4e0b\u9762\u6709\u4e24\u4e2a\u9009\u62e9\uff0c\u56fe\u7247\u4e0a\u9009\u62e9\u7684\u662f\u4e3a\u7cfb\u7edf\u6240\u6709\u7528\u6237\u5b89\u88c5\uff0c\u4f7f\u7528\u9ed8\u8ba4\u768480\u7aef\u53e3\uff0c\u5e76\u4f5c\u4e3a\u7cfb\u7edf\u670d\u52a1\u81ea\u52a8\u542f\u52a8\uff1b\u53e6\u5916\u4e00\u4e2a\u662f\u4ec5\u4e3a\u5f53\u524d\u7528\u6237\u5b89\u88c5\uff0c\u4f7f\u7528\u7aef\u53e38080\uff0c\u624b\u52a8\u542f\u52a8\u3002\u4e00\u822c\u9009\u62e9\u5982\u56fe\u6240\u793a\u3002\u6309\u201cNext\u201d\u7ee7\u7eed\u3002 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092977.jpg\"> <\/p>\n<p>5\u3001\u9009\u62e9\u5b89\u88c5\u7c7b\u578b:typical(\u5178\u578b\u5b89\u88c5)\u3001custom(\u81ea\u5b9a\u4e49\u5b89\u88c5) <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092978.jpg\"> <\/p>\n<p>6\u3001\u9009\u62e9\u5b89\u88c5\u7684\u7ec4\u4ef6\u53ca\u5b89\u88c5\u4f4d\u7f6e <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092979.jpg\"> <\/p>\n<p>7.\u6307\u5b9a\u5b89\u88c5\u4f4d\u7f6e\u4e3ac:\\apache\uff0c\u5f53\u7136\u7528\u6237\u4e5f\u53ef\u4ee5\u9009\u62e9\u81ea\u5b9a\u4e49\u5b89\u88c5\u3002\u5982\u679c\u9009\u62e9\u81ea\u5b9a\u5b89\u88c5\u7684\u8bdd\uff0c\u5c31\u7701\u7565\u4e86\u7b2c6\u30017\u6b65 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092980.jpg\"> <\/p>\n<p>8.\u8fd4\u56de\u7528\u6237\u521a\u624d\u8bbe\u7f6e\u7684\u754c\u9762 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092981.jpg\"> <\/p>\n<p>9.\u786e\u8ba4\u8bbe\u7f6e\uff0c\u5982\u679c\u7528\u6237\u611f\u89c9\u6709\u54ea\u4e9b\u8bbe\u7f6e\u8fd8\u9700\u8981\u8fdb\u884c\u8c03\u6574\uff0c\u53ef\u4ee5\u5355\u51fb\u201dBack\u201d\u6309\u94ae\u540e\uff0c\u91cd\u65b0\u8fdb\u884c\u8bbe\u7f6e\uff0c\u5982\u679c\u611f\u89c9\u8bbe\u7f6e\u65e0\u8bef\u4e86\uff0c\u53ef\u4ee5\u8fdb\u63a5\u5355\u51fb\u201dInstall\u201d\u6309\u94ae\u8fdb\u884c\u5b89\u88c5\uff01 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092982.jpg\"> <\/p>\n<p>10\u3001\u51fa\u73b0\u5b89\u88c5\u8fdb\u5ea6\u6761 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092983.jpg\"> <\/p>\n<p>11\u3001\u5b89\u88c5\u5b8c\u6bd5 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092984.jpg\"> <\/p>\n<p>\u5728\u6b63\u5e38\u60c5\u51b5\u4e0b\uff0c\u5728\u5c4f\u5e55\u53f3\u4e0b\u89d2\u51fa\u73b0\u4e86Apache\u7684\u56fe\u6807\uff1b\u800c\u4e14\u8fd9\u4e2a\u56fe\u6807\u7684\u989c\u8272\u5e94\u8be5\u662f\u7eff\u8272\u7684\uff0c\u8868\u793aApache\u5df2\u7ecf\u5728\u6b63\u5e38\u8fd0\u884c\u4e86\uff0c\u4f46\u6709\u65f6\u53ef\u80fd\u51fa\u73b0\u7ea2\u8272\u7684\u60c5\u51b5\uff0c\u8fd9\u8868\u660eApache\u914d\u7f6e\u7684\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4e86\u9519\u8bef\uff0c\u6ca1\u6709\u5173\u7cfb\uff0c\u6211\u4eec\u4e00\u4f1a\u518d\u6765\u8c03\u8bd5\u8fd9\u4e2a\u9519\u8bef\uff01 <\/p>\n<p>\u4e94\u3001\u914d\u7f6eApache <\/p>\n<p>1. \u6253\u5f00Apache\u7684\u914d\u7f6e\u6587\u4ef6\u2014httpd.conf\uff0c\u6253\u5f00\u65b9\u6cd5\u5982\u4e0b\u56fe <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092985.jpg\" width=\"620\" height=\"165\"> <\/p>\n<p>2. \u67e5\u627e\u5173\u952e\u5b57\u201cDocumentRoot\u201d\uff08\u4e5f\u5c31\u662f\u7f51\u7ad9\u6839\u76ee\u5f55\uff09\uff0c\u627e\u5230\u5982\u4e0b\u56fe\u6240\u793a\u5730\u65b9\uff0c\u7136\u540e\u5c06&#8221;&#8221;\u5185\u7684\u5730\u5740\u6539\u6210\u4f60\u7684\u7f51\u7ad9\u6839\u76ee\u5f55\uff0c\u5730\u5740\u683c\u5f0f\u8bf7\u7167\u56fe\u4e0a\u7684\u5199\uff0c\u4e3b\u8981\u662f\u4e00\u822c\u6587\u4ef6\u5730\u5740\u7684\u201c\\\u201d\u5728Apache\u91cc\u8981\u6539\u6210\u201c\/\u201d\u3002 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092986.jpg\"> <\/p>\n<p>3. \u67e5\u627eDirectory\u5173\u952e\u5b57\uff0c\u5176\u8bbe\u7f6e\u7684\u76ee\u5f55\u4f4d\u7f6e\u5fc5\u987b\u4e3aDocumentRoot\u76f8\u540c <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092987.jpg\"> <\/p>\n<p>4. \u67e5\u627eDirectoryIndex\u5173\u952e\u5b57,\u4e5f\u5c31\u662f\u5728\u4ec5\u6307\u5b9a\u76ee\u5f55\u7684\u60c5\u51b5\u4e0b\uff0c\u9ed8\u8ba4\u663e\u793a\u7684\u6587\u4ef6\u540d\u3002\u53ef\u4ee5\u6dfb\u52a0\u5f88\u591a\uff0c\u7cfb\u7edf\u4f1a\u6839\u636e\u4ece\u5de6\u81f3\u53f3\u7684\u987a\u5e8f\u6765\u4f18\u5148\u663e\u793a\uff0c\u4ee5\u5355\u4e2a\u534a\u89d2\u7a7a\u683c\u9694\u5f00\uff0c\u6bd4\u5982\u6709\u4e9b\u7f51\u7ad9\u7684\u9996\u9875\u662findex.htm\uff0c\u5c31\u5728\u5149\u6807\u90a3\u91cc\u52a0\u4e0a\u201cindex.htm \u201d\u6587\u4ef6\u540d\u662f\u4efb\u610f\u7684\uff0c\u4e0d\u4e00\u5b9a\u975e\u5f97\u201cindex.html\u201d\uff0c\u6bd4\u5982\u201ctest.php\u201d\u7b49\uff0c\u90fd\u53ef\u4ee5\u3002 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092988.jpg\"> <\/p>\n<p>5. \u67e5\u627eLoadModule\u5173\u952e\u8bcd\uff0c\u5e76\u6dfb\u52a0\u4ee5\u4e0b\u8bed\u53e5 <\/p>\n<p>php5_module \u201cc:\\php\\php5apache2_2.dll\u201d <\/p>\n<p>PHPIniDir \u201cc:\\php\u201d&nbsp; <\/p>\n<p>AddType application\/x-httpd-php .php <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092989.jpg\"> <\/p>\n<p>6. \u6307\u5b9aapache\u670d\u52a1\u5668\u76d1\u542c\u7684\u7aef\u53e3\u53f7Listen 8080 <\/p>\n<p><img decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092990.jpg\"> <\/p>\n<p>7. \u4fdd\u5b58\u8bbe\u7f6e\u5e76\u91cd\u542fApache <\/p>\n<p>\u516d\u3001\u5b89\u88c5\u6d4b\u8bd5 <\/p>\n<p>\u5728\u4e3b\u76ee\u5f55\u4e0b\u521b\u5efa\u6587\u672c\u6587\u4ef6\uff0c\u7136\u540e\u53cc\u51fb\u8fdb\u5165\u6587\u4ef6\u7684\u7f16\u8f91\u72b6\u6001\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u8bed\u53e5 <\/p>\n<p>&lt;?php <\/p>\n<p>phpinfo(); <\/p>\n<p>?&gt; <\/p>\n<p>\u4fdd\u5b58\u6587\u4ef6\u540e\uff0c\u5c06\u5176\u91cd\u547d\u540d\u4e3aindex.php <\/p>\n<p>\u542f\u52a8\u6d4f\u89c8\u5668\uff0c\u5728\u5730\u5740\u680f\u4e2d\u8f93\u5165 <a href=\"http:\/\/127.0.0.1:8080\/\">http:\/\/127.0.0.1:8080<\/a><br \/>\u5982\u679c\u7528\u6237\u770b\u5230\u4ee5\u4e0b\u754c\u9762\uff0c\u5219\u8bc1\u660eApache\u73af\u5883\u5df2\u7ecf\u642d\u5efa\u597d\u4e86\uff0c\u73b0\u5728\u53ef\u4ee5\u5f00\u59cbPHP\u4e4b\u65c5\u4e86\u2026 <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" border=\"0\" alt=\"\" src=\"http:\/\/files.jb51.net\/file_images\/article\/201109\/2011092623092991.jpg\" width=\"620\" height=\"748\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u57fa\u4e8eWindows\u73af\u5883\u4e0b\u7684PHP\u5f00\u53d1\u73af\u5883\u642d\u5efa \uff08apache+mysql+php\uff09 \u4e00\u3001\u51c6\u5907\u5de5\u4f5c Apache2.2.11 \u4e0b\u8f7d\u5730\u5740\uff1ahttp:\/\/www.apache.org MySQL5.0 \u4e0b\u8f7d\u5730\u5740\uff1ahttp:\/\/www.mysql.com PHP5.2.9 \u4e0b\u8f7d\u5730\u5740\uff1ahttp:\/\/www.php.net \u4e8c\u3001\u914d\u7f6ePHP 1\u3001 \u5c06php-5.2.9-win32.zip\u89e3\u538b\u7f29\u5230\u6307\u5b9a\u4f4d\u7f6e\uff08\u5982C: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.lnzdl.com\/blog\/wp-json\/wp\/v2\/posts\/100"}],"collection":[{"href":"http:\/\/www.lnzdl.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.lnzdl.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.lnzdl.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.lnzdl.com\/blog\/wp-json\/wp\/v2\/comments?post=100"}],"version-history":[{"count":1,"href":"http:\/\/www.lnzdl.com\/blog\/wp-json\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":101,"href":"http:\/\/www.lnzdl.com\/blog\/wp-json\/wp\/v2\/posts\/100\/revisions\/101"}],"wp:attachment":[{"href":"http:\/\/www.lnzdl.com\/blog\/wp-json\/wp\/v2\/media?parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.lnzdl.com\/blog\/wp-json\/wp\/v2\/categories?post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.lnzdl.com\/blog\/wp-json\/wp\/v2\/tags?post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}