{"id":406,"date":"2009-02-26T11:32:15","date_gmt":"2009-02-26T03:32:15","guid":{"rendered":""},"modified":"2014-03-11T21:57:29","modified_gmt":"2014-03-11T13:57:29","slug":"linuxapachephpmysqlzend","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2009\/02\/26\/406.htm","title":{"rendered":"Linux+Apache+PHP+MySQL+Zend"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><a target=\"_blank\" href=\"\/UploadFiles\/200902\/200902266chjmj.jpg\"><img decoding=\"async\" border=\"0\" alt=\"\" src=\"\/UploadFiles\/200902\/200902266chjmj.jpg\" \/><\/a><\/p>\n<p>\u521a\u5f00\u59cb\u73a9linux,\u5c31\u62ffdiscuz\u8bba\u575b\u73af\u5883\u8bd5\u624b.\u611f\u89c9\u771f\u7d2f,\u4f46\u662f\u5f88\u723d.<br \/>\n\u672c\u4eba\u5b89\u88c5\u8fc7\u7a0b\u53c2\u8003:Nanu \u7684 <a rel=\"nofollow\" href=\"http:\/\/www.discuz.net\/thread-209728-1-1.html\">http:\/\/www.discuz.net\/thread-209728-1-1.html<\/a> \u5185\u5bb9\u4e5f\u662f.\u611f\u8c22Nanu,\u8bf7\u539f\u8c05\u6211\u7684\u6284\u88ad <br \/>\n\u6211\u662f\u83dc\u9e1f,\u6240\u4ee5\u6211\u78b0\u5230\u7684\u95ee\u9898\u4f1a\u6bd4\u8f83\u591a.\u4f60\u4e0d\u4e00\u5b9a\u4f1a\u7528\u7684\u7740,\u4f46\u4e00\u5b9a\u4f1a\u6709\u4eba\u7528\u5f97\u7740.<br \/>\n#######################################################<br \/>\n\u51c6\u5907\u7a0b\u5e8f:<\/p>\n<p>Apache-2.2.4<br \/>\n\u4e0b\u8f7d\u5730\u5740\uff1a<a rel=\"nofollow\" href=\"http:\/\/www.ititgo.com\/news_view.asp?newsid=622\">http:\/\/www.ititgo.com\/news_view.asp?newsid=622<\/a> <br \/>\nPHP-4.4.7<br \/>\n\u4e0b\u8f7d\u5730\u5740: <a rel=\"nofollow\" href=\"http:\/\/www.ititgo.com\/news_view.asp?newsid=623\">http:\/\/www.ititgo.com\/news_view.asp?newsid=623<\/a> <br \/>\nMySQL-5.1.7-0<br \/>\n\u4e0b\u8f7d\u5730\u5740: <a rel=\"nofollow\" href=\"http:\/\/www.ititgo.com\/news_view.asp?newsid=624\">http:\/\/www.ititgo.com\/news_view.asp?newsid=624<\/a> <br \/>\nZend Optimizer v2.6.0<br \/>\n\u4e0b\u8f7d\u5730\u5740: <a rel=\"nofollow\" href=\"http:\/\/www.ititgo.com\/news_view.asp?newsid=625\">http:\/\/www.ititgo.com\/news_view.asp?newsid=625<\/a> <br \/>\nphpMyAdmin-2.7.0-pl2<br \/>\n\u4e0b\u8f7d\u5730\u5740: <a rel=\"nofollow\" href=\"http:\/\/www.ititgo.com\/news_view.asp?newsid=626\">http:\/\/www.ititgo.com\/news_view.asp?newsid=626<\/a> <br \/>\nzlib-1.1.4<br \/>\n\u4e0b\u8f7d\u5730\u5740: <a rel=\"nofollow\" href=\"http:\/\/www.ititgo.com\/news_view.asp?newsid=628\">http:\/\/www.ititgo.com\/news_view.asp?newsid=628<\/a>&nbsp; <br \/>\nlibpng-1.2.5<br \/>\n\u4e0b\u8f7d\u5730\u5740: <a rel=\"nofollow\" href=\"http:\/\/www.ititgo.com\/news_view.asp?newsid=629\">http:\/\/www.ititgo.com\/news_view.asp?newsid=629<\/a> <br \/>\nfreetype-2.1.9<br \/>\n\u4e0b\u8f7d\u5730\u5740: <a rel=\"nofollow\" href=\"http:\/\/www.ititgo.com\/news_view.asp?newsid=630\">http:\/\/www.ititgo.com\/news_view.asp?newsid=630<\/a> <br \/>\njpegsrc.v6b<br \/>\n\u4e0b\u8f7d\u5730\u5740: <a rel=\"nofollow\" href=\"http:\/\/www.ititgo.com\/news_view.asp?newsid=627\">http:\/\/www.ititgo.com\/news_view.asp?newsid=627<\/a><br \/>\ngd-2.0.33<br \/>\n\u4e0b\u8f7d\u5730\u5740: <a rel=\"nofollow\" href=\"http:\/\/www.ititgo.com\/news_view.asp?newsid=631\">http:\/\/www.ititgo.com\/news_view.asp?newsid=631<\/a><\/p>\n<p>\n\u51c6\u5907\u5de5\u4f5c<\/p>\n<p>\u68c0\u67e5GD\u73af\u5883\u5982\u679c\u7cfb\u7edf\u5df2\u7ecf\u81ea\u5e26,\u5219\u65e0\u9700\u5b89\u88c5,\u4f46\u662f\u5728\u540e\u9762\u7684\u5b89\u88c5\u4e2d\u5982\u679c\u63d0\u793a\u627e\u4e0d\u5230\u67d0\u7ec4\u4ef6,\u6bd4\u5982\u4e0d\u652f\u6301png\u8bf4\u660elibpng\u6ca1\u6709\u5b89\u88c5\u6210\u529f,\u5efa\u8bae\u5378\u8f7dlibpng\u91cd\u65b0\u5b89\u88c5\u6e90\u7801.\u5b89\u88c5\u6559\u7a0b\u4e2d\u7684\u5e38\u89c1\u6545\u969c\u89c1\u9644!)<br \/>\n# rpm -qa | grep zlib<br \/>\n# rpm -qa | grep libpng<br \/>\n# rpm -qa | grep freetype<br \/>\n# rpm -qa | grep jpeg<br \/>\n# rpm -qa | grep gd<br \/>\n\u5982\u679c\u6ca1\u6709\u5b89\u88c5\u5982\u4e0b\u8f6f\u4ef6,\u5219\u8fdb\u884c\u4e0b\u9762\u5b89\u88c5:<br \/>\n(1) \u5b89\u88c5zlib<br \/>\n# tar zxvf zlib-&hellip;<br \/>\n# cd zlib&hellip;<br \/>\n# .\/configure<br \/>\n# make <br \/>\n# make install<br \/>\n(2) \u5b89\u88c5libpng<br \/>\n# tar zxvf libpng&hellip;<br \/>\n# cd libpng-&hellip;<br \/>\n# cd scripts\/<br \/>\n# mv makefile.linux ..\/makefile<br \/>\n# cd ..<br \/>\n# make<br \/>\n# make install<br \/>\n\u6ce8\u610f\uff0c\u8fd9\u91cc\u7684makefile\u4e0d\u662f\u7528.\/configure\u751f\u6210\uff0c\u800c\u662f\u76f4\u63a5\u4ecescripts\/\u91cc\u590d\u5236\u4e00\u4e2a\u3002<br \/>\n(3) \u5b89\u88c5freetype<br \/>\n# tar zxvf freetype-&hellip;<br \/>\n# cd freetype-&hellip;<br \/>\n# .\/configure (\u8fd9\u91cc\u7f16\u8bd1\u540e\u5982\u679c\u63d0\u793a\u9009\u62e9\u64cd\u4f5c\u7cfb\u7edf\u6216\u5b89\u88c5\u540e\u65e0\u6cd5\u6b63\u5e38\u4f7f\u7528,\u8bf7\u518d\u8fdb\u5165\/builds\/unix\u8fdb\u884c\u7f16\u8bd1.\u7136\u540e\u8fd4\u56defreetype-&hellip;\u8fdb\u884c\u4e0b\u9762\u6b65\u9aa4)<br \/>\n# make<br \/>\n# make install<br \/>\n(4) \u5b89\u88c5Jpeg<br \/>\n# tar zxvf jpegsrc.v6b.tar.gz <br \/>\n# cd jpeg-6b\/<br \/>\n# .\/configure &#8211;enable-shared<br \/>\n# make<br \/>\n# make test<br \/>\n# make install<br \/>\n\u6ce8\u610f\uff1a\u8fd9\u91ccconfigure\u4e00\u5b9a\u8981\u5e26&#8211;enable-shared\u53c2\u6570\uff0c\u4e0d\u7136\uff0c\u4e0d\u4f1a\u751f\u6210\u5171\u4eab\u5e93<br \/>\n(5)\u5b89\u88c5GD<br \/>\n# tar zxvf gd-&hellip;<br \/>\n# cd gd-&hellip;<br \/>\n# .\/configure &#8211;with-png &#8211;with-freetype &#8211;with-jpeg<br \/>\n# make install<br \/>\n###\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u7684\u5e38\u89c1\u95ee\u9898\u89c1\u9644###<\/p>\n<p>\n\u5b89\u88c5\u914d\u7f6eMySQL<\/p>\n<p>\u68c0\u67e5\u7cfb\u7edf\u662f\u5426\u5df2\u7ecf\u5b89\u88c5<br \/>\n# rpm -qa | grep mysql \u548c# rpm -qa | grep MySQL<br \/>\n\u5982\u679c\u6ca1\u6709\u8fd4\u56de\u4ee5mysql\u6216MySQL\u6253\u5934\u7684\u4fe1\u606f,\u5219\u8bf4\u660e\u6ca1\u6709\u5b89\u88c5.\u5982\u679c\u5df2\u7ecf\u5b89\u88c5,\u5219\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u6216\u66f4\u6362\u65b0\u7248\u672c.\u76f4\u63a5\u4f7f\u7528\u5e38\u89c1\u95ee\u9898\u89c1\u9644.<br \/>\n\u5378\u8f7d\u65b9\u6cd5:<br \/>\n# rpm -e MySQL-xxxxxx<br \/>\n\u9047\u5230\u4f9d\u8d56\u6027\u95ee\u9898\u800c\u65e0\u6cd5\u5378\u8f7d\uff0c\u53ef\u4ee5\u4f7f\u7528&#8211;nodeps\u6216&mdash;force\u5f3a\u5236\u5378\u8f7d.\u4e0d\u8fc7\u6700\u597d\u614e\u7528.<br \/>\n\u5b89\u88c5:<br \/>\n# rpm -ivh MySQL-client-&hellip;.rpm<br \/>\n# rpm -ivh MySQL-server-&hellip;.rpm<br \/>\n\u5e38\u89c1\u95ee\u9898\u89c1\u9644.<br \/>\n\u542f\u52a8mysql<br \/>\n# \/etc\/rc.d\/init.d\/mysql start \u6216 service mysql start<br \/>\n\u8bbe\u7f6eroot\u5bc6\u7801\uff1a<br \/>\n# mysqladmin -u root password new_password_for_root<br \/>\n\u521b\u5efamysql\u6570\u636e\u5e93,\u7528\u6237\u540d\u548c\u5bc6\u7801.<br \/>\nMysql &ndash;u root -p \u56de\u8f66\u8f93\u5165\u5bc6\u7801\u8fdb\u5165mysql<br \/>\nGRANT \u8a31\u53ef\u6b0a ON \u5eab\u540d.\u8868\u540d TO \u65b0\u7528\u6236\u540d@\u4e3b\u6a5f\u540d IDENTIFIED BY &rsquo;\u5bc6\u78bc&rsquo;;&nbsp; <br \/>\ncreate database zoneidc;&nbsp; (\u5efa\u5e93)<br \/>\ngrant all on zoneidc.* to <a href=\"mailto:zoneidc@localxiaoyebailong.com\">zoneidc@localxiaoyebailong.com<\/a> identified by &#8216;zoneidc&#8217;; <br \/>\nshow&nbsp;&nbsp; databases;<br \/>\n\u6ce8\u610f,\u6bcf\u4e00\u53e5\u540e\u9762\u90fd\u5e26\u6709&nbsp; (; \u53f7)<br \/>\n\u7136\u540e\u5728discuz \u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u586b\u4e0a\u76f8\u5e94\u5c31\u53ef\u4ee5\u4e86.<\/p>\n<p>\n\u5b89\u88c5\u914d\u7f6eApache<\/p>\n<p># tar xzvf httpd-&hellip;..<br \/>\n# cd httpd-2&hellip;..<br \/>\n# .\/configure &#8211;prefix=\/usr\/local\/apache &#8211;enable-so&nbsp; \uff08prefix=\/usr\/local\/apache\u6307\u5b9a\u5b89\u88c5\u8def\u5f84\uff09<br \/>\n# make<br \/>\n# make install<br \/>\n\u914d\u7f6eApache\uff1a<br \/>\n# vi \/usr\/local\/apache\/conf\/httpd.conf (\u5982\u679c\u662f\u7cfb\u7edf\u81ea\u5e26\u7684,\u5219\u8def\u5f84\u53ef\u80fd\u5728\/etc\/\u4e0b\u9762)<br \/>\nServerAdmin \u5c06\u6b64\u5904\u6539\u4e3a\u670d\u52a1\u5668\u7ba1\u7406\u5458\u7684E-Mail\u5730\u5740\uff08\u4f8b\u5982\uff1a<a href=\"mailto:webmaster@yourdomain.com\">webmaster@yourdomain.com<\/a>\uff09<br \/>\nServerName \u5c06\u6b64\u5904\u6539\u4e3a\u670d\u52a1\u5668\u7684\u57df\u540d\uff08\u4f8b\u5982\uff1a<a rel=\"nofollow\" href=\"http:\/\/www.ititgo.com:80\">www.ititgo.com:80<\/a>\uff09<br \/>\nDocumentRoot \u5c06\u6b64\u5904\u6539\u4e3a\u4f60\u7684\u7f51\u7ad9\u6839\u76ee\u5f55\uff08\u4f8b\u5982\uff1a&quot;\/var\/www&quot;\uff09<\/p>\n<p>\n\u5b89\u88c5\u914d\u7f6ePHP<\/p>\n<p># tar xzvf php-4.4.1.tar.gz<br \/>\n# cd php-4.4.1<br \/>\n# .\/configure &#8211;prefix=\/usr\/local\/php &#8211;with-apxs2=\/usr\/local\/apache\/bin\/apxs &#8211;with-mysql &#8211;with-config-file-path=\/usr\/local\/php\/etc &#8211;with-gd &#8211;enable-gd-native-ttf &#8211;enable-gd-jis-conv &#8211;with-freetype-dir &#8211;with-jpeg-dir &#8211;with-png-dir &#8211;with-zlib &#8211;enable-xml &#8211;enable-mbstring<br \/>\n# make<br \/>\n# make install<br \/>\n# cp php.ini-recommend \/usr\/local\/php\/etc\/php.ini<br \/>\n(\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662fphp-5&hellip;\u7684\u7248\u672c,\u5219\u4f1a\u63d0\u793a\u627e\u4e0d\u5230mysql\u6570\u636e\u5e93\u7684\u8def\u5f84,\u6240\u4ee5\u5efa\u8bae\u4f7f\u75284.\u7684\u7248\u672c)<br \/>\n\u7f16\u8f91httpd.conf\u6587\u4ef6\uff1a<br \/>\n# vi \/usr\/local\/apache\/conf\/httpd.conf (\u5982\u679c\u662f\u7cfb\u7edf\u81ea\u5e26\u7684,\u5219\u8def\u5f84\u53ef\u80fd\u5728\/etc\/\u4e0b\u9762)<br \/>\n\u627e\u5230\uff1aDirectoryIndex <br \/>\n\u5728\u540e\u9762\u7684\u9ed8\u8ba4\u6587\u4ef6\u4e2d\u589e\u52a0index.php<br \/>\n\u627e\u5230\uff1aAddType application\/x-gzip .gz .tgz<br \/>\n\u5728\u4e0b\u9762\u6dfb\u52a0\u4e00\u884c\uff1aAddType application\/x-httpd-php .php(\u6ce8\u610f&nbsp; .php \u524d\u9762\u662f\u4e2a\u7a7a\u683c)<br \/>\n\u4fdd\u5b58\u9000\u51fa<\/p>\n<p>\n\u5b89\u88c5Zend Optimizer<\/p>\n<p># tar xzvf Zend*.gz<br \/>\n# cd Zend*<br \/>\n# .\/install.sh<br \/>\n\u524d\u63d0\u662fphp\u5b89\u88c5\u6210\u529f.\u5b89\u88c5\u8fc7\u7a0b\u7b80\u5355\u53cb\u597d. php.ini\u6587\u4ef6\u8def\u5f84\u7684\u65f6\u5019\u5fc5\u987b\u8f93\u5165\u6b63\u786e.\u53ef\u4ee5\u4f7f\u7528find \/ -name php.ini\u67e5\u627e \u7528php\u63a2\u9488\u51fa\u73b0: Zend Optimizer v2.6.0, Copyright (c)\u5b57\u6837\u65f6,\u8bf4\u660e\u5b89\u88c5\u6210\u529f.<\/p>\n<p>\n\u5b89\u88c5\u914d\u7f6ePHPMyAdmin<\/p>\n<p># tar xzvf phpMyAdmin-2.7.0-&hellip; <br \/>\n\u5c06\u89e3\u538b\u540e\u7684\u76ee\u5f55\u79fb\u52a8\u5230\u670d\u52a1\u5668\u7f51\u7ad9\u7684\u6839\u76ee\u5f55\u4e2d\uff08\u67b6\u8bbe\u7f51\u7ad9\u6839\u76ee\u5f55\u4e3a\/var\/www\uff09<br \/>\n# mv phpMyAdmin-2.7.0-pl1 \/var\/www\/phpMyAdmin<br \/>\n\u914d\u7f6ePHPMyAdmin\uff1a<br \/>\n# cd \/var\/www\/phpMyAdmin<br \/>\n# vi config.inc.php (\u6709\u7684\u7248\u672c\u662fconfig.default.php)<br \/>\n\u4fee\u6539\uff1a<br \/>\n$cfg[&#8216;PmaAbsoluteUri&#8217;] = &#8216;http:\/\/www.yourdomain.com\/phpMyAdmin&#8217;; \uff08\u5199\u51fa\u8bbf\u95eephpMyAdmin\u7684\u7edd\u5bf9URL\uff09<br \/>\n$cfg[&#8216;blowfish_secret&#8217;] = &#8216;cookie&#8217;; \uff08\u4f7f\u7528cookie\u52a0\u5bc6\uff09<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;connect_type&#8217;]&nbsp; = &#8216;socket&#8217;;&nbsp; \uff08\u4ee5socket\u65b9\u5f0f\u8fde\u63a5MySQL\uff09<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;compress&#8217;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = TRUE; \uff08\u542f\u7528\u538b\u7f29\u4ee5\u63d0\u9ad8\u901f\u5ea6\uff0c\u5982\u679c\u8bbf\u95ee\u4e0d\u6b63\u5e38\u8bf7\u6539\u56deFALSE\uff09<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;auth_type&#8217;]&nbsp;&nbsp;&nbsp;&nbsp; = &#8216;cookie&#8217;; \uff08\u4f7f\u7528cookie\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1\uff09<\/p>\n<p>###############\u9644.\u5b89\u88c5\u8fc7\u7a0b\u5e38\u89c1\u95ee\u9898,\u53ef\u80fd\u6211\u6bd4\u8f83\u83dc,\u6240\u4ee5\u78b0\u5230\u7684\u95ee\u9898\u6bd4\u8f83\u591a##############<br \/>\n\u65e0\u6cd5\u7f16\u8bd1.<br \/>\n\u8bf7\u5148\u5b89\u88c5gcc\u7f16\u8bd1\u5668.<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\u7528tar\u89e3\u538b\u65f6\u63d0\u793a:<br \/>\ntar: Unexpected EOF in archive<br \/>\ntar: Unexpected EOF in archive<br \/>\ntar: Error is not recoverable: exiting now<br \/>\n\u539f\u56e0:\u8be5\u6e90\u7801\u5305\u5728\u4e0b\u8f7d\u8fc7\u7a0b\u4e2d\u88ab\u7834\u574f.<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\u5982\u4f55\u542f\u52a8apache?<br \/>\n\/usr\/local\/apache\/bin\/apachectl start (\u6839\u636e\u5b89\u88c5\u8def\u5f84\u800c\u5b9a)<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\u5982\u679c\u662f\u4f7f\u7528rpm\u5305\u5b89\u88c5apache\u53ef\u80fd\u4f1a\u51fa\u73b0\u4e0b\u9762\u9519\u8bef\u63d0\u793a: (98)!!!!!!!!!!!!: make_sock: could not bind to address 0.0.0.0:443 ?<br \/>\n\u53ef\u80fd\u662f\u4f60\u5df2\u7ecf\u5f00\u4e86httpd\u670d\u52a1\u5427\uff1f <br \/>\nchkconfig &#8211;level 35 httpd off <br \/>\n\/etc\/rc.d\/init.d\/httpd stop <br \/>\n\u7136\u540e\u5728apachectl start<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\u6709\u65f6\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u63d0\u793a\u8981\u5b89\u88c5 kernel-headers<br \/>\n\u5982\u679c\u662fREDHAT\u7cfb\u7edf,\u8bf7\u5728\u5149\u76d8\u4e2d\u627e\u5230; glibc-kernheaders-&hellip;rpm \u5b89\u88c5\u5373\u53ef.<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\u627e\u4e0d\u5230config.inc.php<br \/>\n\u6709\u7684\u7248\u672c\u662fconfig.default.php \u4e00\u6837\u7684<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\u5982\u679c\u78b0\u5230: libtcl8.3.so is needed by&hellip;<br \/>\nREDHAT\u7cfb\u7edf,\u8bf7\u5b89\u88c5tcl-8.3.5-88.i386.rpm \u76f8\u5e94\u7248\u672c.<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\u5982\u679c\u63d0\u793a: libmysqlclient.so.10<br \/>\n\u8bf7\u4e0b\u8f7d\u5b89\u88c5: MySQL-shared\u76f8\u5e94\u7248\u672c \u4e0b\u8f7d\u5730\u5740\u89c1\u9876\u90e8<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\nmysqld\u662f\u4ec0\u4e48\u610f\u601d\uff1f<br \/>\nmysql\u7684\u5b88\u62a4\u8fdb\u7a0b\uff01&nbsp;&nbsp; <br \/>\n\u6bcf\u6b21\u5728\u4f7f\u7528mysql\u524d\u5fc5\u987b\u5148\u7528\u5b83\u3002<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\u5982\u679c\u63d0\u793a\u9700\u8981\u5b89\u88c5kernel-headers <br \/>\nREDHAT\u7cfb\u7edf\u8bf7\u5b89\u88c5: glibc-kernheaders-2.4-8.10.i386.rpm \u76f8\u5e94\u7248\u672c<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\u63d0\u793a: ERROR 1045: Access denied for user: <a href=\"mailto:root@localxiaoyebailong.com\">root@localxiaoyebailong.com<\/a> (Using password: NO)<br \/>\n\u53c2\u8003: <a rel=\"nofollow\" href=\"http:\/\/www.ititgo.com\/news_view.asp?newsid=598\">http:\/\/www.ititgo.com\/news_view.asp?newsid=598<\/a> <br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\napache\u65e0\u6cd5\u663e\u793a\u4e2d\u6587 (\u4e71\u7801)<br \/>\n\u5728APACHE\u7684httpd.conf\u914d\u7f6e\u6587\u4ef6\u4e2d\u5c06AddDefaultCharset ISO-8859-1 \u6539\u4e3a AddDefaultCharset off&nbsp; \u4e00\u822c\u90fd\u80fd\u89e3\u51b3.<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\u5b89\u88c5\u8bba\u575b\u65f6\u63d0\u793a: \u4e0d\u652f\u6301MySql\u6570\u636e\u5e93\uff0c\u65e0\u6cd5\u5b89\u88c5\u8bba\u575b\u7a0b\u5e8f \u6216phpMyAdmin\u63d0\u793a: &Xi;???? mysql ????&lt;br \/&gt;??? PHP ?? &#8211; ??? <br \/>\n\u5b89\u88c5php-mysql\u7684\u76f8\u5e94\u7248\u672c\u5373\u53ef.<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\u4f7f\u7528\u6570\u636e\u5e93\u65f6\u63d0\u793a\u51fa\u9519:<br \/>\nERROR 1064: You have an error in your SQL syntax.<br \/>\n\u539f\u56e0:\u8bed\u6cd5\u9519\u8bef.sql\u8bed\u6cd5\u6ce8\u610f\u5927\u5c0f\u5199.\u5e76\u4e14\u672b\u5c3e\u8981\u52a0\u4e0a ; \u53f7.<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u63d0\u793a: \/usr\/bin\/install: \u65e0\u6cd5\u521b\u5efa\u4e00\u822c\u6587\u4ef6&lsquo;\/usr\/local\/man\/man1\/cjpeg.1&rsquo;: \u6ca1\u6709\u90a3\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55<br \/>\n\u65b0\u5efa\u4e00\u4e2aman1\u5c31\u662f\u4e86,\u6ce8\u610f\u540e\u9762\u662f\u4e2a\u6570\u5b571.<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\u63d0\u793a: png.h:329:18: zlib.h: \u6ca1\u6709\u90a3\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55<br \/>\nzlib-devel-1.1.4-8.i386.rpm\u6ca1\u88c5<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\u5b89\u88c5\u63d0\u793a\u51fa\u9519; libjpeg.(a|so) not found.<br \/>\n\u8bf7\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5jpegsrc.v6b.tar.gz \u548c libpng-1.2.8-config.tar.gz \u4e5f\u8bb8\u6ca1\u6709\u5b89\u88c5\u6210\u529f,\u5982\u679c\u662f\u7cfb\u7edf\u81ea\u5e26\u7684rpm\u5b89\u88c5,\u8bf7\u5378\u8f7d,\u6309\u4e0a\u6587\u65b9\u6cd5\u5b89\u88c5\u6e90\u7801.<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\nphpMyAdmin\u767b\u5f55\u540e\u63d0\u793a:<br \/>\n\u6ca1\u6709\u53d1\u73b0 PHP \u7684\u6269\u5c55\u8bbe\u7f6embstring\uff0c \u800c\u5f53\u524d\u7cfb\u7edf\u597d\u50cf\u5728\u4f7f\u7528\u5bbd\u5b57\u7b26\u96c6\u3002\u6ca1\u6709 mbstring \u6269\u5c55\u7684 phpMyAdmin \u4e0d\u80fd\u6b63\u786e\u8bc6\u522b\u5b57\u7b26\u4e32\uff0c\u53ef\u80fd\u4ea7\u751f\u4e0d\u53ef\u610f\u6599\u7684\u7ed3\u679c<br \/>\n\u539f\u56e0,\u5b89\u88c5\u6e90\u7801\u65f6\u6ca1\u6709&#8211;enable-mbstring\u6216\u4f7f\u7528rpm\u5305\u6216\u7cfb\u7edf\u81ea\u5e26. (\u6709\u4ec0\u4e48\u5f71\u54cd\u5927\u9e1f\u6307\u70b9\u6211\u4e0b,\u8c22\u8c22)<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\nit works!<br \/>\n\u8bf4\u660e\u5b89\u88c5\u6210\u529f.\u6709\u4e9b\u7248\u672c\u662f\u6253\u5f00\u9ed8\u8ba4\u9875,\u544a\u8bc9\u4f60\u6848\u5377\u6210\u529f.<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\u53d1\u73b0\u6570\u636e\u5e93\u91cc\u591a\u4e86\u4e2a: information_schema<br \/>\n\u8bf7\u53c2\u8003: <a rel=\"nofollow\" href=\"http:\/\/www.ititgo.com\/news_view.asp?newsid=620\">http:\/\/www.ititgo.com\/news_view.asp?newsid=620<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u521a\u5f00\u59cb\u73a9linux,\u5c31\u62ffdiscuz\u8bba\u575b\u73af\u5883\u8bd5\u624b.\u611f\u89c9\u771f\u7d2f,\u4f46\u662f\u5f88\u723d. \u672c\u4eba\u5b89\u88c5\u8fc7\u7a0b\u53c2\u8003:Nanu \u7684 http:\/\/www.discuz.net\/thread-209728-1-1.html \u5185\u5bb9\u4e5f\u662f.\u611f\u8c22Nanu,\u8bf7\u539f\u8c05\u6211&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-406","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=406"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/406\/revisions"}],"predecessor-version":[{"id":66260,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/406\/revisions\/66260"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=406"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=406"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}