{"id":49180,"date":"2024-10-08T02:56:30","date_gmt":"2024-10-07T18:56:30","guid":{"rendered":"https:\/\/server.hk\/cnblog\/49180\/"},"modified":"2024-10-08T02:56:30","modified_gmt":"2024-10-07T18:56:30","slug":"iis-%e7%92%b0%e5%a2%83%e4%b8%8b%e9%85%8d%e7%bd%ae-php-5-mysql-phpmyadmin","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/49180\/","title":{"rendered":"IIS \u74b0\u5883\u4e0b\u914d\u7f6e PHP 5 + MySQL + PHPMyAdmin"},"content":{"rendered":"<h1 id=\"iis-%e7%92%b0%e5%a2%83%e4%b8%8b%e9%85%8d%e7%bd%ae-php-5-mysql-phpmyadmin-oMIngNjUMh\">IIS \u74b0\u5883\u4e0b\u914d\u7f6e PHP 5 + MySQL + PHPMyAdmin<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u7db2\u7d61\u74b0\u5883\u4e2d\uff0c\u8a31\u591a\u958b\u767c\u8005\u9078\u64c7\u4f7f\u7528 PHP \u548c MySQL \u4f86\u69cb\u5efa\u52d5\u614b\u7db2\u7ad9\u548c\u61c9\u7528\u7a0b\u5e8f\u3002\u96d6\u7136\u5927\u591a\u6578\u4eba\u7fd2\u6163\u65bc\u5728 Linux \u74b0\u5883\u4e2d\u9032\u884c\u958b\u767c\uff0c\u4f46\u5728 Windows \u7684 IIS\uff08Internet Information Services\uff09\u74b0\u5883\u4e2d\u914d\u7f6e PHP 5\u3001MySQL \u548c PHPMyAdmin \u4e5f\u662f\u4e00\u500b\u53ef\u884c\u7684\u9078\u64c7\u3002\u672c\u6587\u5c07\u8a73\u7d30\u4ecb\u7d39\u5982\u4f55\u5728 IIS \u74b0\u5883\u4e0b\u9032\u884c\u9019\u4e9b\u914d\u7f6e\u3002<\/p>\n<h2 id=\"%e6%ad%a5%e9%a9%9f%e4%b8%80%ef%bc%9a%e5%ae%89%e8%a3%9d-iis-oMIngNjUMh\">\u6b65\u9a5f\u4e00\uff1a\u5b89\u88dd IIS<\/h2>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u78ba\u4fdd\u60a8\u7684 Windows \u7cfb\u7d71\u4e0a\u5df2\u5b89\u88dd IIS\u3002\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u5b89\u88dd\uff1a<\/p>\n<ol>\n<li>\u6253\u958b\u63a7\u5236\u9762\u677f\uff0c\u9078\u64c7\u300c\u7a0b\u5e8f\u300d\u3002<\/li>\n<li>\u9ede\u64ca\u300c\u555f\u7528\u6216\u95dc\u9589 Windows \u529f\u80fd\u300d\u3002<\/li>\n<li>\u5728\u5f48\u51fa\u7684\u7a97\u53e3\u4e2d\uff0c\u627e\u5230\u300cInternet Information Services\u300d\uff0c\u52fe\u9078\u5b83\u4e26\u9ede\u64ca\u300c\u78ba\u5b9a\u300d\u3002<\/li>\n<\/ol>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u5728\u700f\u89bd\u5668\u4e2d\u8f38\u5165 <code>http:\/\/localhost<\/code> \u4f86\u6aa2\u67e5 IIS \u662f\u5426\u904b\u884c\u6b63\u5e38\u3002<\/p>\n<h2 id=\"%e6%ad%a5%e9%a9%9f%e4%ba%8c%ef%bc%9a%e5%ae%89%e8%a3%9d-php-5-oMIngNjUMh\">\u6b65\u9a5f\u4e8c\uff1a\u5b89\u88dd PHP 5<\/h2>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u9700\u8981\u5b89\u88dd PHP 5\u3002\u53ef\u4ee5\u5f9e PHP \u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09 PHP 5 \u7684 Windows \u7248\u672c\u3002\u4e0b\u8f09\u5f8c\uff0c\u8acb\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u5b89\u88dd\uff1a<\/p>\n<ol>\n<li>\u89e3\u58d3\u7e2e\u4e0b\u8f09\u7684 PHP \u6587\u4ef6\u5230\u4e00\u500b\u76ee\u9304\uff0c\u4f8b\u5982 <code>C:PHP<\/code>\u3002<\/li>\n<li>\u5c07 PHP \u7684\u8def\u5f91\u6dfb\u52a0\u5230\u7cfb\u7d71\u74b0\u5883\u8b8a\u91cf\u4e2d\u3002\u53f3\u9375\u9ede\u64ca\u300c\u6b64\u96fb\u8166\u300d\uff0c\u9078\u64c7\u300c\u5c6c\u6027\u300d\uff0c\u7136\u5f8c\u9ede\u64ca\u300c\u9ad8\u7d1a\u7cfb\u7d71\u8a2d\u7f6e\u300d\uff0c\u5728\u300c\u7cfb\u7d71\u5c6c\u6027\u300d\u7a97\u53e3\u4e2d\u9078\u64c7\u300c\u74b0\u5883\u8b8a\u91cf\u300d\u3002\u5728\u300c\u7cfb\u7d71\u8b8a\u91cf\u300d\u4e2d\u627e\u5230\u300cPath\u300d\uff0c\u7136\u5f8c\u7de8\u8f2f\uff0c\u6dfb\u52a0 <code>C:PHP<\/code>\u3002<\/li>\n<li>\u5728 <code>C:WindowsSystem32<\/code> \u76ee\u9304\u4e0b\u5275\u5efa\u4e00\u500b\u540d\u70ba <code>php.ini<\/code> \u7684\u6587\u4ef6\uff0c\u4e26\u6839\u64da\u9700\u8981\u9032\u884c\u914d\u7f6e\u3002<\/li>\n<\/ol>\n<p>\u70ba\u4e86\u8b93 IIS \u652f\u6301 PHP\uff0c\u60a8\u9700\u8981\u5728 IIS \u4e2d\u6dfb\u52a0\u4e00\u500b\u8655\u7406\u7a0b\u5e8f\u6620\u5c04\u3002\u6253\u958b IIS \u7ba1\u7406\u5668\uff0c\u9078\u64c7\u60a8\u7684\u7db2\u7ad9\uff0c\u7136\u5f8c\u5728\u53f3\u5074\u7684\u300c\u529f\u80fd\u8996\u5716\u300d\u4e2d\u627e\u5230\u300c\u8655\u7406\u7a0b\u5e8f\u6620\u5c04\u300d\uff0c\u6dfb\u52a0\u4e00\u500b\u65b0\u7684\u6620\u5c04\uff0c\u5c07\u8acb\u6c42\u7684\u64f4\u5c55\u540d\u8a2d\u7f6e\u70ba <code>.php<\/code>\uff0c\u4e26\u6307\u5411 <code>C:PHPphp-cgi.exe<\/code>\u3002<\/p>\n<h2 id=\"%e6%ad%a5%e9%a9%9f%e4%b8%89%ef%bc%9a%e5%ae%89%e8%a3%9d-mysql-oMIngNjUMh\">\u6b65\u9a5f\u4e09\uff1a\u5b89\u88dd MySQL<\/h2>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u9700\u8981\u5b89\u88dd MySQL\u3002\u53ef\u4ee5\u5f9e MySQL \u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09 MySQL \u7684 Windows \u7248\u672c\u3002\u5b89\u88dd\u904e\u7a0b\u4e2d\uff0c\u8acb\u6ce8\u610f\u4ee5\u4e0b\u5e7e\u9ede\uff1a<\/p>\n<ul>\n<li>\u9078\u64c7\u9069\u5408\u7684\u5b89\u88dd\u985e\u578b\uff0c\u901a\u5e38\u9078\u64c7\u300cDeveloper Default\u300d\u5373\u53ef\u3002<\/li>\n<li>\u8a2d\u7f6e root \u7528\u6236\u7684\u5bc6\u78bc\uff0c\u4e26\u8a18\u4f4f\u9019\u500b\u5bc6\u78bc\uff0c\u56e0\u70ba\u7a0d\u5f8c\u9700\u8981\u7528\u5230\u3002<\/li>\n<li>\u5b8c\u6210\u5b89\u88dd\u5f8c\uff0c\u555f\u52d5 MySQL \u670d\u52d9\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%ad%a5%e9%a9%9f%e5%9b%9b%ef%bc%9a%e5%ae%89%e8%a3%9d-phpmyadmin-oMIngNjUMh\">\u6b65\u9a5f\u56db\uff1a\u5b89\u88dd PHPMyAdmin<\/h2>\n<p>\u6700\u5f8c\uff0c\u60a8\u9700\u8981\u5b89\u88dd PHPMyAdmin \u4f86\u7ba1\u7406 MySQL \u6578\u64da\u5eab\u3002\u53ef\u4ee5\u5f9e PHPMyAdmin \u7684\u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09\u6700\u65b0\u7248\u672c\u3002\u5b89\u88dd\u6b65\u9a5f\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u89e3\u58d3\u7e2e\u4e0b\u8f09\u7684 PHPMyAdmin \u6587\u4ef6\u5230\u60a8\u7684\u7db2\u7ad9\u76ee\u9304\uff0c\u4f8b\u5982 <code>C:inetpubwwwrootphpmyadmin<\/code>\u3002<\/li>\n<li>\u5728 PHPMyAdmin \u76ee\u9304\u4e2d\uff0c\u8907\u88fd <code>config.sample.inc.php<\/code> \u4e26\u91cd\u547d\u540d\u70ba <code>config.inc.php<\/code>\u3002<\/li>\n<li>\u7de8\u8f2f <code>config.inc.php<\/code> \u6587\u4ef6\uff0c\u8a2d\u7f6e MySQL \u7684\u7528\u6236\u540d\u548c\u5bc6\u78bc\u3002<\/li>\n<\/ol>\n<p>\u70ba\u4e86\u80fd\u5920\u901a\u904e\u700f\u89bd\u5668\u8a2a\u554f PHPMyAdmin\uff0c\u60a8\u9700\u8981\u5728 IIS \u4e2d\u70ba PHPMyAdmin \u76ee\u9304\u8a2d\u7f6e\u9069\u7576\u7684\u6b0a\u9650\u3002\u78ba\u4fdd\u8a72\u76ee\u9304\u7684\u8a2a\u554f\u6b0a\u9650\u5141\u8a31 IIS \u7528\u6236\u8a2a\u554f\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-oMIngNjUMh\">\u7e3d\u7d50<\/h2>\n<p>\u901a\u904e\u4ee5\u4e0a\u6b65\u9a5f\uff0c\u60a8\u61c9\u8a72\u80fd\u5920\u5728 IIS \u74b0\u5883\u4e0b\u6210\u529f\u914d\u7f6e PHP 5\u3001MySQL \u548c PHPMyAdmin\u3002\u9019\u6a23\u7684\u914d\u7f6e\u4e0d\u50c5\u80fd\u5920\u652f\u6301\u60a8\u7684\u958b\u767c\u9700\u6c42\uff0c\u9084\u80fd\u5920\u70ba\u60a8\u7684\u7db2\u7ad9\u63d0\u4f9b\u7a69\u5b9a\u7684\u6578\u64da\u5eab\u652f\u6301\u3002\u5982\u679c\u60a8\u9700\u8981\u66f4\u9ad8\u6548\u7684\u670d\u52d9\u5668\u89e3\u6c7a\u65b9\u6848\uff0c\u53ef\u4ee5\u8003\u616e\u4f7f\u7528 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u4f86\u63d0\u5347\u60a8\u7684\u7db2\u7ad9\u6027\u80fd\u548c\u7a69\u5b9a\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to configure PHP 5, MySQL, and PHPMyAdmin in an IIS environment for seamless web development and database management.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-49180","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/49180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=49180"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/49180\/revisions"}],"predecessor-version":[{"id":49181,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/49180\/revisions\/49181"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=49180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=49180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=49180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}