{"id":49256,"date":"2024-10-08T03:28:15","date_gmt":"2024-10-07T19:28:15","guid":{"rendered":"https:\/\/server.hk\/cnblog\/49256\/"},"modified":"2024-10-08T03:28:16","modified_gmt":"2024-10-07T19:28:16","slug":"win2008-iis-7-0-php-mysql-zend-phpmyadmin-%e9%85%8d%e7%bd%ae%e5%9c%96%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/49256\/","title":{"rendered":"Win2008 IIS 7.0 + PHP, MySQL, Zend, phpMyAdmin \u914d\u7f6e\u5716\u89e3"},"content":{"rendered":"<h1 id=\"win2008-iis-7-0-php-mysql-zend-phpmyadmin-%e9%85%8d%e7%bd%ae%e5%9c%96%e8%a7%a3-CtJNjeBlTc\">Win2008 IIS 7.0 + PHP, MySQL, Zend, phpMyAdmin \u914d\u7f6e\u5716\u89e3<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u7db2\u7d61\u74b0\u5883\u4e2d\uff0c\u9078\u64c7\u5408\u9069\u7684\u4f3a\u670d\u5668\u914d\u7f6e\u5c0d\u65bc\u7db2\u7ad9\u7684\u6027\u80fd\u548c\u7a69\u5b9a\u6027\u81f3\u95dc\u91cd\u8981\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5728 Windows Server 2008 \u4e0a\u914d\u7f6e IIS 7.0\u3001PHP\u3001MySQL\u3001Zend \u548c phpMyAdmin\uff0c\u5e6b\u52a9\u60a8\u5efa\u7acb\u4e00\u500b\u9ad8\u6548\u7684\u7db2\u9801\u4f3a\u670d\u5668\u74b0\u5883\u3002<\/p>\n<h2 id=\"%e4%b8%80%e3%80%81%e5%ae%89%e8%a3%9d-iis-7-0-CtJNjeBlTc\">\u4e00\u3001\u5b89\u88dd IIS 7.0<\/h2>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u5728 Windows Server 2008 \u4e0a\u5b89\u88dd IIS 7.0\u3002\u8acb\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\uff1a<\/p>\n<ol>\n<li>\u6253\u958b\u300c\u63a7\u5236\u9762\u677f\u300d\uff0c\u9078\u64c7\u300c\u7a0b\u5e8f\u548c\u529f\u80fd\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\u78ba\u4fdd\u9078\u64c7\u4e86\u300cWeb \u7ba1\u7406\u5de5\u5177\u300d\u548c\u300c\u842c\u7dad\u7db2\u670d\u52d9\u300d\u3002<\/li>\n<li>\u9ede\u64ca\u300c\u78ba\u5b9a\u300d\uff0c\u7cfb\u7d71\u5c07\u81ea\u52d5\u5b89\u88dd IIS 7.0\u3002<\/li>\n<\/ol>\n<h2 id=\"%e4%ba%8c%e3%80%81%e5%ae%89%e8%a3%9d-php-CtJNjeBlTc\">\u4e8c\u3001\u5b89\u88dd PHP<\/h2>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u9700\u8981\u5b89\u88dd PHP\u3002\u53ef\u4ee5\u5f9e PHP \u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09\u6700\u65b0\u7248\u672c\u7684 PHP\u3002\u4ee5\u4e0b\u662f\u5b89\u88dd\u6b65\u9a5f\uff1a<\/p>\n<ol>\n<li>\u4e0b\u8f09 PHP \u7684 Windows \u7248\u672c\uff0c\u89e3\u58d3\u7e2e\u5230 C:PHP \u76ee\u9304\u3002<\/li>\n<li>\u5728 C:PHP \u76ee\u9304\u4e2d\uff0c\u627e\u5230 php.ini-development \u6587\u4ef6\uff0c\u5c07\u5176\u8907\u88fd\u4e26\u91cd\u547d\u540d\u70ba php.ini\u3002<\/li>\n<li>\u7de8\u8f2f php.ini \u6587\u4ef6\uff0c\u78ba\u4fdd\u4ee5\u4e0b\u884c\u88ab\u53d6\u6d88\u8a3b\u89e3\uff1a<\/li>\n<pre><code>extension_dir = \"ext\"\nextension=php_mysqli.dll\nextension=php_gd2.dll<\/code><\/pre>\n<li>\u5728\u300c\u63a7\u5236\u9762\u677f\u300d\u4e2d\uff0c\u9078\u64c7\u300c\u7cfb\u7d71\u300d-&gt;\u300c\u9ad8\u7d1a\u7cfb\u7d71\u8a2d\u7f6e\u300d-&gt;\u300c\u74b0\u5883\u8b8a\u91cf\u300d\uff0c\u5728\u7cfb\u7d71\u8b8a\u91cf\u4e2d\u6dfb\u52a0 PHP \u7684\u8def\u5f91\u3002<\/li>\n<li>\u5728 IIS \u4e2d\uff0c\u6dfb\u52a0\u4e00\u500b\u65b0\u7684\u8655\u7406\u7a0b\u5e8f\u6620\u5c04\uff0c\u5c07 .php \u6587\u4ef6\u6620\u5c04\u5230 C:PHPphp-cgi.exe\u3002<\/li>\n<\/ol>\n<h2 id=\"%e4%b8%89%e3%80%81%e5%ae%89%e8%a3%9d-mysql-CtJNjeBlTc\">\u4e09\u3001\u5b89\u88dd MySQL<\/h2>\n<p>MySQL \u662f\u4e00\u500b\u6d41\u884c\u7684\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u60a8\u53ef\u4ee5\u5f9e MySQL \u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09\u5b89\u88dd\u5305\u3002\u5b89\u88dd\u6b65\u9a5f\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u4e0b\u8f09 MySQL \u5b89\u88dd\u5305\uff0c\u904b\u884c\u5b89\u88dd\u7a0b\u5e8f\u3002<\/li>\n<li>\u9078\u64c7\u300c\u5178\u578b\u5b89\u88dd\u300d\uff0c\u4e26\u6309\u7167\u63d0\u793a\u5b8c\u6210\u5b89\u88dd\u3002<\/li>\n<li>\u8a2d\u7f6e root \u5bc6\u78bc\uff0c\u4e26\u8a18\u4e0b\u8a72\u5bc6\u78bc\u4ee5\u4fbf\u5f8c\u7e8c\u4f7f\u7528\u3002<\/li>\n<\/ol>\n<h2 id=\"%e5%9b%9b%e3%80%81%e5%ae%89%e8%a3%9d-zend-framework-CtJNjeBlTc\">\u56db\u3001\u5b89\u88dd Zend Framework<\/h2>\n<p>Zend Framework \u662f\u4e00\u500b\u6d41\u884c\u7684 PHP \u6846\u67b6\uff0c\u60a8\u53ef\u4ee5\u5f9e Zend \u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09\u3002\u5b89\u88dd\u6b65\u9a5f\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u4e0b\u8f09 Zend Framework\uff0c\u89e3\u58d3\u7e2e\u5230 C:Zend\u3002<\/li>\n<li>\u5728 php.ini \u6587\u4ef6\u4e2d\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u884c\u4ee5\u555f\u7528 Zend\uff1a<\/li>\n<pre><code>zend_extension = \"C:ZendZendLoader.dll\"<\/code><\/pre>\n<\/ol>\n<h2 id=\"%e4%ba%94%e3%80%81%e5%ae%89%e8%a3%9d-phpmyadmin-CtJNjeBlTc\">\u4e94\u3001\u5b89\u88dd phpMyAdmin<\/h2>\n<p>phpMyAdmin \u662f\u4e00\u500b\u7528\u65bc\u7ba1\u7406 MySQL \u6578\u64da\u5eab\u7684\u5de5\u5177\u3002\u5b89\u88dd\u6b65\u9a5f\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u5f9e phpMyAdmin \u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09\u6700\u65b0\u7248\u672c\u3002<\/li>\n<li>\u5c07\u4e0b\u8f09\u7684\u6587\u4ef6\u89e3\u58d3\u7e2e\u5230 C:phpMyAdmin\u3002<\/li>\n<li>\u8907\u88fd config.sample.inc.php \u6587\u4ef6\u4e26\u91cd\u547d\u540d\u70ba config.inc.php\u3002<\/li>\n<li>\u7de8\u8f2f config.inc.php \u6587\u4ef6\uff0c\u8a2d\u7f6e MySQL \u7684\u7528\u6236\u540d\u548c\u5bc6\u78bc\uff1a<\/li>\n<pre><code>$cfg['Servers'][$i]['user'] = 'root';\n$cfg['Servers'][$i]['password'] = '\u60a8\u7684\u5bc6\u78bc';<\/code><\/pre>\n<\/ol>\n<h2 id=\"%e5%85%ad%e3%80%81%e6%b8%ac%e8%a9%a6%e9%85%8d%e7%bd%ae-CtJNjeBlTc\">\u516d\u3001\u6e2c\u8a66\u914d\u7f6e<\/h2>\n<p>\u5b8c\u6210\u4e0a\u8ff0\u6b65\u9a5f\u5f8c\uff0c\u60a8\u53ef\u4ee5\u901a\u904e\u5728\u700f\u89bd\u5668\u4e2d\u8f38\u5165 http:\/\/localhost\/phpmyadmin \u4f86\u8a2a\u554f phpMyAdmin\u3002\u5982\u679c\u4e00\u5207\u6b63\u5e38\uff0c\u60a8\u61c9\u8a72\u80fd\u5920\u770b\u5230 phpMyAdmin \u7684\u767b\u9304\u754c\u9762\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-CtJNjeBlTc\">\u7e3d\u7d50<\/h2>\n<p>\u901a\u904e\u4ee5\u4e0a\u6b65\u9a5f\uff0c\u60a8\u5df2\u6210\u529f\u5728 Windows Server 2008 \u4e0a\u914d\u7f6e\u4e86 IIS 7.0\u3001PHP\u3001MySQL\u3001Zend \u548c phpMyAdmin\u3002\u9019\u6a23\u7684\u914d\u7f6e\u4e0d\u50c5\u80fd\u5920\u652f\u6301\u5404\u7a2e PHP \u61c9\u7528\u7a0b\u5e8f\uff0c\u9084\u80fd\u63d0\u4f9b\u7a69\u5b9a\u7684\u6578\u64da\u5eab\u7ba1\u7406\u529f\u80fd\u3002\u5982\u679c\u60a8\u9700\u8981\u66f4\u9ad8\u6548\u7684\u4f3a\u670d\u5668\u89e3\u6c7a\u65b9\u6848\uff0c\u53ef\u4ee5\u8003\u616e\u4f7f\u7528 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u670d\u52d9\uff0c\u4ee5\u7372\u5f97\u66f4\u597d\u7684\u6027\u80fd\u548c\u7a69\u5b9a\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn to configure Win2008 IIS 7.0 with PHP, MySQL, Zend, and phpMyAdmin through detailed diagrams and step-by-step instructions.<\/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-49256","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/49256","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=49256"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/49256\/revisions"}],"predecessor-version":[{"id":49257,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/49256\/revisions\/49257"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=49256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=49256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=49256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}