{"id":600,"date":"2015-07-02T14:35:42","date_gmt":"2015-07-02T06:35:42","guid":{"rendered":"http:\/\/blog.liangjinjin.cn\/?p=600"},"modified":"2015-07-08T12:50:38","modified_gmt":"2015-07-08T04:50:38","slug":"%e7%8e%af%e5%a2%83%e6%90%ad%e5%bb%ba%ef%bc%9alighttpdphpmysqlphpmyadmin-%e6%90%ac%e7%93%a6%e5%b7%a564m%e5%8f%af%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/blog.liangjinjin.cn\/?p=600","title":{"rendered":"\u73af\u5883\u642d\u5efa\uff1alighttpd+PHP+MySQL+phpmyadmin  \u642c\u74e6\u5de564M\u53ef\u8fd0\u884c"},"content":{"rendered":"<div id=\"wpopt-ai-summary\"><\/div><p><strong><span style=\"color: blue;\">\u73af\u5883\u642d\u5efa\uff1alighttpd+PHP+MySQL+phpmyadmin<\/span><\/strong><\/p>\n<p>\u8f6c\u8f7d\u7f51\u4e0a\u7684\uff0c\u6765\u6e90\u4e0d\u660e\uff0c\u5206\u4eab\u7ed9\u5927\u5bb6\u3002<\/p>\n<p><strong>\u7cfb\u7edf\u9009\u62e9ubuntu 10_x86<\/strong><\/p>\n<p>\u5728Ubuntu\u4e0a\u642d\u5efalighttpd\uff0c PHP\u548cMySQL \u5bf9\u4e8e\u5c0f\u5185\u5b58\uff0864M,128M\uff09\u7684VPS\u6765\u8bf4\u642d\u5efalighttpd\u662fApache\u73af\u5883\u6700\u597d\u7684\u9009\u62e9\u3002<\/p>\n<p>\u4e0b\u9762\u4ecb\u7ecd\u600e\u6837\u5728\u5c0f\u5185\u5b58\uff0864M\uff0c128M\uff09\u642d\u5efa\u3002<\/p>\n<p>\u5728\u4e00\u4e2a\u65b0\u7684\u7cfb\u7edf\uff08\u6ca1\u6709apache\u5b89\u88c5\uff09\u5b89\u88c5lighttpd Web\u670d\u52a1\u5668<br \/>\nBandwagon\u4e0a\u5982\u679c\u51fa\u73b0E:unable to locate package\u7684\u9519\u8bef\uff0c<br \/>\n\u8fd0\u884c<code>apt-get update<\/code> \u66f4\u65b0\u540e\u5c31\u5c31\u53ef\u4ee5\u8f93\u5165\u4e86\u3002<br \/>\napt-get install lighttpd<br \/>\n\u73b0\u5728\u5b89\u88c5PHP5<\/p>\n<p><code>apt-get install php5-cgi php5-cli<\/code><\/p>\n<p>\u7f16\u8f91\u4e0b\u5217\u6587\u4ef6<br \/>\n<code>vi \/etc\/php5\/cgi\/php.ini<\/code><br \/>\n\u53d6\u6d88\u8fd9\u884c\u7684\uff1b<br \/>\n<code>cgi.fix_pathinfo = 1<\/code><\/p>\n<p>\u73b0\u5728\u4f7ffastcgi\u6a21\u5757\u542f\u7528<br \/>\n<code>lighty-enable-mod fastcgi<\/code><\/p>\n<p>\u91cd\u542flighttpd<\/p>\n<p><code>\/etc\/init.d\/lighttpd restart<\/code><\/p>\n<p>\u6211\u4eec\u4f1a\u770b\u5230\u6b22\u8fce\u9875\u9762<br \/>\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n<p>\u4e0b\u9762\u8ba9\u6211\u4eec\u5efa\u7acbMYSQL\u6570\u636e\u5e93<\/p>\n<p><code>apt-get install mysql-server mysql-client<\/code><\/p>\n<p>\u5b89\u88c5phpmyadmin<\/p>\n<p><code>apt-get install phpmyadmin<\/code><br \/>\n\u8fd9\u65f6\uff0c\u4f60\u4f1a\u53d1\u73b0\u76f4\u63a5\u8bbf\u95eehttp:\/\/localhost\/phpmyadmin\u65e0\u6cd5\u4f7f\u7528\uff0c<\/p>\n<p>\u8fd9\u65f6\u6211\u4eec\u9700\u8981\u5efa\u7acb\u4e00\u4e2a\u8f6f\u8fde\u63a5\uff0c\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4<\/p>\n<p><code>ln -s \/usr\/share\/phpmyadmin\/ \/var\/www\/<\/code><br \/>\n\u521b\u5efa\u4e2a\u6d4b\u8bd5\u9875\u9762\u770b\u770b\u662f\u5426OK<\/p>\n<p><code>vi \/var\/www\/info.php<\/code><br \/>\n\u5728\u4e0b\u9762\u6253\u4e0a<\/p>\n<p><code>&lt;?<br \/>\nphpinfo();<br \/>\n?&gt;<\/code><\/p>\n<p>\u4fdd\u5b58\u540e\u5c31\u53ef\u4ee5\u901a\u8fc7<\/p>\n<p>\u518d\u63a5\u7740\u91cd\u542f\u4e00\u4e0bvps<\/p>\n<p>reboot<\/p>\n<p><a href=\"http:\/\/blog.liangjinjin.cn\/wp-content\/uploads\/2015\/07\/2015-07-02_06-35-12.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-601\" src=\"http:\/\/blog.liangjinjin.cn\/wp-content\/uploads\/2015\/07\/2015-07-02_06-35-12-150x150.jpg\" alt=\"QQ\u622a\u56fe20150702143506\" width=\"150\" height=\"150\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73af\u5883\u642d\u5efa\uff1alighttpd+PHP+MySQL+phpmyadmin \u8f6c\u8f7d\u7f51\u4e0a\u7684\uff0c\u6765\u6e90\u4e0d\u660e\uff0c\u5206\u4eab\u7ed9\u5927\u5bb6\u3002 \u7cfb\u7edf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,23],"tags":[],"class_list":["post-600","post","type-post","status-publish","format-standard","hentry","category-vps","category-23"],"_links":{"self":[{"href":"https:\/\/blog.liangjinjin.cn\/index.php?rest_route=\/wp\/v2\/posts\/600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.liangjinjin.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.liangjinjin.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.liangjinjin.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.liangjinjin.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=600"}],"version-history":[{"count":0,"href":"https:\/\/blog.liangjinjin.cn\/index.php?rest_route=\/wp\/v2\/posts\/600\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.liangjinjin.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.liangjinjin.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.liangjinjin.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}