{"id":49004,"date":"2024-10-08T01:43:14","date_gmt":"2024-10-07T17:43:14","guid":{"rendered":"https:\/\/server.hk\/cnblog\/49004\/"},"modified":"2024-10-08T01:43:14","modified_gmt":"2024-10-07T17:43:14","slug":"win2003-%e4%b8%8b%e9%85%8d%e7%bd%ae-iis-php-mysql-zend-%e5%9c%96%e6%96%87%e4%bd%bf%e5%85%b6%e6%94%af%e6%8c%81-asp%e3%80%81-net%e3%80%81cgi%e3%80%81perl-%e5%92%8c-php","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/49004\/","title":{"rendered":"Win2003 \u4e0b\u914d\u7f6e IIS + PHP + MySQL + Zend \u5716\u6587\u4f7f\u5176\u652f\u6301 ASP\u3001.NET\u3001CGI\u3001Perl \u548c PHP"},"content":{"rendered":"<h1 id=\"%e5%9c%a8-windows-2003-%e4%b8%8b%e9%85%8d%e7%bd%ae-iis-php-mysql-zend-%e6%94%af%e6%8c%81-asp%e3%80%81-net%e3%80%81cgi%e3%80%81perl-%e5%92%8c-php-OdscZEHJLt\">\u5728 Windows 2003 \u4e0b\u914d\u7f6e IIS + PHP + MySQL + Zend \u652f\u6301 ASP\u3001.NET\u3001CGI\u3001Perl \u548c PHP<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u7db2\u7d61\u74b0\u5883\u4e2d\uff0c\u8a31\u591a\u958b\u767c\u8005\u548c\u4f01\u696d\u9078\u64c7\u4f7f\u7528 Windows 2003 \u4f5c\u70ba\u5176\u4f3a\u670d\u5668\u64cd\u4f5c\u7cfb\u7d71\u3002\u5118\u7ba1\u9019\u500b\u7248\u672c\u7684 Windows \u5df2\u7d93\u904e\u6642\uff0c\u4f46\u4ecd\u7136\u6709\u8a31\u591a\u820a\u7cfb\u7d71\u4f9d\u8cf4\u65bc\u5b83\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5728 Windows 2003 \u4e0a\u914d\u7f6e IIS\uff08Internet Information Services\uff09\u3001PHP\u3001MySQL \u548c Zend Framework\uff0c\u4ee5\u652f\u6301 ASP\u3001.NET\u3001CGI\u3001Perl \u548c PHP\u3002<\/p>\n<h2 id=\"%e5%ae%89%e8%a3%9d-iis-OdscZEHJLt\">\u5b89\u88dd IIS<\/h2>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u78ba\u4fdd IIS \u5df2\u7d93\u5b89\u88dd\u5728\u60a8\u7684 Windows 2003 \u4f3a\u670d\u5668\u4e0a\u3002\u4ee5\u4e0b\u662f\u5b89\u88dd IIS \u7684\u6b65\u9a5f\uff1a<\/p>\n<ol>\n<li>\u6253\u958b\u300c\u63a7\u5236\u9762\u677f\u300d\u3002<\/li>\n<li>\u9078\u64c7\u300c\u6dfb\u52a0\u6216\u522a\u9664\u7a0b\u5e8f\u300d\u3002<\/li>\n<li>\u9ede\u64ca\u300c\u6dfb\u52a0\/\u522a\u9664 Windows \u7d44\u4ef6\u300d\u3002<\/li>\n<li>\u5728\u7d44\u4ef6\u5217\u8868\u4e2d\uff0c\u9078\u64c7\u300c\u7db2\u7d61\u670d\u52d9\u300d\u4e26\u52fe\u9078\u300cInternet Information Services (IIS)\u300d\u3002<\/li>\n<li>\u6309\u7167\u63d0\u793a\u5b8c\u6210\u5b89\u88dd\u3002<\/li>\n<\/ol>\n<h2 id=\"%e5%ae%89%e8%a3%9d-php-OdscZEHJLt\">\u5b89\u88dd PHP<\/h2>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u9700\u8981\u5b89\u88dd PHP\u3002\u4ee5\u4e0b\u662f\u5b89\u88dd PHP \u7684\u6b65\u9a5f\uff1a<\/p>\n<ol>\n<li>\u4e0b\u8f09 PHP \u7684 Windows \u7248\u672c\uff0c\u901a\u5e38\u662f .zip \u683c\u5f0f\u3002<\/li>\n<li>\u5c07\u4e0b\u8f09\u7684\u6587\u4ef6\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\u6839\u64da\u9700\u8981\u555f\u7528\u64f4\u5c55\uff0c\u4f8b\u5982\uff1a<\/li>\n<pre><code>extension=php_mysql.dll\nextension=php_mysqli.dll\nextension=php_gd2.dll<\/code><\/pre>\n<li>\u5728 IIS \u4e2d\uff0c\u6dfb\u52a0 PHP \u4f5c\u70ba\u4e00\u500b\u61c9\u7528\u7a0b\u5e8f\u6620\u5c04\u3002\u6253\u958b IIS \u7ba1\u7406\u5668\uff0c\u53f3\u9375\u9ede\u64ca\u7db2\u7ad9\uff0c\u9078\u64c7\u300c\u5c6c\u6027\u300d\uff0c\u7136\u5f8c\u5728\u300c\u4e3b\u76ee\u9304\u300d\u9078\u9805\u5361\u4e2d\u9ede\u64ca\u300c\u914d\u7f6e\u300d\u3002\u5728\u300c\u61c9\u7528\u7a0b\u5e8f\u6620\u5c04\u300d\u4e2d\u6dfb\u52a0\u4e00\u500b\u65b0\u7684\u6620\u5c04\uff0c\u5c07 .php \u6587\u4ef6\u6307\u5411 C:PHPphp.exe\u3002<\/li>\n<\/ol>\n<h2 id=\"%e5%ae%89%e8%a3%9d-mysql-OdscZEHJLt\">\u5b89\u88dd MySQL<\/h2>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u9700\u8981\u5b89\u88dd MySQL \u6578\u64da\u5eab\u3002\u4ee5\u4e0b\u662f\u5b89\u88dd MySQL \u7684\u6b65\u9a5f\uff1a<\/p>\n<ol>\n<li>\u4e0b\u8f09 MySQL \u7684 Windows \u5b89\u88dd\u5305\u3002<\/li>\n<li>\u904b\u884c\u5b89\u88dd\u7a0b\u5e8f\uff0c\u6309\u7167\u63d0\u793a\u5b8c\u6210\u5b89\u88dd\u3002<\/li>\n<li>\u5728\u5b89\u88dd\u904e\u7a0b\u4e2d\uff0c\u8a2d\u7f6e root \u7528\u6236\u7684\u5bc6\u78bc\uff0c\u4e26\u9078\u64c7\u9069\u5408\u7684\u914d\u7f6e\u9078\u9805\u3002<\/li>\n<\/ol>\n<h2 id=\"%e5%ae%89%e8%a3%9d-zend-framework-OdscZEHJLt\">\u5b89\u88dd Zend Framework<\/h2>\n<p>Zend Framework \u662f\u4e00\u500b\u6d41\u884c\u7684 PHP \u6846\u67b6\uff0c\u60a8\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u6b65\u9a5f\u5b89\u88dd\u5b83\uff1a<\/p>\n<ol>\n<li>\u4e0b\u8f09 Zend Framework \u7684\u6700\u65b0\u7248\u672c\u3002<\/li>\n<li>\u5c07\u5176\u89e3\u58d3\u7e2e\u5230\u60a8\u7684\u7db2\u7ad9\u6839\u76ee\u9304\uff0c\u4f8b\u5982 C:inetpubwwwrootzend\u3002<\/li>\n<li>\u5728\u60a8\u7684 PHP \u61c9\u7528\u7a0b\u5e8f\u4e2d\uff0c\u5305\u542b Zend Framework \u7684\u81ea\u52d5\u52a0\u8f09\u5668\uff1a<\/li>\n<pre><code>require_once 'path\/to\/Zend\/Loader\/Autoloader.php';\nZend_Loader_Autoloader::getInstance();<\/code><\/pre>\n<\/ol>\n<h2 id=\"%e9%85%8d%e7%bd%ae-asp%e3%80%81-net%e3%80%81cgi-%e5%92%8c-perl-OdscZEHJLt\">\u914d\u7f6e ASP\u3001.NET\u3001CGI \u548c Perl<\/h2>\n<p>\u5728 Windows 2003 \u4e0a\uff0c\u60a8\u53ef\u4ee5\u8f15\u9b06\u914d\u7f6e ASP\u3001.NET\u3001CGI \u548c Perl\u3002\u4ee5\u4e0b\u662f\u7c21\u8981\u6b65\u9a5f\uff1a<\/p>\n<ul>\n<li><strong>ASP\uff1a<\/strong>\u78ba\u4fdd\u5728 IIS \u4e2d\u555f\u7528 ASP \u652f\u6301\uff0c\u4e26\u5728\u7db2\u7ad9\u5c6c\u6027\u4e2d\u8a2d\u7f6e\u61c9\u7528\u7a0b\u5e8f\u6c60\u3002<\/li>\n<li><strong>.NET\uff1a<\/strong>\u5b89\u88dd .NET Framework\uff0c\u4e26\u5728 IIS \u4e2d\u8a2d\u7f6e\u76f8\u61c9\u7684\u61c9\u7528\u7a0b\u5e8f\u6620\u5c04\u3002<\/li>\n<li><strong>CGI\uff1a<\/strong>\u5728 IIS \u4e2d\u555f\u7528 CGI \u652f\u6301\uff0c\u4e26\u6dfb\u52a0\u76f8\u61c9\u7684\u61c9\u7528\u7a0b\u5e8f\u6620\u5c04\u3002<\/li>\n<li><strong>Perl\uff1a<\/strong>\u5b89\u88dd Perl\uff0c\u4e26\u5728 IIS \u4e2d\u8a2d\u7f6e\u61c9\u7528\u7a0b\u5e8f\u6620\u5c04\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-OdscZEHJLt\">\u7e3d\u7d50<\/h2>\n<p>\u901a\u904e\u4ee5\u4e0a\u6b65\u9a5f\uff0c\u60a8\u53ef\u4ee5\u5728 Windows 2003 \u4e0a\u6210\u529f\u914d\u7f6e IIS\u3001PHP\u3001MySQL \u548c Zend Framework\uff0c\u4e26\u652f\u6301 ASP\u3001.NET\u3001CGI\u3001Perl \u548c PHP\u3002\u9019\u6a23\u7684\u914d\u7f6e\u4e0d\u50c5\u80fd\u5920\u6eff\u8db3\u591a\u7a2e\u958b\u767c\u9700\u6c42\uff0c\u9084\u80fd\u70ba\u60a8\u7684\u61c9\u7528\u7a0b\u5e8f\u63d0\u4f9b\u7a69\u5b9a\u7684\u904b\u884c\u74b0\u5883\u3002\u5982\u679c\u60a8\u9700\u8981\u66f4\u9ad8\u6548\u7684\u89e3\u6c7a\u65b9\u6848\uff0c\u53ef\u4ee5\u8003\u616e\u4f7f\u7528 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u670d\u52d9\uff0c\u9019\u5c07\u70ba\u60a8\u7684\u7db2\u7ad9\u63d0\u4f9b\u66f4\u597d\u7684\u6027\u80fd\u548c\u7a69\u5b9a\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn to configure IIS, PHP, and MySQL on Win2003, enabling support for ASP, .NET, CGI, Perl, and PHP with step-by-step visuals.<\/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-49004","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/49004","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=49004"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/49004\/revisions"}],"predecessor-version":[{"id":49005,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/49004\/revisions\/49005"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=49004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=49004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=49004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}