{"id":191,"date":"2013-12-25T20:03:06","date_gmt":"2013-12-25T12:03:06","guid":{"rendered":"http:\/\/web.jofar.cn\/?p=191"},"modified":"2013-12-25T20:03:06","modified_gmt":"2013-12-25T12:03:06","slug":"iis6-0php5-3mysqlzend-guard-loaderzendoptimizer%e7%9a%84%e5%8d%87%e7%ba%a7%e7%89%88discuz%e8%ae%ba%e5%9d%9b-notice-undefined-index%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/web.jofar.cn\/?p=191","title":{"rendered":"IIS6.0+PHP5.3+MySQL+Zend Guard Loader(ZendOptimizer\u7684\u5347\u7ea7\u7248),discuz\u8bba\u575b Notice: Undefined index\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"<h3>\u9996\u5148\u6211\u4eec\u53bbzend\u7684\u5b98\u65b9\u7f51\u7ad9\u53bb\u770b\u770b?<a href=\"http:\/\/www.zend.com\/products\/guard\/downloads\">http:\/\/www.zend.com\/products\/guard\/downloads<\/a><\/h3>\n<p>&nbsp;<\/p>\n<p>\u53ef\u4ee5\u660e\u663e\u770b\u51fa\uff0c<strong>ZendOptimizer\u53ea\u652f\u6301\u5230 php 5.2\u7248\u672c\uff0c\u800c\u6700\u65b0\u7684 php5.3 \u5219\u4e0d\u652f\u6301\u3002\u5982\u679c\u6211\u4eec\u9700\u8981\u4f7f\u7528php5.3\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528ZendOptimizer\u7684\u5347\u7ea7\u7248\u672c\uff0c\u5373Zend Guard Loader.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff1aZend Guard Loader\u652f\u6301\u7684\u670d\u52a1\u5668\u7cfb\u7edf\u5982\u4e0b\u3002<\/p>\n<p>Linux x86<\/p>\n<p>Linux x86-64<\/p>\n<p>Windows x86 2000 \/ XP \/ 2003 \/ Vista<\/p>\n<p>Mac OS X 10.4<\/p>\n<p>\u5982\u679c\u662fwindows \u7cfb\u7edf\uff0c\u6682\u65f6\u53ea\u80fd\u662f32\u4f4d\u7684 2003\/vista.\u81f3\u4e8e32\u4f4d\u7684win7\u662f\u5426\u652f\u6301\uff0c\u6211\u6682\u65f6\u6ca1\u6709\u8bd5\u8fc7\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u672c\u6587\u5c06\u8be6\u7ec6\u8bb2\u89e3IIS 6.0+PHP 5.3.18 \uff08\u56e0\u4e3a\u662f\u4f7f\u7528FastCgi\u6a21\u5f0f\uff0c\u6240\u4ee5\u6211\u4eec\u9009\u62e9VC9 x86 Non Thread Safe\uff09+Mysql 5.5.20+Zend Guard Loader (Runtime for PHP 5.3)(\u5373ZendOptimizer\u7684\u5347\u7ea7\u7248)+phpMyAdmin 3.4.9\u73af\u5883\u914d\u7f6e\u8fc7\u7a0b\u3002\u64cd\u4f5c\u7cfb\u7edf\u4ee5Windows.Server.2003\u4e3a\u4f8b\uff0c\u5176\u4ed6\u7cfb\u7edf\u4ecd\u53ef\u4ee5\u53c2\u8003\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u7b2c\u4e00\u6b65\uff0c\u4e0b\u8f7d\u76f8\u5173\u8f6f\u4ef6<\/h3>\n<p>\u672c\u6b21\u5b9e\u4f8b\u6240\u4f7f\u7528\u7684\u662f\u7cfb\u7edf\u662fWindows.Server.2003 32\u4f4d\u7248\u672c\uff0c\u56e0\u6b64\u4ee5\u4e0b\u8f6f\u4ef6\u90fd\u662f\u4e0b\u8f7d\u5bf9\u5e94\u8fd9\u4e2a\u7248\u672c\u7684\uff0c\u4f7f\u7528\u5176\u4ed6\u7248\u672c\u7684windows\u7cfb\u7edf\u7684\u540c\u5b66\u8bf7\u81ea\u884c\u4e0b\u8f7d\u76f8\u5bf9\u5e94\u8f6f\u4ef6\u3002\u5982\u94fe\u63a5\u5931\u6548\uff0c\u8bf7\u76f4\u63a5\u5728\u5b98\u65b9\u7f51\u7ad9\u67e5\u627e\u3002<\/p>\n<p>FastCGI 1.5 for IIS 6 and 5.1<br \/>\n\u5b98\u65b9\u4e0b\u8f7d\u7f51\u9875\uff1a<a href=\"http:\/\/www.iis.net\/download\/FastCGI\">http:\/\/www.iis.net\/download\/FastCGI<\/a><br \/>\n\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/go.microsoft.com\/?linkid=9707432\">http:\/\/go.microsoft.com\/?linkid=9707432<\/a><\/p>\n<p>\u5982\u679c\u662fwin7,\u6216\u8005\u662fwindows server 2008R2\u7b49\u66f4\u9ad8\u7ea7\u7684\u7cfb\u7edf\uff0c\u5219\u4e0d\u9700\u8981\u81ea\u5df1\u4e0b\u8f7d FastCgi<\/p>\n<p>Zend Guard Loader (Runtime for PHP 5.3)<\/p>\n<p>\u5b98\u65b9\u4e0b\u8f7d\u7f51\u9875\uff1a<a href=\"http:\/\/www.zend.com\/products\/guard\/downloads\">http:\/\/www.zend.com\/products\/guard\/downloads<\/a><br \/>\n\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/downloads.zend.com\/guard\/5.5.0\/ZendGuardLoader-php-5.3-Windows.zip\">http:\/\/downloads.zend.com\/guard\/5.5.0\/ZendGuardLoader-php-5.3-Windows.zip<\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>\u7b2c\u4e8c\u6b65\uff0c\u5b89\u88c5\u914d\u7f6e\u8f6f\u4ef6<\/h3>\n<h4>1\u3001\u5b89\u88c5IIS<\/h4>\n<p>\u6253\u5f00\u201c\u63a7\u5236\u9762\u677f\u201d\uff0c\u8fdb\u5165\u201c\u6dfb\u52a0\u6216\u5220\u9664\u7a0b\u5e8f\u201d\uff0c\u70b9\u51fb\u201c\u6dfb\u52a0\/\u5220\u9664windows\u7ec4\u4ef6\u201d\uff0c\u5f39\u51fa\u201cwindows\u7ec4\u4ef6\u5411\u5bfc\u201d\u5bf9\u8bdd\u6846\u3002\u53cc\u51fb\u201c\u5e94\u7528\u7a0b\u5e8f\u670d\u52a1\u5668\u201d\uff0c\u518d\u53cc\u51fb\u201cInternet\u4fe1\u606f\u670d\u52a1\u201d\uff0c\u9009\u4e2d\u201c\u4e07\u7ef4\u7f51\u670d\u52a1\u201d(\u6ce8\uff1a\u6b64\u9009\u9879\u4e0b\u8fd8\u53ef\u8fdb\u4e00\u6b65\u4f5c\u9009\u9879\u7b5b\u9009\uff0c\u8bf7\u6839\u636e\u81ea\u5df1\u9700\u8981\u9009\u7528\uff0c\u5982\u4e0b\u56fe\u6240\u793a)\uff0c\u70b9\u786e\u5b9a\u5373\u5b89\u88c5\u5b8c\u6210\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/web.jofar.cn\/wp-content\/uploads\/2013\/12\/35db7f23b580db8119c58d7b11cfa82c.jpg\" \/><\/p>\n<h4>2\u3001\u5b89\u88c5FastCGI 1.5 for IIS 6 and 5.1<\/h4>\n<p>IIS6\u91cc\u9762\u6ca1\u6709\u96c6\u6210FastCGI\uff0c\u6240\u4ee5\u9700\u8981\u5b89\u88c5\u8fd9\u4e2a\u624d\u80fd\u8dd1\u8d77PHP\u3002\u8fd9\u4e2a\u6ca1\u4ec0\u4e48\u597d\u8bf4\u7684\uff0c\u76f4\u63a5\u5b89\u88c5\uff0c\u9ed8\u8ba4\u4f1a\u66f4\u6539\u7cfb\u7edf\u7684PHP\u73af\u5883\uff0c\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00IIS\u7ba1\u7406\u5668\uff0c\u7f51\u7ad9\u4e0a\u70b9\u53f3\u952e-\u5c5e\u6027-\u4e3b\u76ee\u5f55-\u914d\u7f6e\uff0c\u5982\u679c\u6709PHP\u9009\u9879\u5c31\u4fee\u6539\uff0c\u6ca1\u6709\u5c31\u6dfb\u52a0\u914d\u7f6e\u5982\u4e0b\u56fe<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/web.jofar.cn\/wp-content\/uploads\/2013\/12\/af1950b1b0ba6fef1281d7857abfda39.jpg\" \/><\/p>\n<p>\u6253\u5f00FASTCGI\u914d\u7f6e\u6587\u4ef6C:\\WINDOWS\\system32\\inetsrv\\fcgiext.ini\uff0c\u770b\u6700\u540e\u6709\u6ca1\u6709\u4e0b\u9762\u8fd9\u6bb5\uff0c\u5982\u679c\u6ca1\u6709\u5c31\u52a0\u4e0a<br \/>\n[Types]<br \/>\nphp=PHP<br \/>\n[PHP]<br \/>\nExePath=D:\\Program Files\\Php\\php-cgi.exe<\/p>\n<p>\u5bf9\u4e8e512M\u7684\u66f4\u7965\u7ec6\u7684\u53ef\u4ee5\u5982\u4e0b\uff1a<\/p>\n<p>[Types]<br \/>\nphp=PHP<\/p>\n<p>[PHP]<br \/>\nExePath=d:\\php\\php\\php-cgi.exe<br \/>\nmaxInstances=50<br \/>\nInstanceMaxRequests=200<br \/>\nActivityTimeout=600<br \/>\nRequestTimeout=600<br \/>\nEnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000,PHPRC:d:\\php\\php\\<br \/>\n\u5728\u4e0a\u9762\u7684\u914d\u7f6e\u4e2d\uff1a<br \/>\nExePath \u6307\u5b9a\u4e86FastCGI\u89e3\u6790\u7a0b\u5e8f\u7684\u8def\u5f84\uff0c<br \/>\ninstanceMaxRequests \u6307\u5b9a\u4e86\u6bcf\u4e2a\u5b9e\u4f8b\u53ef\u4ee5\u5904\u7406\u7684\u6700\u5927\u8bf7\u6c42\u6570\uff0c<br \/>\nmaxInstances \u6307\u5b9a\u53ef\u4ee5\u542f\u52a8\u7684\u6700\u5927\u5b9e\u4f8b\u6570\u76ee\uff0c<br \/>\nEnvironmentVars \u521b\u5efa\u4e86\u4e00\u4e2a\u73af\u5883\u53d8\u91cf PHP_FCGI_MAX_REQUESTS \uff0c\u9ed8\u8ba4\u503c\u8bbe\u4e3a10000\uff0c<br \/>\nrequestTimeout \u6307\u5b9a\u4e86\u8bf7\u6c42\u7684\u8d85\u65f6\u65f6\u95f4\u4e3a600\u79d2\uff0c<br \/>\nactivityTimeout \u6307\u5b9a\u4e86\u6d3b\u52a8\u4f1a\u8bdd\u8d85\u65f6\u65f6\u95f4\u4e3a900\u79d2\u3002<\/p>\n<p>\u4e00\u4e0b\u662f\u5efa\u8bae\u503c\uff1a<br \/>\nmaxInstances=<br \/>\n\u628a\u8fd9\u4e2a\u503c\u6539\u5c0f<\/p>\n<p>\u5efa\u8bae<br \/>\n512M \u5185\u5b58\u7684\u6539maxInstances=50<br \/>\n1G \u5185\u5b58\u7684\u6539maxInstances=80<br \/>\n2G \u5185\u5b58\u7684\u6539maxInstances=140<\/p>\n<p>\u518d\u4fee\u6539<br \/>\nInstanceMaxRequests=<br \/>\n\u628a\u8fd9\u4e2a\u503c\u6539\u5c0f<\/p>\n<p>\u5efa\u8bae<br \/>\n512M \u5185\u5b58\u7684\u6539InstanceMaxRequests=200<br \/>\n1G \u5185\u5b58\u7684\u6539InstanceMaxRequests=300<br \/>\n2G \u5185\u5b58\u7684\u6539InstanceMaxRequests=500<\/p>\n<p>\u6539\u5b8c\uff0c \u91cd\u542fIIS\u3002<\/p>\n<h4>3\u3001\u5b89\u88c5\u914d\u7f6ePHP<\/h4>\n<p>PHP5.3\u6709 VC9 \u7248\u672c\u548c VC6 \u7248\u672c\uff0cVC6 \u7248\u672c\u662f\u4f7f\u7528 Visual Studio 6 \u7f16\u8bd1\u5668\u7f16\u8bd1\u7684\uff0c\u5982\u679c\u4f60\u7684 PHP \u662f\u7528 Apache \u6765\u67b6\u8bbe\u7684\uff0c\u90a3\u4f60\u5c31\u9009\u62e9 VC6 \u7248\u672c\u3002VC9 \u7248\u672c\u662f\u4f7f\u7528 Visual Studio 2008 \u7f16\u8bd1\u5668\u7f16\u8bd1\u7684\uff0c\u5982\u679c\u4f60\u7684 PHP \u662f\u7528 IIS \u6765\u67b6\u8bbe\u7684\uff0c\u90a3\u4f60\u5c31\u9009\u62e9 VC9 \u7248\u672c\u3002<\/p>\n<p>\u6253\u5f00\u4e0b\u8f7d\u9875\u9762\uff0c\u4f60\u8fd8\u80fd\u770b\u5230\u6709Thread Safe \u548c Non Thread Safe \u7248\u672c\u3002<br \/>\n\u5148\u4ece\u5b57\u9762\u610f\u601d\u4e0a\u7406\u89e3\uff0cThread Safe \u662f\u7ebf\u7a0b\u5b89\u5168\uff0c\u6267\u884c\u65f6\u4f1a\u8fdb\u884c\u7ebf\u7a0b\uff08Thread\uff09\u5b89\u5168\u68c0\u67e5\uff0c\u4ee5\u9632\u6b62\u6709\u65b0\u8981\u6c42\u5c31\u542f\u52a8\u65b0\u7ebf\u7a0b\u7684 CGI \u6267\u884c\u65b9\u5f0f\u800c\u8017\u5c3d\u7cfb\u7edf\u8d44\u6e90\u3002Non Thread Safe \u662f\u975e\u7ebf\u7a0b\u5b89\u5168\uff0c\u5728\u6267\u884c\u65f6\u4e0d\u8fdb\u884c\u7ebf\u7a0b\uff08Thread\uff09\u5b89\u5168\u68c0\u67e5\u3002<\/p>\n<p>\u518d\u6765\u770b PHP \u7684\u4e24\u79cd\u6267\u884c\u65b9\u5f0f\uff1aISAPI \u548c FastCGI\u3002<\/p>\n<p>ISAPI \u6267\u884c\u65b9\u5f0f\u662f\u4ee5 DLL \u52a8\u6001\u5e93\u7684\u5f62\u5f0f\u4f7f\u7528\uff0c\u53ef\u4ee5\u5728\u88ab\u7528\u6237\u8bf7\u6c42\u540e\u6267\u884c\uff0c\u5728\u5904\u7406\u5b8c\u4e00\u4e2a\u7528\u6237\u8bf7\u6c42\u540e\u4e0d\u4f1a\u9a6c\u4e0a\u6d88\u5931\uff0c\u6240\u4ee5\u9700\u8981\u8fdb\u884c\u7ebf\u7a0b\u5b89\u5168\u68c0\u67e5\uff0c\u8fd9\u6837\u6765\u63d0\u9ad8\u7a0b\u5e8f\u7684\u6267\u884c\u6548\u7387\uff0c\u6240\u4ee5\u5982\u679c\u662f\u4ee5 ISAPI \u6765\u6267\u884c PHP\uff0c\u5efa\u8bae\u9009\u62e9 Thread Safe \u7248\u672c\uff1b<\/p>\n<p>\u800c FastCGI \u6267\u884c\u65b9\u5f0f\u662f\u4ee5\u5355\u4e00\u7ebf\u7a0b\u6765\u6267\u884c\u64cd\u4f5c\uff0c\u6240\u4ee5\u4e0d\u9700\u8981\u8fdb\u884c\u7ebf\u7a0b\u7684\u5b89\u5168\u68c0\u67e5\uff0c\u9664\u53bb\u7ebf\u7a0b\u5b89\u5168\u68c0\u67e5\u7684\u9632\u62a4\u53cd\u800c\u53ef\u4ee5\u63d0\u9ad8\u6267\u884c\u6548\u7387\uff0c\u6240\u4ee5\uff0c\u5982\u679c\u662f\u4ee5 FastCGI \u6765\u6267\u884c PHP\uff0c\u5efa\u8bae\u9009\u62e9 Non Thread Safe \u7248\u672c\u3002<\/p>\n<p>\u8fd9\u91cc\u6211\u91c7\u7528\u7684\u662fPHP 5.3.18 VC9 x86 Non Thread Safe\uff0c\u4ee5 FastCGI \u6765\u6267\u884c PHP\u3002\u4e0b\u8f7d\u4e2d\u95f4\u7684\u5b89\u88c5\u5305\uff0c\u76f4\u63a5\u5b89\u88c5<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/web.jofar.cn\/wp-content\/uploads\/2013\/12\/7609df95d67770a629f190f4c9d7b21b.jpg\" \/><\/p>\n<p>\u9009\u62e9\u9002\u5408\u7684\u5b89\u88c5\u8def\u5f84\uff0c\u4e0b\u4e00\u6b65\u9009\u62e9IIS FastCGI\uff0c\u5982\u4e0b\u56fe\u3002\u4e0b\u4e00\u6b65\uff0c\u5b89\u88c5\u5b8c\u6210\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/web.jofar.cn\/wp-content\/uploads\/2013\/12\/334bc4010d36290cfc761ec9d6411511.jpg\" \/><\/p>\n<p>\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9009\u62e9\u5f00\u542f\u54ea\u4e9bPHP\u6269\u5c55\uff0c\u81ea\u5df1\u51b3\u5b9a\u3002\u8fd9\u4e9b\u90fd\u53ef\u4ee5\u5728PHP.INI\u91cc\u5f00\u542f\u5173\u95ed\u7684\u3002<\/p>\n<p>\u5b89\u88c5\u540e\u627e\u5230PHP\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684PHP.INI\u6587\u4ef6\uff0c\u627e\u5230\u4e0b\u9762<br \/>\n[Date]<br \/>\n; Defines the default timezone used by the date functions<br \/>\n; http:\/\/php.net\/date.timezone<br \/>\n; date.timezone =<br \/>\n\u66f4\u6539\u4e3a<br \/>\n[Date]<br \/>\n; Defines the default timezone used by the date functions<br \/>\n; http:\/\/php.net\/date.timezone<br \/>\ndate.timezone = Asia\/Shanghai<\/p>\n<p>IIS\u4e0a\u65b0\u5efa\u4e00\u7f51\u7ad9\uff0c\u653e\u5165phpinfo.php\u6587\u4ef6\uff0c\u4ee3\u7801\u4e3a&lt;?php phpinfo(); ?&gt; \u3002\u81f3\u6b64\uff0cPHP\u670d\u52a1\u7aef\u642d\u5efa\u57fa\u672c\u5b8c\u6210\uff0c\u4e0b\u9762\u7ee7\u7eed\u8bb2\u89e3MySQL+Zend Guard Loader(ZendOptimizer)+phpMyAdmin\u7684\u914d\u7f6e\u3002<\/p>\n<h4>4\u3001\u5b89\u88c5Mysql 5.5.20<\/h4>\n<p>\u4e0b\u8f7d\u5b89\u88c5\u5305\uff0c\u53cc\u51fb\u5b89\u88c5\uff0c\u70b9\u4e0b\u4e00\u6b65\u9ed8\u8ba4\u662fTypical\uff0c\u5efa\u8bae\u6539\u6210Custom\uff0c\u56e0\u4e3aTypical\u6a21\u5f0f\u4e0d\u5141\u8bb8\u6539\u53d8\u5b89\u88c5\u8def\u5f84\uff0c\u53ea\u80fd\u5b89\u88c5\u5728C\u76d8\u3002\u9009\u4e2dCustom\u9009\u9879\u3002\u7136\u540e\u4e00\u76f4\u70b9\u4e0b\u4e00\u6b65\uff0c\u9009\u62e9\u5b89\u88c5\u7684\u8def\u5f84\uff0c\u548c\u5b89\u88c5\u7684\u7ec4\u4ef6\uff0c\u6211\u8fd9\u91cc\u90fd\u662f\u9ed8\u8ba4\u9009\u9879\uff0c\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u60c5\u51b5\u6765\u9009\u3002\u4e00\u76f4\u5230\u5b8c\u6210\u3002\u5230Finish\u7684\u4e00\u6b65\uff0c\u4e0a\u9762\u6709\u4e2a\u9009\u9879\uff0c\u9009\u4e0a\uff0c\u8fd9\u662f\u8fdb\u5165\u914d\u7f6eMySQL\u7684\u3002<\/p>\n<p>\u4e0b\u9762\u6211\u4eec\u6765\u770b\u770b\u914d\u7f6e\u9009\u9879\uff0c\u914d\u7f6e\u5f00\u59cb\uff0c\u9009\u4e0b\u4e00\u6b65\uff0c<br \/>\n\u9009\u62e9Detailed Configuration\uff0c\u5982\u4e0b\u56fe<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/web.jofar.cn\/wp-content\/uploads\/2013\/12\/19279d8f9cc2f8e889c1d69141fe64ad.jpg\" \/><\/p>\n<p>\u4e0b\u4e00\u6b65\uff0c\u8fd9\u4e2a\u9009\u9879\u662f\u9009\u62e9mysql\u5e94\u7528\u4e8e\u4f55\u79cd\u7c7b\u578b\uff0c\u7b2c\u4e00\u79cd\u662f\u5f00\u53d1\u670d\u52a1\u5668\uff0c\u5c06\u5360\u7528\u5c3d\u91cf\u5c11\u7684\u5185\u5b58\uff0c<\/p>\n<p>\u7b2c\u4e8c\u79cd\u662f\u666e\u901aweb\u670d\u52a1\u5668\uff0c\u5c06\u5360\u7528\u4e2d\u7b49\u6570\u91cf\u5185\u5b58\uff0c<\/p>\n<p>\u6700\u540e\u4e00\u79cd\u662f\u8fd9\u53f0\u670d\u52a1\u5668\u4e0a\u9762\u53ea\u8dd1mysql\u6570\u636e\u5e93\uff0c\u5c06\u5360\u7528\u5168\u90e8\u7684\u5185\u5b58\uff0c<\/p>\n<p>\u8fd9\u91cc\u9009\u62e9\u7b2c\u4e8c\u9879\uff0c\u4f60\u53ef\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\uff0c\u9009\u62e9\u5176\u5b83\u9009\u9879\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/web.jofar.cn\/wp-content\/uploads\/2013\/12\/803e538703bfbfac843a27b77295bf3e.jpg\" \/><\/p>\n<p>\u4e0b\u4e00\u6b65\uff0c\u8fd9\u91cc\u662f\u9009\u62e9\u6570\u636e\u5e93\u7528\u9014\uff0c<\/p>\n<p>\u7b2c\u4e00\u79cd\u662f\u591a\u529f\u80fd\u7528\u9014\uff0c\u5c06\u628a\u6570\u636e\u5e93\u4f18\u5316\u6210\u5f88\u597d\u7684InnoDB\u5b58\u50a8\u7c7b\u578b\u548c\u9ad8\u6548\u7387\u7684MyISAM\u5b58\u50a8\u7c7b\u578b\uff0c<\/p>\n<p>\u7b2c\u4e8c\u79cd\u662f\u53ea\u7528\u4e8e\u4e8b\u52a1\u5904\u7406\u7c7b\u578b\uff0c\u6700\u597d\u7684\u4f18\u5316InnoDB\uff0c\u4f46\u540c\u65f6\u4e5f\u652f\u6301MyISAM\uff0c<\/p>\n<p>\u6700\u540e\u4e00\u79cd\u662f\u975e\u4e8b\u52a1\u5904\u7406\u7c7b\u578b\uff0c\u9002\u5408\u4e8e\u7b80\u5355\u7684\u5e94\u7528\uff0c\u53ea\u6709\u4e0d\u652f\u6301\u4e8b\u52a1\u5904\u7406\u7684MyISAM\u7c7b\u578b\u662f\u88ab\u652f\u6301\u7684\u3002\u4e00\u822c\u9009\u62e9\u7b2c\u4e00\u79cd\u591a\u529f\u80fd\u7684\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/web.jofar.cn\/wp-content\/uploads\/2013\/12\/74f00d5c2190a3ec602a05d6129f645c.jpg\" \/><\/p>\n<p>\u4e0b\u4e00\u6b65\uff0c\u8fd9\u91cc\u662f\u9009\u62e9InnoDB\u7684\u6570\u636e\u5b58\u653e\u4f4d\u7f6e\uff0c\u4e00\u822c\u9ed8\u8ba4\u597d\u4e86\uff0c\u4e0d\u9700\u8981\u6539\u52a8\u3002<\/p>\n<p>\u4e0b\u4e00\u6b65\uff0c\u8fd9\u91cc\u662f\u9009\u62e9mysql\u5141\u8bb8\u7684\u6700\u5927\u8fde\u63a5\u6570\uff0c\u7b2c\u4e00\u79cd\u662f\u6700\u592720\u4e2a\u8fde\u63a5\u5e76\u53d1\u6570\uff0c<\/p>\n<p>\u7b2c\u4e8c\u79cd\u662f\u6700\u5927500\u4e2a\u5e76\u53d1\u8fde\u63a5\u6570\uff0c<\/p>\n<p>\u6700\u540e\u4e00\u79cd\u662f\u81ea\u5b9a\u4e49\uff0c\u4f60\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u9009\u62e9\u3002<\/p>\n<p>\u8fd9\u91cc\u6211\u9009\u62e9\u7b2c\u4e09\u9879\u81ea\u5b9a\u4e49\uff0c\u8f93\u516520\uff08\u4f60\u53ef\u4ee5\u6839\u636e\u4f60\u7684\u5177\u4f53\u9700\u6c42\u9009\u62e9\u6216\u8005\u8f93\u5165\uff09\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/web.jofar.cn\/wp-content\/uploads\/2013\/12\/f4c120ddcc3e320510433c1258355644.jpg\" \/><\/p>\n<p>\u4e0b\u4e00\u6b65\uff0c\u8fd9\u91cc\u662f\u9009\u62e9\u6570\u636e\u5e93\u76d1\u542c\u7684\u7aef\u53e3\uff0c\u4e00\u822c\u9ed8\u8ba4\u662f3306\uff0c\u5982\u679c\u6539\u6210\u5176\u5b83\u7aef\u53e3\uff0c\u4ee5\u540e\u8fde\u63a5\u6570\u636e\u5e93\u7684\u65f6\u5019\u90fd\u8981\u8bb0\u4f4f\u4fee\u6539\u7684\u7aef\u53e3\uff0c\u5426\u5219\u4e0d\u80fd\u8fde\u63a5mysql\u6570\u636e\u5e93\uff0c\u5efa\u8bae\u4e0d\u4f5c\u4fee\u6539\uff0c\u7528mysql\u7684\u9ed8\u8ba4\u7aef\u53e3\uff1a3306\u3002<br \/>\n\u5c06\u7aef\u53e3\u8bbe\u7f6e\u540e\u9762\u7684\u201cAdd firewall exception for this port\u201d\u52fe\u9009\u4e2d\uff0c\u5982\u679c\u4f60\u5f00\u542f\u4e86Windows\u9632\u706b\u5899\uff0c\u5c06\u81ea\u52a8\u628a\u8fd9\u91cc\u8bbe\u7f6e\u7684\u7aef\u53e3\uff083306\uff09\u6392\u9664\u5728\u5916\uff08\u5141\u8bb8\u8fde\u63a5\u7f51\u7edc\uff09<\/p>\n<p>(\u5982\u679c\u4f60\u6ca1\u6709\u5f00\u542fWindows\u9632\u706b\u5899\u8fd9\u91cc\u5c31\u4e0d\u8981\u52fe\u9009,Windows server 2003 \u6b63\u7248\u9ed8\u8ba4\u662f\u6ca1\u6709\u5f00\u542f\u7684)\u3002<br \/>\n\u4e0b\u9762\u7684Enable Strict Mode\u52fe\u53bb\u6389\uff0c\u6539\u4e3a\u4e0d\u9009\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/web.jofar.cn\/wp-content\/uploads\/2013\/12\/4096c648d05ee77061dc23f695cc9e37.jpg\" \/><\/p>\n<p>\u4e0b\u4e00\u6b65\u8bbe\u7f6emysql\u7684\u9ed8\u8ba4\u7f16\u7801\uff0c\u9ed8\u8ba4\u662flatin1\uff0c\u5efa\u8bae\u9009\u62e9\u7b2c\u4e09\u9879\u81ea\u5b9a\u4e49\uff0c\u628a\u5b83\u6539\u6210utf8\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/web.jofar.cn\/wp-content\/uploads\/2013\/12\/5f6ea30cc7be38e9e1437c913477c547.jpg\" \/><\/p>\n<p>\u70b9\u4e0b\u4e00\u6b65\uff0c\u8fd9\u4e00\u6b65\u628amysql\u8bbe\u7f6e\u6210windows\u7684\u670d\u52a1\uff0cservice name\u662f\u547d\u540dMySQL\u7684\u670d\u52a1\u540d\u79f0\uff0c\u4e0b\u9762\u7684launch the mysql server automatically\u52fe\u9009\u4e2d\u8868\u793a\uff0c\u8be5\u670d\u52a1\u4e3a\u81ea\u52a8\u8fd0\u884c\u3002\u8fd9\u6837\u4ee5\u540e\u5c31\u53ef\u4ee5\u901a\u8fc7windows\u670d\u52a1\u542f\u52a8\u548c\u5173\u95edmysql\u6570\u636e\u5e93\u4e86\u3002\u7136\u540e\u628a\u4e0b\u9762\u7684Include Bin Directory in Windows PATH\u52fe\u9009\u4e2d\uff08\u8fd9\u4e2a\u8868\u793a\u81ea\u52a8\u4fee\u6539\u73af\u5883\u53d8\u91cf\uff0c\u5728PATH\u7684\u503c\u4e2d\u589e\u52a0..\/bin\u76ee\u5f55\uff09\u3002<\/p>\n<p>\u70b9\u4e0b\u4e00\u6b65\uff0c\u8fd9\u4e00\u6b65\u662f\u8bbe\u7f6emysql\u7684\u8d85\u7ea7\u7528\u6237\u5bc6\u7801\uff0c\u8fd9\u4e2a\u8d85\u7ea7\u7528\u6237\u975e\u5e38\u91cd\u8981\uff0c\u5bf9mysql\u62e5\u6709\u5168\u90e8\u7684\u6743\u9650\uff0c\u8bbe\u7f6e\u7684\u5bc6\u7801\u4e00\u5b9a\u8981\u8bb0\u597d\u3002\u5728\u4e24\u4e2a\u8f93\u5165\u6846\u4e2d(New root password\u3001Confirm)\u628a\u8981\u8bbe\u7f6e\u7684\u5bc6\u7801\u5206\u522b\u8f93\u5165\u4e24\u6b21\u3002\u51fa\u4e8e\u5b89\u5168\u8003\u8651\uff0c\u4e00\u822c\u4e0d\u8981\u9009\u201cEnable root access from remote machines\u201d\uff0c\u5141\u8bb8\u6570\u636e\u5e93\u5916\u8fde\u662f\u5f88\u5371\u9669\u7684\u3002\u201cCreate An Anonymous Account\u201d\u662f\u521b\u5efa\u4e00\u4e2a\u533f\u540d\u5e10\u53f7,\u8fd9\u6837\u4f1a\u5bfc\u81f4\u672a\u7ecf\u6388\u6743\u7684\u7528\u6237\u975e\u6cd5\u8bbf\u95ee\u4f60\u7684\u6570\u636e\u5e93,\u6709\u5b89\u5168\u9690\u60a3,\u5efa\u8bae\u4e0d\u8981\u52fe\u9009\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\u600e\u6837\u5b89\u88c5mysql server6\uff08\u6570\u636e\u5e93\u670d\u52a1\u5668\uff09\" src=\"http:\/\/web.jofar.cn\/wp-content\/uploads\/2013\/12\/381d92e1e285ca883271559c73cc3431.jpg\" \/><\/p>\n<p>\u518d\u4e0b\u4e00\u6b65\uff0cMySQL\u5df2\u914d\u7f6e\u5b8c\u6210\uff0c\u67e5\u770b\u201c\u63a7\u5236\u9762\u677f\u201d\u7684\u201c\u7ba1\u7406\u5de5\u5177\u201d\u4e2d\uff0c \u201c\u670d\u52a1\u201d\u662f\u5426\u6709\u201cMySQL\u201d\u8fdb\u7a0b\u3002<\/p>\n<h4>5.1\u3001\u5b89\u88c5ZendOptimizer<\/h4>\n<h4>\u4e0b\u8f7dZendOptimizer 3.3.9\u7248\u672c\u7684ZendOptimizer.so\uff08linux\u4e0b\u7684\uff09\uff0c\u9002\u7528\u4e8ephp5.2.17\uff0c\u5728php5.2.17\u4ee5\u4e0a\u5c31\u7528\u9700\u7528ZendOptimizer\u4e86<\/h4>\n<div>\u5728php.ini\u4e2d\u52a0\u5165\u4e0b\u9762\u7684\u4ee3\u7801\uff1a<\/div>\n<div>Zend Optimizer options<br \/>\nzend_optimizer.optimization_level=1023<br \/>\nzend_extension=\/home\/webcangt\/public_html\/ZendOptimizer.so<\/div>\n<div><\/div>\n<div>\u88c5\u597d\u540e\u5728Phpinfo\u4e2d\u770b\u5230\u5982\u4e0b\u56fe\uff1a<\/div>\n<div><img decoding=\"async\" alt=\"\" src=\"http:\/\/web.jofar.cn\/wp-content\/uploads\/2013\/12\/3c1a2cf28d1776fd9bb272adda25dbec.png\" \/><\/div>\n<h4><\/h4>\n<h4>5.2 \u5b89\u88c5Zend Guard Loader\uff0c\u9002\u7528\u4e8ePhp5.3\u53ca\u4ee5\u4e0a<\/h4>\n<p>\u7531\u4e8eZendOptimizer\u4e0d\u652f\u6301PHP5.3\uff0c\u4f7f\u7528PHP5.3\u4ee5\u4e0a\u7248\u672c\u7684\u7528\u6237\u5c31\u5b89\u88c5Zend Guard Loader (Runtime for PHP 5.3)\u3002<\/p>\n<p>\u5f88\u7b80\u5355\u89e3\u538b\u51faZendLoader.dll\uff0c\u653e\u5230PHP\u7684ext\u76ee\u5f55\u3002\u6211\u7684\u662fC:\\Program Files\\PHP\\ext\u3002\u7136\u540e\u4fee\u6539php.ini\uff0c\u5728\u6587\u4ef6\u672b\u7aef\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801<\/p>\n<p>[Zend.loader]<br \/>\nzend_extension=C:\\Program Files\\PHP\\ext\\ZendLoader.dll<br \/>\nzend_loader.enable=1<br \/>\nzend_loader.disable_licensing=0<br \/>\nzend_loader.obfuscation_level_support=3<br \/>\nzend_loader.license_path=<\/p>\n<p>\u6ce8\u610f\uff1a1\u3001zend_extension\u7684\u8def\u5f84\u4e0d\u9700\u8981\u52a0\u5f15\u53f7\uff01\uff01<br \/>\n2\u3001Zend Guard Loader\u652f\u6301\u7684\u64cd\u4f5c\u7cfb\u7edf:<br \/>\nLinux x86<br \/>\nLinux x86-64<br \/>\nWindows x86 2000 \/ XP \/ 2003 \/ Vista<br \/>\nMac OS X 10.4<\/p>\n<p>\u8fd9\u662f\u90e8\u5206\u7ae5\u978b\u6309\u7f51\u4e0a\u90e8\u5206\u7684\u6559\u7a0b\u64cd\u4f5c\u4e4b\u540e\uff0c\u8fd8\u662f\u4e0d\u751f\u6548\u7684\u539f\u56e0\u3002<\/p>\n<p>\u914d\u7f6e\u5b8c\u6210\uff0c\u6253\u5f00\u521a\u521a\u7684phpinfo.php\u6587\u4ef6\uff0c\u53ef\u4ee5\u770b\u5230\u4e00\u6bb5\u8bdd\u201cwith Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies\u201d\u5982\u56fe\u6240\u793a\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/web.jofar.cn\/wp-content\/uploads\/2013\/12\/396636c6bea48ccde1c027b61d63640d.jpg\" \/><\/p>\n<h4>?<img decoding=\"async\" alt=\"\" src=\"http:\/\/web.jofar.cn\/wp-content\/uploads\/2013\/12\/2cb93fd75c2b4831b0f9ff1afce80cec.png\" \/><\/h4>\n<p>\u5982\u679c\u8fd0\u884c discuz\u7684\u65f6\u5019\u63d0\u793a<\/p>\n<pre>Notice: Undefined index: fromuid in \u30fb\u30fb\u30fb\u30fb\u30fbindex.php on line 120<\/pre>\n<pre>Notice: Undefined index: fromuid in \u30fb\u30fb\u30fb\u30fb\u30fbindex.php on line 122<\/pre>\n<p>\u9996\u5148\uff0c\u8fd9\u4e2a\u4e0d\u662f\u9519\u8bef\uff0c\u662fwarning\u3002\u6240\u4ee5\u5982\u679c\u670d\u52a1\u5668\u4e0d\u80fd\u6539\uff0c\u6bcf\u4e2a\u53d8\u91cf\u4f7f\u7528\u524d\u5e94\u5f53\u5148\u5b9a\u4e49\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u670d\u52a1\u5668\u914d\u7f6e\u4fee\u6539<\/p>\n<p>\u4fee\u6539<a href=\"http:\/\/www.2cto.com\/kf\/web\/php\/\">php<\/a>.ini\u914d\u7f6e\u6587\u4ef6\uff0cerror_reporting = E_ALL &amp; ~E_NOTICE<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u6211\u4eec\u53bbzend\u7684\u5b98\u65b9\u7f51\u7ad9\u53bb\u770b\u770b?http:\/\/www.zend.com\/products\/guard\/do\u2026 <span class=\"read-more\"><a href=\"https:\/\/web.jofar.cn\/?p=191\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,12,5],"tags":[],"class_list":["post-191","post","type-post","status-publish","format-standard","hentry","category-cloud","category-server","category-practice-readme"],"_links":{"self":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/posts\/191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=191"}],"version-history":[{"count":0,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions"}],"wp:attachment":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}