{"id":50,"date":"2010-02-25T02:09:20","date_gmt":"2010-02-24T18:09:20","guid":{"rendered":"http:\/\/www.bluesdream.com\/blog\/windows7-under-apache2-2-mysql5-1-php5-3-phpmyadmin3-2-configuration.html"},"modified":"2010-02-25T02:20:30","modified_gmt":"2010-02-24T18:20:30","slug":"windows7-php5-environment-config","status":"publish","type":"post","link":"https:\/\/www.bluesdream.com\/blog\/windows7-php5-environment-config.html","title":{"rendered":"Windows7\u4e0bApache2.2 + MySql5.1 + PHP5.3 + PhpMyAdmin3.2 \u914d\u7f6e"},"content":{"rendered":"<p><strong>Windows7 + Apache2.2.14 + MySql5.1.44 + PHP5.3.1 + PhpMyAdmin3.2.5 \u73af\u5883\u914d\u7f6e\u53ca\u8bf4\u660e<br \/>\n<\/strong>\u521a\u914d\u7f6e\u4e86\u4e00\u4e2aWindows7\u73af\u5883\u4e0b\u7684PHP\u73af\u5883\uff0c\u4e2d\u95f4\u4e5f\u9047\u5230\u4e86\u4e0d\u5c11\u95ee\u9898\uff0c\u5728\u6b64\u5c31\u505a\u4e00\u4e2a\u624b\u8bb0\uff0c\u6709\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\uff0c\u6211\u628a\u5b89\u88c5\u6b65\u9aa4\u548c\u4e00\u4e9b\u8bf4\u660e\u90fd\u5199\u4e86\u4e0a\u53bb\uff0c\u76f8\u6bd4\u76ee\u524d\u7f51\u4e0a\u7684\u914d\u7f6e\u65b9\u6cd5\u800c\u8a00\uff0c\u5e94\u8be5\u662f\u6bd4\u8f83\u5168\u9762\u7684\u4e86\u3002\u4e2d\u95f4\u5982\u679c\u9047\u5230\u4ec0\u4e48\u95ee\u9898\uff0c\u53ef\u4ee5\u7559\u8a00\u8ba8\u8bba\u3002<!--more--><br \/>\n<strong>Windows7\u00a0\u4e0bPHP\u73af\u5883\u914d\u7f6e\u65b9\u6cd5<\/strong><br \/>\n<strong>\u4e00\u3001Apache\u5b89\u88c5<\/strong><br \/>\n\u7248\u672c\u89e3\u91ca\uff1aopenssl\u662f\u8868\u793a\u5e26\u6709openssl\u6a21\u5757\uff0c\u5229\u7528openssl\u5c31\u53ef\u4ee5\u7ed9Apache\u914d\u7f6eSSL\u5b89\u5168\u94fe\u63a5\u7684\uff0c\u4e5f\u5c31\u662f\u4f7f\u7528https:\/\/\u65b9\u5f0f\u8fdb\u884c\u8bbf\u95ee\u3002<br \/>\n\u3000\u3000\u3000\u3000\u3000nossl\u5219\u8868\u793a\u4e0d\u5e26OpenSSL\u6a21\u5757\uff0c\u65e0\u3000\u6cd5\u7528\u4e8eSSL\u5b89\u5168\u94fe\u63a5\uff0c\u5728\u8fd9\u91cc\u6211\u4eec\u4e0b\u8f7d\u5e26OpenSSL\u7684\u3002<br \/>\n\u9009\u62e9\u7248\u672c\uff1aapache_2.2.14-win32-x86-openssl-0.9.8k.msi<br \/>\n\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/www.apache.org\/dist\/httpd\/binaries\/win32\/\">http:\/\/www.apache.org\/dist\/httpd\/binaries\/win32\/<\/a><\/p>\n<p>\u9996\u5148\u6211\u4eec\u5728D\u76d8\uff08\u76d8\u7b26\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u81ea\u5df1\u9009\u62e9\uff09\u65b0\u5efa\u4e00\u4e2a\u76ee\u5f55\uff0c<br \/>\n\u5e76\u4e14\u547d\u540d\u4e3a\u201cWAMP\u201d\u5176\u610f\u4e49\u4e3a\u201cWdindows Apache Mysql PhpMyAdmin\u201d \u4e4b\u540e\u5b89\u88c5\u7684\u4e00\u4e9b\u5185\u5bb9\uff0c\u4e5f\u90fd\u5c06\u5b89\u88c5\u5728\u8be5\u76ee\u5f55\u4e0b\u3002<\/p>\n<p>1.\u5b89\u88c5\u8bf4\u660e\uff1a<br \/>\n\u8fd0\u884capache\u5b89\u88c5\u7a0b\u5e8f\uff0c\u65b9\u6cd5\u975e\u5e38\u7b80\u5355\uff0c\u5f39\u5b89\u88c5\u754c\u9762\u540e\u4e00\u76f4\u201cnext\u201d<\/p>\n<p>\u63a5\u7740\u4f1a\u51fa\u73b0\u4e00\u4e2a\u754c\u9762\uff0c\u9700\u8981\u586b\u51993\u4e2a\u5185\u5bb9\uff0c\u5206\u522b\u4e3a\uff1aNetwork Domain\u3001Server Name\u3001Administrator's Email Address \u968f\u4fbf\u586b\u5199\u5c31\u597d\uff0c\u4e0d\u5f71\u54cd\u5185\u5bb9\u3002<br \/>\n\u5728\u4e0b\u9762\u8fd8\u67092\u4e2a\u9009\u9879\uff0c\u9ed8\u8ba4\u9009\u62e9\u4e3a80\u7aef\u53e3\uff0c\u7b2c\u4e8c\u4e2a\u4e3a8080\u7aef\u53e3\uff0c\u6839\u636e\u4e2a\u4eba\u9700\u6c42\u9009\u62e9\uff0c\u4e00\u822c\u4e3a\u9ed8\u8ba480\u7aef\u53e3\u3002<br \/>\n\u6211\u4eec\u7ee7\u7eed\u5b89\u88c5\uff0c\u9009\u62e9Custom\uff08\u81ea\u5b9a\u4e49\u5b89\u88c5\uff09-\u201cnext\u201d<\/p>\n<p>\u5176\u4e2d\u6709\u6253\u7740\u7ea2X\u7684\u7ec4\u4ef6\uff0c\u6211\u4eec\u5355\u51fb\u8fd9\u4e2a\u7ec4\u4ef6\u5bb9\uff0c\u9009\u62e9\u201cThis feature, and all subfeatures, will be installed on local hard drive.\u201d\uff0c\u5373\u201c\u6b64\u90e8\u5206\uff0c\u53ca\u4e0b\u5c5e\u5b50\u90e8\u5206\u5185\u5bb9\uff0c\u5168\u90e8\u5b89\u88c5\u5728\u672c\u5730\u786c\u76d8\u4e0a\u201d\u3002-\u201cnext\u201d<\/p>\n<p>\u7136\u540e\u9009\u62e9\u53f3\u4e0b\u89d2\u7684\u201cchange \u201d\u6539\u53d8\u5b89\u88c5\u8def\u5f84\uff0c\u5b89\u88c5\u5230\u521a\u624d\u5efa\u7acb\u7684\u76ee\u5f55\u4e2d\u201cD:\\WAMP\\Apache\\\u201d-\u201cnext\u201d<br \/>\n\u5b89\u88c5\u5b8c\u6bd5\u540e\uff0c\u7535\u8111\u53f3\u4e0b\u89d2\u4f1a\u591a\u51fa\u4e00\u4e2a\u56fe\u6807\uff0c\u53cc\u51fb\u6253\u5f00\uff0c\u9009\u62e9start\u6216restart\uff0c\u80fd\u6b63\u5e38\u8fd0\u884c\uff0c\u81f3\u6b64\u5b89\u88c5\u5b8c\u6bd5\u3002<\/p>\n<p>2.\u4fee\u6539\u914d\u7f6e\uff1a<br \/>\n\u6253\u5f00\u5b89\u88c5\u5f55\u4e0bD:\\WAMP\\Apache\\conf\\httpd.conf \u6587\u4ef6(\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u65f6\uff0c\u4e0d\u5efa\u8bae\u4f7f\u7528\u8bb0\u4e8b\u672c\uff0c\u53ef\u80fd\u4f1a\u5bf9\u5176\u9020\u6210\u5f71\u54cd\uff0c\u63a8\u8350\u4f7f\u7528Notepad++\u6216\u5176\u4ed6\u7f16\u8f91\u8f6f\u4ef6\u6253\u5f00\u4fee\u6539)<\/p>\n<p>\u6253\u5f00\u4ee5\u540eCtrl+F\u67e5\u627e\u6240\u8981\u4fee\u6539\u7684\u5185\u5bb9<\/p>\n<p>\u5728#LoadModule vhost_alias_module modules\/mod_vhost_alias.so\u4e0b\u6dfb\u52a0\uff1a<br \/>\nLoadModule php5_module \"D:\/WAMP\/PHP\/php5apache2_2.dll\"<br \/>\nPHPIniDir \"D:\/WAMP\/PHP\"<br \/>\nAddType application\/x-httpd-php .php<br \/>\nAddType application\/x-httpd-php .htm<br \/>\nAddType application\/x-httpd-php .html<\/p>\n<p>DocumentRoot \"E:\/WAMP\/Apache\/htdocs\"<br \/>\n\u4fee\u6539\u6210(\u8fd9\u91cc\u7684\u8def\u5f84\u548cIIS\u4e2dwwwroot\u76ee\u5f55\u4e00\u6837\uff0c\u7528\u4e8e\u5b58\u653e\u7f51\u9875\uff0c\u81ea\u5b9a\u4e49\u6216\u4e0d\u505a\u4fee\u6539\u9ed8\u8ba4)\uff1aDocumentRoot \"D:\/WAMP\/www\"<\/p>\n<p>&lt;Directory \"E:\/WAMP\/Apache\/htdocs\"&gt;<br \/>\n\u4fee\u6539\u6210(\u81ea\u5b9a\u4e49\u6216\u4e0d\u505a\u4fee\u6539\u9ed8\u8ba4)\uff1a&lt;Directory \"D:\/WAMP\/www\"&gt;<\/p>\n<p>DirectoryIndex index.html<br \/>\n\u4fee\u6539\u6210\uff1aDirectoryIndex index.php default.php index.html index.htm default.html default.htm<\/p>\n<p>3.\u6d4b\u8bd5<br \/>\n\u5728D:\/WAMP\/www\u76ee\u5f55\u4e0b \u5efa\u7acb\u4e2aindex.html\u9875\u9762<br \/>\n\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165 <a href=\"http:\/\/localhost\/\">http:\/\/localhost\/<\/a><br \/>\n\u5982\u679c\u80fd\u6b63\u5e38\u663e\u793a\uff0cApache\u914d\u7f6e\u5b8c\u6bd5\uff0c\u5df2\u7ecf\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<p><strong>\u4e8c\u3001MySql\u5b89\u88c5<\/strong><br \/>\n\u7248\u672c\u89e3\u91ca\uff1aThe Essentials Package\uff1a\u4e0d\u5305\u542b embedded server and benchmark suite\uff0c\u6709\u81ea\u52a8\u5b89\u88c5\u7a0b\u5e8f\u548c\u914d\u7f6e\u5411\u5bfc\uff0c\u6ca1\u6709MySQL Documentation\u3002<br \/>\n\u3000\u3000\u3000\u3000\u3000The Complete Package\uff1a\u5305\u542b embedded server and benchmark suite\uff0c\u6709\u81ea\u52a8\u5b89\u88c5\u7a0b\u5e8f\u548c\u914d\u7f6e\u5411\u5bfc\uff0c\u6709MySQL Documentation\u3002<br \/>\n\u3000\u3000\u3000\u3000\u3000The Noinstall Archive\uff1a\u5305\u542b embedded server and benchmark suite\uff0c\u6ca1\u6709\u81ea\u52a8\u5b89\u88c5\u7a0b\u5e8f\u548c\u914d\u7f6e\u5411\u5bfc\uff0c\u6709MySQL Documentation\u3002<br \/>\n\u9009\u62e9\u7248\u672c\uff1amysql-essential-5.1.44-win32.msi<br \/>\n\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/www.mysql.com\/downloads\/mysql\/\">http:\/\/www.mysql.com\/downloads\/mysql\/<\/a><\/p>\n<p>1.\u5b89\u88c5\u8bf4\u660e\uff1a<br \/>\n\u6253\u5f00\u5b89\u88c5\u7a0b\u5e8f\uff0c\u5355\u51fb\u201cnext\u201d<br \/>\n\u9009\u62e9custom\uff0c\u7ec4\u4ef6\u4e3a\u9ed8\u8ba4\u9009\u62e9\uff0c\u6211\u4eec\u4e0d\u505a\u6539\u52a8-\u201cnext\u201d<\/p>\n<p>\u8def\u5f84\u8bbe\u7f6e\u4e3a\u201cD:\\WAMP\\Mysql\u201d-\u201cnext\u201d<\/p>\n<p>\u5b89\u88c5\u597d\u4ee5\u540e\u70b9\u51fb\u201cfinish\u201d<br \/>\n\u8ddf\u7740\u4f1a\u51fa\u73b0\u4e00\u4e2a\u914d\u7f6e\u5411\u5bfc-\u201cnext\u201d<\/p>\n<p>\u9009\u62e9\u201cDetailed Configuration\uff08\u8be6\u7ec6\u914d\u7f6e\uff09\u201d-\u201cnext\u201d<\/p>\n<p>\u8fd9\u91cc\u67093\u4e2a\u9009\u9879\uff1a<br \/>\nDeveloper Machine\uff0c\u5c06\u53ea\u7528\u5c3d\u91cf\u5c11\u7684\u5185\u5b58\uff1b<br \/>\nServer Machine\uff0c\u5c06\u4f7f\u7528\u4e2d\u7b49\u6570\u91cf\u5185\u5b58\uff1b<br \/>\nDedicated MySQL Server Machine\uff0c\u8fd9\u53f0\u670d\u52a1\u5668\u4e0a\u9762\u53ea\u8dd1mysql\u6570\u636e\u5e93\uff0c\u5c06\u5360\u7528\u5168\u90e8\u7684\u5185\u5b58\u3002<br \/>\n\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u9700\u6c42\u9009\u62e9\uff0c\u8fd9\u91cc\u6211\u4eec\u9009\u62e9\u7b2c\u4e8c\u79cd\u201cServer Machine\u201d-\u201cnext\u201d<\/p>\n<p>\u9009\u62e9\u6570\u636e\u5e93\u7528\u9014\uff0c\u540c\u6837\u67093\u4e2a\u9009\u9879\uff1a<br \/>\nMutltifunctional Database\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\uff1b<br \/>\nTransactional Database Only\u53ea\u7528\u4e8e\u4e8b\u52a1\u5904\u7406\u7c7b\u578b\uff0c\u6700\u597d\u7684\u4f18\u5316innodb\uff0c\u4f46\u540c\u65f6\u4e5f\u652f\u6301myisam\uff1b<br \/>\nNon-Transactional Databse Only\u975e\u4e8b\u52a1\u5904\u7406\u7c7b\u578b\uff0c\u9002\u5408\u4e8e\u7b80\u5355\u7684\u5e94\u7528\uff0c\u53ea\u6709\u4e0d\u652f\u6301\u4e8b\u52a1\u7684myisam\u7c7b\u578b\u662f\u88ab\u652f\u6301\u7684\u3002<br \/>\n\u4e00\u822c\u9009\u62e9\u7b2c\u4e00\u79cd\u591a\u529f\u80fd\u7684\uff0c\u540c\u6837\u6211\u4eec\u4e5f\u662f\u3002-\u201cnext\u201d<\/p>\n<p>\u9009\u62e9InnodDB\u7684\u6570\u636e\u5b58\u653e\u4f4d\u7f6e\uff0c\u4e00\u822c\u9ed8\u8ba4\u5c31\u884c\uff0c\u4e3a\u4e86\u7edf\u4e00\u6211\u586b\u5199\u4e86\u201cWAMP\/MySQL Datafiles\u201d-\u201cnext\u201d<\/p>\n<p>\u9009\u62e9mysql\u5141\u8bb8\u7684\u6700\u5927\u8fde\u63a5\u6570\uff0c\u7b2c\u4e00\u79cd\u662f\u6700\u592720\u4e2a\u8fde\u63a5\u5e76\u53d1\u6570\uff0c\u7b2c\u4e8c\u79cd\u662f\u6700\u5927500\u4e2a\u5e76\u53d1\u8fde\u63a5\u6570\uff0c\u6700\u540e\u4e00\u79cd\u662f\u81ea\u5b9a\u4e49\uff0c\u81ea\u5df1\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u9009\u62e9\uff0c\u6211\u9009\u62e9\u7b2c\u4e8c\u4e2a-\u201cnext\u201d<\/p>\n<p>\u4e0b\u9762\u662f\u9009\u62e9\u6570\u636e\u5e93\u76d1\u542c\u7684\u7aef\u53e3\uff0c\u4e00\u822c\u9ed8\u8ba4\u662f3306\uff0c\u5982\u679c\u6539\u6210\u5176\u4ed6\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\u6bd4\u8f83\u9ebb\u70e6\uff0c\u8fd9\u91cc\u4e0d\u505a\u4fee\u6539\uff0c\u7528mysq\u7684\u9ed8\u8ba4\u7aef\u53e3\uff1a3306-\u201cnext\u201d<\/p>\n<p>\u8fd9\u4e00\u6b65\u8bbe\u7f6emysql\u7684\u9ed8\u8ba4\u7f16\u7801\uff0c\u6211\u4eec\u9009\u62e9\u7b2c\u4e09\u4e2a\uff0c\u5e76\u5728Character Set\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201cgbk\u201d\u7f16\u7801-\u201cnext\u201d<br \/>\n(\u6ce8\uff1a\u5982\u679c\u8981\u7528\u539f\u6765\u6570\u636e\u5e93\u7684\u6570\u636e\uff0c\u6700\u597d\u80fd\u786e\u5b9a\u539f\u6765\u6570\u636e\u5e93\u7528\u7684\u662f\u4ec0\u4e48\u7f16\u7801\uff0c\u5982\u679c\u8fd9\u91cc\u8bbe\u7f6e\u7684\u7f16\u7801\u548c\u539f\u6765\u6570\u636e\u5e93\u6570\u636e\u7684\u7f16\u7801\u4e0d\u4e00\u81f4\uff0c\u5728\u4f7f\u7528\u7684\u65f6\u5019\u53ef\u80fd\u4f1a\u51fa\u73b0\u4e71\u7801\u3002)<\/p>\n<p>\u8fd9\u4e00\u6b65\u662f\u662f\u5426\u8981\u628amysql\u8bbe\u7f6e\u6210windows\u7684\uff0c\u4e00\u822c\u9009\u62e9\u8bbe\u6210\u670d\u52a1\uff0c\u8fd9\u6837\u4ee5\u540e\u5c31\u53ef\u4ee5\u901a\u8fc7\u670d\u52a1\u4e2d\u542f\u52a8\u548c\u5173\u95edmysql\u6570\u636e\u5e93\u3002\u4e0b\u9762\u7684\u590d\u9009\u6846\u4e5f\u52fe\u9009\u4e0a\uff0c\u8fd9\u6837\uff0c\u5728cmd\u6a21\u5f0f\u4e0b\uff0c\u4e0d\u5fc5\u975e\u5230mysql\u7684bin\u76ee\u5f55\u4e0b\u6267\u884c\u547d\u4ee4\u3002\u4e5f\u5c31\u662f\u628a\u4e0a\u4e0b2\u4e2a\u52fe\u90fd\u6253\u4e0a\uff0c\u4e2d\u95f4\u9ed8\u8ba4-\u201cnext\u201d<\/p>\n<p>\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\u8bf7\u8bbe\u7f6e\u597d\u5e76\u7262\u8bb0\u8d85\u7ea7\u7528\u6237\u7684\u5bc6\u7801\uff0c\u4e0b\u9762\u6709\u4e2a\u590d\u9009\u6846\u662f\u9009\u62e9\u662f\u5426\u5141\u8bb8\u8fdc\u7a0b\u673a\u5668\u7528root\u7528\u6237\u8fde\u63a5\u5230\u4f60\u7684mysql\u670d\u52a1\u5668\u4e0a\u9762\uff0c\u5982\u679c\u6709\u8fd9\u4e2a\u9700\u6c42\uff0c\u4e5f\u8bf7\u52fe\u9009\u3002\u8fd9\u91cc\u6211\u4eec\u4f7f\u7528\u9ed8\u8ba4\u9009\u62e9\uff0c\u5728New root password\u548cConfirm\u4e2d\u8f93\u5165\u5bc6\u7801\u3002\u201cnext\u201d<\/p>\n<p>\u70b9\u51fb\u201cexecute\u201d\u8fdb\u884c\u914d\u7f6e\uff0c\u7a0d\u5fae\u7b49\u5f85\u4e00\u4f1a\uff0c\u5706\u70b9\u4e0a\u7684\u52fe\u5168\u90e8\u6253\u4e0a\uff0c\u5c31\u4ee3\u8868\u914d\u7f6e\u5b8c\u6bd5\u3002<\/p>\n<p>2.\u4fee\u6539\u914d\u7f6e\uff1a<br \/>\n\u6253\u5f00D:\\WAMP\\MySQL\\my.ini<br \/>\n\u8bbe\u7f6edatadir\u4e3aD:\/WAMP\/MySQL\/data\/\u6216\u4f60\u6240\u8981\u5b58\u653e\u6570\u636e\u4f4d\u7f6e\u7684\u76ee\u5f55\u5373\u53ef\u3002<\/p>\n<p><strong>\u4e09\u3001PHP\u5b89\u88c5<br \/>\n<\/strong>\u7248\u672c\u89e3\u91ca\uff1aVC9 \u4e13\u95e8\u4e3aIIS\u5b9a\u503c\u7684\u811a\u672c\uff0c\u4f7f\u7528Visual Studio 2008\u7f16\u8bd1\u5668\u7f16\u8bd1\uff0c\u652f\u6301\u6700\u65b0\u7684\u5fae\u8f6f\u7ec4\u5efa\uff0c\u4ece\u800c\u63d0\u9ad8\u6548\u7387\u3002<br \/>\n\u3000\u3000\u3000\u3000\u3000VC6 \u662f\u4e3a\u4e86\u5176\u4ed6WEB\u670d\u52a1\u8f6f\u4ef6\u63d0\u4f9b\u7684\u811a\u672c \u5982 Apache\u3002<br \/>\n\u3000\u3000\u3000\u3000\u3000Thread Safe \u73b0\u6210\u5b89\u5168\uff0c\u4e4b\u661f\u65f6\u4f1a\u8fdb\u884c\u7ebf\u7a0b \u5b89\u5168\u68c0\u67e5\uff0c\u4ee5\u9632\u6b62\u6709\u5fc3\u8981\u6c42\u5c31\u542f\u52a8\u65b0\u7ebf\u7a0b(Thread)\u7684CGI\u6267\u884c\u65b9\u5f0f\u800c\u8017\u5c3d\u7cfb\u7edf\u8d44\u6e90\u3002<br \/>\n\u3000\u3000\u3000\u3000\u3000Non Thread Safe\u662f\u975e\u7ebf\u7a0b\u5b89\u5168\uff0c\u5728\u6267\u884c\u65f6\u4e0d\u8fdb\u884c\u7ebf\u7a0b(Thread)\u5b89\u5168\u68c0\u67e5<br \/>\n\u9009\u62e9\u7248\u672c\uff1aPHP5.3(5.3.1)\u4e2dVC6 x86 Thread Safe\u4e0b\u00a0ZIP\u4e0b\u8f7d<br \/>\n\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/windows.php.net\/download\/\">http:\/\/windows.php.net\/download\/<\/a><\/p>\n<p>1.\u5b89\u88c5\u8bf4\u660e<br \/>\n\u7531\u4e8e\u6211\u4eec\u4e0b\u8f7d\u7684\u7684\u662fZIP\u538b\u7f29\u5305\uff0c\u53ea\u9700\u8981\u5c06\u6587\u4ef6\u89e3\u538b\u5230\u201cD:\\WAMP\\PHP\u201d\u76ee\u5f55\u4e0b\u5373\u53ef<\/p>\n<p>2.\u4fee\u6539\u914d\u7f6e<br \/>\n\u5c06E:\\WAMP\\PHP\\php.ini-development \u6587\u4ef6\u4fee\u6539\u6210php.ini<br \/>\n\u6253\u5f00php.ini<\/p>\n<p>; extension_dir = \"ext\"<br \/>\n\u4fee\u6539\u6210\uff1aextension_dir = \"E:\\WAMP\\PHP\\ext\"<\/p>\n<p>\u5c06947\u884c\u4e0b\uff0c\u8fd9\u4e9b\u6587\u4ef6\u524d\u9762\u7684\u201c;\u201d\u53bb\u9664<br \/>\nextension=php_curl.dll<br \/>\nextension=php_gd2.dll<br \/>\nextension=php_mbstring.dll<br \/>\nextension=php_mysql.dll<br \/>\nextension=php_mysqli.dll<br \/>\nextension=php_pdo_mysql.dll<br \/>\nextension=php_xmlrpc.dll<\/p>\n<p>;date.timezone =<br \/>\n\u4fee\u6539\u6210(\u5f88\u591a\u7f51\u7ad9\u6ca1\u63d0\u5230\u8fd9\u91cc\u8981\u4fee\u6539\uff0c\u9ed8\u8ba4\u4e3a\u7f8e\u56fd\u65f6\u95f4\uff0c\u5982\u679c\u4e0d\u4fee\u6539\u4f1a\u62a5\u9519)\uff1adate.timezone = Asia\/Shanghai<\/p>\n<p>3.\u6d4b\u8bd5<br \/>\n\u91cd\u542fApache(\u4fee\u6539\u8fc7\u914d\u7f6e\u6587\u4ef6 \u5fc5\u987b\u91cd\u542fApache\u624d\u4f1a\u751f\u6548)<br \/>\n\u65b0\u5efa\u4e2aindex.php \u9875\u9762\uff0c\u4ee3\u7801\u4e2d\u8f93\u5165&lt;?php phpinfo();?&gt;\uff0c\u4fdd\u5b58\u6587\u4ef6\u653e\u5230\u201cD:\\WMAP\\www\\\u201d\u76ee\u5f55\u4e0b<br \/>\n\u6253\u5f00\u6d4f\u89c8\u5668\u8f93\u5165\uff1a<a href=\"http:\/\/localhost\/index.php\">http:\/\/localhost\/index.php<\/a> \u5982\u679c\u80fd\u6b63\u5e38\u663e\u793a\uff0c\u8bf4\u660ePHP\u914d\u7f6e\u5b8c\u6bd5\uff0c\u53ef\u4ee5\u67e5\u770b\u8be5\u9875\u9762\u7684PHP\u4fe1\u606f\u662f\u5426\u6b63\u786e\u3002<br \/>\n(\u6ce8\uff1a&lt;?php phpinfo();?&gt;\u5728\u6539\u6587\u4ef6\u4e2d\u8f93\u5165\u51fd\u6570\u53ef\u8f93\u51fa\u5927\u91cf\u7684\u6709\u5173<em>PHP<\/em>\u5f53\u524d\u72b6\u6001\u7684\u4fe1\u606f\uff0c\u5982<em>PHP<\/em>\u7248\u672c\uff0c\u670d\u52a1\u5668\u4fe1\u606f\u548c\u73af\u5883\u7b49\u3002)<br \/>\n(\u6ce8\uff1a)<\/p>\n<p>\u63a5\u7740\u6211\u4eec\u6d4b\u8bd5\u4e0b\uff0c\u662f\u5426\u80fd\u8fde\u63a5\u5230Mysql<br \/>\n\u518d\u65b0\u5efa\u4e2alink.php\uff0c\u4e0b\u4ee3\u7801\u4e2d\u8f93\u5165<br \/>\n&lt;?php<br \/>\n$link=mysql_connect(\"127.0.0.1\",\"root\",\"Mysql\u5b89\u88c5\u65f6\u586b\u5199\u7684\u5bc6\u7801\");<br \/>\nif(!$link) echo \"Mysql\u6570\u636e\u5e93\u8fde\u63a5\u5931\u8d25!\";<br \/>\nelse echo \"Mysql\u6570\u636e\u5e93\u8fde\u63a5\u6210\u529f!\";<br \/>\nmysql_close();<br \/>\n?&gt;<br \/>\n\u4e5f\u4fdd\u5b58\u6587\u4ef6\u653e\u5230\u201cD:\\WMAP\\www\\\u201d\u76ee\u5f55\u4e0b<br \/>\n\u6253\u5f00\u6d4f\u89c8\u5668\u8f93\u5165\uff1a<a href=\"http:\/\/localhost\/index.php\">http:\/\/localhost\/link.php<\/a>\u00a0\u67e5\u770b<\/p>\n<p><strong>\u56db\u3001PhpMyAdmin\u5b89\u88c5<\/strong><br \/>\n\u7248\u672c\u89e3\u91ca\uff1aphpMyAdmin-3.2.5<br \/>\n\u9009\u62e9\u7248\u672c\uff1aphpMyAdmin-3.2.5-all-languages.zip<br \/>\n\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/www.phpmyadmin.net\/home_page\/downloads.php\">http:\/\/www.phpmyadmin.net\/home_page\/downloads.php<\/a><\/p>\n<p>1.\u5b89\u88c5\u8bf4\u660e<br \/>\n\u89e3\u538b\u5230D:\\WAMP\\phpMyAdmin<\/p>\n<p>2.\u4fee\u6539\u914d\u7f6e<br \/>\n\u6253\u5f00D:\\WAMP\\phpMyAdmin\\libraries\\config.default.php<\/p>\n<p>$cfg['PmaAbsoluteUri'] = '';<br \/>\n\u4fee\u6539\u6210(\u586b\u5199\u8bbf\u95eephpMyAdmin\u7684\u7edd\u5bf9URL)\uff1a$cfg['PmaAbsoluteUri'] = 'http:\/\/localhost\/PHPMyadmin\/';<\/p>\n<p>$cfg['Servers'][$i]['host'] = 'localhost';<br \/>\n\u4fee\u6539\u6210(\u586b\u5199\u670d\u52a1\u5668\u5730\u5740\uff0c\u901a\u5e38\u9ed8\u8ba4\uff0c\u4e0d\u9700\u8981\u4fee\u6539)\uff1a$cfg['Servers'][$i]['host'] = 'localhost';<\/p>\n<p>$cfg['Servers'][$i]['user'] = 'root';<br \/>\n\u4fee\u6539\u6210(\u586b\u5199Mysql\u7528\u6237\u540d\uff0c\u8fd9\u91cc\u6211\u4eec\u9ed8\u8ba4)\uff1a$cfg['Servers'][$i]['user'] = 'root';<\/p>\n<p>$cfg['Servers'][$i]['password'] = '';<br \/>\n\u4fee\u6539\u6210(\u586b\u5199Mysql\u5bc6\u7801)\uff1a$cfg['Servers'][$i]['password'] = 'Mysql PWD;<\/p>\n<p>$cfg['Servers'][$i]['auth_type'] = 'cookie';<br \/>\n\u4fee\u6539\u6210(\u8bbe\u7f6e\u8ba4\u8bc1\u65b9\u6cd5\uff0c\u5b89\u5168\u56e0\u7d20\u8003\u8651\uff0c\u586b\u5199\u6210cookie)\uff1a$cfg['Servers'][$i]['auth_type'] = 'cookie';<\/p>\n<p>$cfg['blowfish_secret'] = '';<br \/>\n\u4fee\u6539\u6210(\u8bbe\u7f6e\u77ed\u8bed\u5bc6\u7801\uff0c\u5982\u679c\u4e0a\u9762\u8bbe\u7f6e\u6210cookie\uff0c\u90a3\u8fd9\u91cc\u4e0d\u80fd\u7559\u7a7a\uff0c\u4e0d\u7136\u767b\u9646\u4f1a\u63d0\u793a\u9519\u8bef)\uff1a$cfg['blowfish_secret'] = 'cookie';<\/p>\n<p>3.\u6d4b\u8bd5<br \/>\n\u6253\u5f00\u6d4f\u89c8\u5668\u8f93\u5165\uff1a<a href=\"http:\/\/localhost\/phpmyadmin\/\">http:\/\/localhost\/phpmyadmin\/<\/a>\u00a0\u8bbf\u95ee\u548c\u767b\u9646<\/p>\n<p><strong>\u4e94\u3001\u7ed3\u5c3e<br \/>\n<\/strong>\u81f3\u6b64Windows7\u4e0b\u7684PHP\u73af\u5883\u642d\u5efa\u5b8c\u6bd5\uff0c\u5927\u5bb6\u5c3d\u60c5\u7684\u4f7f\u7528\u5427\u3002<br \/>\n\u672c\u6587\u51fa\u5904\uff1a<a href=\"http:\/\/blog.bluesdream.com\">http:\/\/blog.bluesdream.com<\/a> \u300aWindows7\u4e0bApache2.2 + MySql5.1 + PHP5.3 + PhpMyAdmin3.2 \u914d\u7f6e\u300b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows7 + Apache2.2.14 + MySql5.1.44 + PHP5.3.1 + PhpMyAdmin3.2.5 \u73af\u5883\u914d\u7f6e\u53ca\u8bf4\u660e \u521a\u914d\u7f6e\u4e86\u4e00\u4e2aWindows7\u73af\u5883\u4e0b\u7684PHP\u73af\u5883\uff0c\u4e2d\u95f4\u4e5f\u9047\u5230\u4e86\u4e0d\u5c11\u95ee\u9898\uff0c\u5728\u6b64\u5c31\u505a\u4e00\u4e2a\u624b\u8bb0\uff0c\u6709\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\uff0c\u6211\u628a\u5b89\u88c5\u6b65\u9aa4\u548c\u4e00\u4e9b\u8bf4\u660e\u90fd\u5199\u4e86\u4e0a\u53bb\uff0c\u76f8\u6bd4\u76ee\u524d\u7f51\u4e0a\u7684\u914d\u7f6e\u65b9\u6cd5\u800c\u8a00\uff0c\u5e94\u8be5\u662f\u6bd4\u8f83\u5168\u9762\u7684\u4e86\u3002\u4e2d\u95f4\u5982\u679c\u9047\u5230\u4ec0\u4e48\u95ee\u9898\uff0c\u53ef\u4ee5\u7559\u8a00\u8ba8\u8bba\u3002<\/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":[49,50,48,51,52,29],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-program","tag-apache","tag-mysql","tag-php","tag-phpmyadmin","tag-windows7","tag-original"],"_links":{"self":[{"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/posts\/50"}],"collection":[{"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/comments?post=50"}],"version-history":[{"count":0,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/posts\/50\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/media?parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/categories?post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/tags?post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}