{"id":1150,"date":"2012-03-19T11:30:28","date_gmt":"2012-03-19T03:30:28","guid":{"rendered":"http:\/\/www.gaigaiming.com\/?p=1150"},"modified":"2012-03-19T11:30:28","modified_gmt":"2012-03-19T03:30:28","slug":"wampserver2-x-%e5%ae%89%e8%a3%85%e4%b8%8e%e4%bd%bf%e7%94%a8%e8%af%b4%e6%98%8e","status":"publish","type":"post","link":"https:\/\/www.gaigaiming.com\/index.php\/2012\/03\/19\/wampserver2-x-%e5%ae%89%e8%a3%85%e4%b8%8e%e4%bd%bf%e7%94%a8%e8%af%b4%e6%98%8e\/","title":{"rendered":"WampServer2.X \u5b89\u88c5\u4e0e\u4f7f\u7528\u8bf4\u660e"},"content":{"rendered":"<p>Wamp\u5c31\u662fWindowsApache Mysql PHP\u96c6\u6210\u5b89\u88c5\u73af\u5883\uff0c\u5373\u5728window\u4e0b\u7684apache\u3001php\u548cmysql\u7684\u670d\u52a1\u5668\u8f6f\u4ef6\u3002<\/p>\n<p>WampServer\u662fApache Web\u670d\u52a1\u5668\u3001PHP\u89e3\u91ca\u5668\u4ee5\u53caMySQL\u6570\u636e\u5e93\u7684\u6574\u5408\u8f6f\u4ef6\u5305\u3002\u514d\u53bb\u4e86\u5f00\u53d1\u4eba\u5458\u5c06\u65f6\u95f4\u82b1\u8d39\u5728\u7e41\u7410\u7684\u914d\u7f6e\u73af\u5883\u8fc7\u7a0b\uff0c\u4ece\u800c\u817e\u51fa\u66f4\u591a\u7cbe\u529b\u53bb\u505a\u5f00\u53d1\u3002\u5728windows\u4e0b\u5c06Apache+PHP+Mysql \u96c6\u6210\u73af\u5883\uff0c\u62e5\u6709\u7b80\u5355\u7684\u56fe\u5f62\u548c\u83dc\u5355\u5b89\u88c5\u548c\u914d\u7f6e\u73af\u5883\u3002PHP\u6269\u5c55\u3001Apache\u6a21\u5757\uff0c\u5f00\u542f\/\u5173\u95ed\u9f20\u6807\u70b9\u70b9\u5c31\u641e\u5b9a\uff0c\u518d\u4e5f\u4e0d\u7528\u4eb2\u81ea\u53bb\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u4e86\uff0cWAMP\u5b83\u4f1a\u53bb\u505a\u3002\u518d\u4e5f\u4e0d\u7528\u5230\u5904\u8be2\u95eephp\u7684\u5b89\u88c5\u95ee\u9898\u4e86\uff0cwampserver\u4e00\u5207\u90fd\u641e\u5b9a\u4e86\u3002\u8fd9\u4e2a\u8f6f\u4ef6\u662f\u5b8c\u5168\u514d\u8d39\u7684\uff0c\u53ef\u4ee5\u5728\u5176\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5230\u6700\u65b0\u7684\u7248\u672c\u3002\u672c\u6587\u4e2d\u4f7f\u7528\u7684\u7248\u672c\u662fWampServer2.0f\uff08\u53d1\u5e03\u65e5\u671f2008\u5e7412\u670816\u65e5\uff09\uff0c\u5176\u4e2d\u5305\u62ecApache 2.2.11\uff0cPHP 5.2.8\uff0cMySQL5.1.30<\/p>\n<p>wampserver\u652f\u630122\u79cd\u8bed\u8a00\uff0c\u5176\u4e2d\u6709\u4e2d\u6587\u7b80\u4f53\u548c\u4e2d\u6587\u7e41\u4f53\u3002<\/p>\n<p>wampserver\u8fd8\u652f\u6301phpmyadmin,SQLiteManager\u3002\u4e0d\u7528\u53bb\u8f93\u5165\u590d\u6742\u7684SQL\u8bed\u53e5\u7ba1\u7406MYSQL\u6570\u636e\u5e93\uff0c\u76f4\u63a5\u4ecephpmyadmin\u7ba1\u7406\u5373\u53ef\u3002<\/p>\n<p>\u4e00\u3001WampServer2.X\u5b89\u88c5\u5b8c\u540e\uff0c\u5355\u51fb\u684c\u9762\u4e0a\u5982\u56fe\u4e00\u7684\u56fe\u6807\uff0c\u5219\u5728\u72b6\u6001\u680f\u53f3\u4e0b\u89d2\u51fa\u73b0\u5982\u56fe\u4e8c\u7684\u6807\u5fd7\u3002<\/p>\n<p>\u56fe\u4e00 <a href=\"http:\/\/gaigaiming.com\/wp-content\/uploads\/2015\/09\/01.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gaigaiming.com\/wp-content\/uploads\/2015\/09\/01.gif\" alt=\"0\" width=\"78\" height=\"73\" class=\"alignnone size-full wp-image-1154\" \/><\/a><\/p>\n<p>\u56fe\u4e8c<a href=\"http:\/\/gaigaiming.com\/wp-content\/uploads\/2015\/09\/001.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gaigaiming.com\/wp-content\/uploads\/2015\/09\/001.gif\" alt=\"00\" width=\"28\" height=\"38\" class=\"alignnone size-full wp-image-1153\" \/><\/a><\/p>\n<p>\u4e8c\u3001\u66f4\u6539\u8bed\u8a00\u79cd\u7c7b\uff1a\u53f3\u952e\u5355\u51fb\u56fe\u4e8c\u7684\u6807\u5fd7\uff0c\u5728\u5f39\u51fa\u7684\u83dc\u5355\u680f\u4e2d\u9009\u62e9\u201cLanguage\u201d\u547d\u4ee4\uff0c\u5728\u5176\u5b50\u547d\u4ee4\u4e2d\u9009\u62e9\u201cChinese\u201d\u547d\u4ee4\u3002<\/p>\n<p><a href=\"http:\/\/gaigaiming.com\/wp-content\/uploads\/2015\/09\/000.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gaigaiming.com\/wp-content\/uploads\/2015\/09\/000-157x300.gif\" alt=\"000\" width=\"157\" height=\"300\" class=\"alignnone size-medium wp-image-1152\" \/><\/a><br \/>\n\u4e09\u3001\u66f4\u6539\u7aef\u53e3\u53f7\u4e3a8080\uff0c\u5176\u76ee\u7684\u662f\u4e0d\u8981\u4e0e IIS \u7684\u7aef\u53e3\u53f780\u76f8\u51b2\u7a81\u3002\u5176\u65b9\u6cd5\u662f\uff1a<\/p>\n<p>1\u3001\u5de6\u952e\u5355\u51fb\u56fe\u4e00\u6807\u5fd7\uff0c\u5728\u5f39\u51fa\u5f0f\u83dc\u5355\u4e2d\u5355\u51fb\u201c\u505c\u6b62\u6240\u6709\u670d\u52a1\u201d\u547d\u4ee4\u3002<\/p>\n<p>2\u3001\u5de6\u952e\u5355\u51fb\u56fe\u4e00\u5fd7\uff0c\u5728\u5f39\u51fa\u5f0f\u83dc\u5355\u4e2d\u9009\u62e9\u201cApache\u201d\u547d\u4ee4\uff0c\u5728\u5176\u5b50\u83dc\u5355\u4e2d\u5355\u51fb\u201chttpd.conf\u201d\u547d\u4ee4\u3002\u5219\u81ea\u52a8\u7528\u8bb0\u4e8b\u672c\u6253\u5f00\u4e86\u201chttpd.conf\u201d\u6587\u4ef6\u3002<\/p>\n<p>3\u3001\u5728\u8be5\u6587\u4ef6\u4e2d\u67e5\u627e\u201cListen\u201d\u4e00\u8bcd\uff0c\u627e\u5230\u540e\u662f\uff1aListen:80 \u5c06\u5176\u6539\u6210\uff1aListen 8080<br \/>\n \u5f53\u51b2\u7a81\u89e3\u51b3\u540e\uff0c\u56fe\u4e8c\u6807\u5fd7\u53d8\u4e3a\u7eff\u8272\u8868\u793aWampServer\u6b63\u5e38\u8fd0\u884c\u4e86<a href=\"http:\/\/gaigaiming.com\/wp-content\/uploads\/2015\/09\/0000.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gaigaiming.com\/wp-content\/uploads\/2015\/09\/0000.gif\" alt=\"0000\" width=\"24\" height=\"38\" class=\"alignnone size-full wp-image-1151\" \/><\/a><\/p>\n<p>\u56db\u3001\u66f4\u6539\u6587\u4ef6\u5939\u76ee\u5f55\uff08\u8fd9\u5c31\u662f\u60a8\u4ee5\u540e\u5199\u7684PHP\u8be5\u6587\u6863\u7684\u5b58\u653e\u4f4d\u7f6e\uff09\uff1a<\/p>\n<p>1\u3001\u5728\u60a8\u672c\u5730\u7684\u67d0\u4e00\u4e2a\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u5982\uff1aF:\/phpweb\u3002<\/p>\n<p>2\u3001\u6309\u7b2c\u4e8c\u6b65\u4e2d\u76841\u30012\u4e8c\u6b65\u6253\u5f00\u201chttpd.conf\u201d\u6587\u4ef6\u3002\u67e5\u627e\u201cDocumentRoot\u201d\u4e00\u8bcd\u3002\u627e\u5230DocumentRoot &#8220;F:\/phpserver\/wamp\/www\/&#8221;\uff0c\u8bf7\u6539\u6210\uff1aDocumentRoot &#8220;F:\/phpweb\/&#8221;\uff0c\u7ee7\u7eed\u5f80\u4e0b\u627e\uff0c<Directory \"F:\/phpserver\/wamp\/www\/\">\uff0c\u8bf7\u6539\u6210\uff1a<Directory \"F:\/phpweb\/\">\u3002\u8bf7\u6ce8\u610f\uff1a\u53cc\u5f15\u53f7\u4e2d\u7684\u5185\u5bb9\u4e00\u5b9a\u8981\u4e0e\u60a8\u5728 1\u6b65\u521b\u5efa\u7684\u6587\u4ef6\u5939\u7684\u4f4d\u7f6e\u6709\u5173\u3002<\/p>\n<p>3\u3001\u4fdd\u5b58\u6587\u4ef6\u540e\u5173\u95ed\u3002<\/p>\n<p>4\u3001Forbidden<br \/>\nYou don&#8217;t have permission to access \/phpMyAdmin\/index.php on this server.<\/p>\n<p>\u51fa\u73b0\u8fd9\u79cd\u60c5\u51b5\u8bf7\u5c06apache\u7684httpd.conf\u6253\u5f00\uff0c\u5c06<\/p>\n<p><Directory \/><br \/>\n    Options FollowSymLinks<br \/>\n    AllowOverride None<br \/>\n    Order deny,allow<br \/>\n    Deny from all<br \/>\n<\/Directory><\/p>\n<p>\u4fee\u6539\u4e3a<\/p>\n<p><Directory \/><br \/>\n    Options FollowSymLinks<br \/>\n    AllowOverride None<br \/>\n    Order deny,allow<br \/>\n    Deny from None<br \/>\n<\/Directory><\/p>\n<p>\u5c31\u53ef\u4ee5\u4e86<\/p>\n<p>\u4e94\u3001\u6253\u5f00php.ini\u6587\u4ef6,\u641c\u7d22short_open_tag,\u627e\u5230\u7b2c\u4e8c\u4e2a\u628ashort _open_tag=Off,\u4fee\u6539\u6210short_open_tag=On<\/p>\n<p>\u516d\u3001\u521b\u5efa\u7ad9\u70b9\uff1a\uff08\u60a8\u53ef\u4ee5\u5728\u4f60\u7684F:\/phpweb \u76ee\u5f55\u4e0b\u521b\u5efa\u82e5\u5e72\u4e2a\u7ad9\u70b9\uff09<\/p>\n<p>1\u3001\u5728 F:\/phpweb \u76ee\u5f55\u4e0b\u5148\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u5982\uff1amytest<\/p>\n<p>2\u3001\u6253\u5f00DW \u8f6f\u4ef6\u3002\u9009\u62e9\u201c\u7ad9\u70b9\/\u65b0\u5efa\u7ad9\u70b9\u201d\u547d\u4ee4\u3002<\/p>\n<p>3\u3001\u7ad9\u70b9\u540d\u79f0\u4efb\u610f\u53d6\u3002<\/p>\n<p>4\u3001\u7ad9\u70b9\u7684http \u5730\u5740\u4e3a\uff1ahttp:\/\/localhost:8080\/mytest\/<\/p>\n<p>5\u3001\u4f7f\u7528 PHP MySQL \u670d\u52a1\u5668\u6280\u672f\u3002<\/p>\n<p>6\u3001\u6587\u4ef6\u5b58\u653e\u5728\u201c F:phpwebmytest \u201d\u4f4d\u7f6e\u3002<\/p>\n<p>7\u3001\u4f7f\u7528\u201chttp:\/\/localhost:8080\/mytest\/ \u201dURL \u6765\u6d4f\u89c8\u7ad9\u70b9\u7684\u6839\u76ee\u5f55\u3002<\/p>\n<p>8\u3001\u4e00\u8def\u5355\u51fb\u201c\u786e\u5b9a\u201d\uff0c\u81f3\u6b64\u7ad9\u70b9\u521b\u5efa\u5b8c\u6bd5\u3002<\/p>\n<p>\u4e03\u3001\u6253\u5f00 MySQL \u6570\u636e\u5e93<\/p>\n<p>1\u3001\u5de6\u952e\u5355\u51fb\u56fe\u4e00\u6807\u5fd7\uff0c\u5728\u5f39\u51fa\u5f0f\u83dc\u5355\u4e2d\u5355\u51fb\u201c\u505c\u6b62\u6240\u6709\u670d\u52a1\u201d\u547d\u4ee4\u3002<\/p>\n<p>2\u3001\u5de6\u952e\u5355\u51fb\u56fe\u4e00\u6807\u5fd7\uff0c\u5728\u5f39\u51fa\u5f0f\u83dc\u5355\u4e2d\u9009\u62e9\u201cphpMyAdmin\u201d\u547d\u4ee4\u3002<\/p>\n<p>3\u3001\u5c06\u6253\u5f00\u7684\u9875\u9762\u5730\u5740\uff1ahttp:\/\/localhost\/phpmyadmin\/ \uff0c\u4fee\u6539\u6210\uff1ahttp:\/\/localhost:8080\/phpmyadmin\/ \u540e\uff0c\u5728\u6d4f\u89c8\u5668\u4e2d\u5355\u51fb\u201c\u8f6c\u5230\u201d\u6309\u94ae\u3002\u6216\u8005\uff0c\u6309\u201c\u56de\u8f66\u201d\u952e\u3002\u8fd9\u65f6\uff0c\u4fbf\u53ef\u5f97\u5230\u4e00\u4e2aMySql\u6570\u636e\u5e93\u7684\u53ef\u89c6\u5316\u64cd\u4f5c\u754c\u9762\u3002<\/p>\n<p>\u516b\u3001\u6d4f\u89c8\u7f51\u9875\uff1a<\/p>\n<p>1\u3001\u5982\u679c\u6211\u5728\u7b2c\u516d\u6b65\u521b\u5efa\u7684\u7ad9\u70b9\u76ee\u5f55\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3aindex.php \u6587\u4ef6\u3002<\/p>\n<p>2\u3001\u5728\u6d4f\u89c8\u5668\u7684\u5730\u5740\u680f\u4e2d\u8f93\u5165http:\/\/localhost:8080\/mytest\/\u5355\u51fb\u201c\u56de\u8f66\u201d\u6309\u94ae\u4fbf\u80fd\u6d4f\u89c8\u4e86\u3002<\/p>\n<p>\u8f6c\u81ea\u62c2\u4e91\u6f02\u6d77\u9f99<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wamp\u5c31\u662fWindowsApache Mysql PHP\u96c6\u6210\u5b89\u88c5\u73af\u5883\uff0c\u5373\u5728window\u4e0b\u7684apache\u3001ph [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1150","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/posts\/1150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/comments?post=1150"}],"version-history":[{"count":0,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/posts\/1150\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/media?parent=1150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/categories?post=1150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/tags?post=1150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}