{"id":1074,"date":"2009-12-16T00:19:55","date_gmt":"2009-12-16T00:19:55","guid":{"rendered":"http:\/\/www.huzs.top\/?p=1074"},"modified":"2009-12-16T00:19:55","modified_gmt":"2009-12-16T00:19:55","slug":"86","status":"publish","type":"post","link":"https:\/\/www.huzs.top\/?p=1074","title":{"rendered":"Linux\u4e0bApache 2.2, MySQL 5.0\u548cPHP 5.0\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e"},"content":{"rendered":"<p>1.\u5b89\u88c5\u73af\u5883\\n\u64cd\u4f5c\u7cfb\u7edf\uff1aRed Hat Linux Enterprise AS 4.0\\n\u6570\u636e\u5e93\uff1aMySQL 5.0.24\\nWeb\u670d\u52a1\u5668\uff1aApache 2.2.3\\n\u811a\u672c\u8bed\u8a00\uff1aPHP 5.1.6\\n\\n2.\u5b89\u88c5MySQL 5.0.24\\n&#8212;&#8212;&#8212;&#8212;-\u4e0b\u8f7d\u8f6f\u4ef6\u5305mysql-5.0.24.tar.gz\uff0c\u5730\u5740<a href=\"http:\/\/www.mysql.com-------------\" rel=\"external\" target=\"_blank\">http:\/\/www.mysql.com&#8212;&#8212;&#8212;&#8212;-<\/a>\\n# tar zvxf mysql-5.0.24.tar.gz \/\/\u89e3\u538b\u7f29\\n# cd mysql-5.0.24 \/\/\u8fdb\u5165\u89e3\u538b\u7f29\u540e\u7684\u6587\u4ef6\u76ee\u5f55\\n# .\/configure &#8211;prefix=\/usr\/local\/mysql \/\/\u8bbe\u5b9a\u5b89\u88c5\u76ee\u5f55\\n&#8211;enable-thread-safe-client \/\/\u7f16\u8bd1\u7ebf\u7a0b\u5b89\u5168\u7248\u7684\u5ba2\u6237\u7aef\u5e93\\n&#8211;without-debug \/\/\u5173\u95eddebug\u529f\u80fd\\n&#8211;localstatedir=\/data\/mysqldata \/\/\u8bbe\u5b9a\u6570\u636e\u5e93\u6587\u4ef6\u76ee\u5f55\\n# make \/\/\u7f16\u8bd1\\n# make install \/\/\u5b89\u88c5\\n# \/usr\/local\/mysql\/bin\/mysql_install_db \/\/\u521d\u59cb\u5316\u6388\u6743\\n# chown \u2013R root:root \/usr\/local\/mysql \/\/\u6587\u4ef6\u5c5e\u6027\u6539\u4e3aroot\u7528\u6237\\n# cp \/usr\/local\/mysql\/share\/mysql\/my-medium.cnf \/etc\/my.cnf \/\/\u590d\u5236\u914d\u7f6e\u6587\u4ef6\\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\u542f\u52a8MySQL\u670d\u52a1&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\\n# \/usr\/local\/mysql\/bin\/mysqld_safe &#8211;user=root &amp; \/\/\u542f\u52a8MySQL\\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\u4fee\u6539MySQL\u5bc6\u7801&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\\n# \/usr\/local\/mysql\/bin\/mysqladmin -uroot password mysqlsecret \/\/\u4fee\u6539\u5bc6\u7801\\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\u5173\u95edMySQL\u670d\u52a1&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\\n# \/usr\/local\/mysql\/bin\/mysqladmin -uroot -pmysqlsecret shutdown \/\/\u5173\u95edMySQL\\n<!--more-->\\n3.\u5b89\u88c5Apache 2.2.3\\n&#8212;&#8212;&#8212;&#8212;-\u4e0b\u8f7d\u8f6f\u4ef6\u5305httpd-2.2.3.tar.gz\uff0c\u5730\u5740<a href=\"http:\/\/www.apache.org-------------\" rel=\"external\" target=\"_blank\">http:\/\/www.apache.org&#8212;&#8212;&#8212;&#8212;-<\/a>\\n# tar zvxf httpd-2.2.3.tar.gz\\n# cd httpd-2.2.3\\n# .\/configure &#8211;prefix=\/usr\/local\/apache\\n&#8211;enable-module=most\\n&#8211;enable-shared=max\\n# make\\n# make install\\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\u542f\u52a8Apache\u670d\u52a1&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\\n# \/usr\/local\/apache\/bin\/apachectl start\\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\u5173\u95edApache\u670d\u52a1&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\\n# \/usr\/local\/apache\/bin\/apachectl stop\\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\u91cd\u542fApache\u670d\u52a1&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\\n# \/usr\/local\/apache\/bin\/apachectl restart\\n\\n4.\u5b89\u88c5PHP 5.1.6\\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\u4e0b\u8f7d\u8f6f\u4ef6\u5305php-5.1.6.tar.gz\uff0c\u5730\u5740www.php.net&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\\n# tar zvxf php-5.1.6.tar.gz\\n# cd php-5.1.6\\n# .\/configure &#8211;prefix=\/usr\/local\/php\\n&#8211;with-mysqld=\/usr\/local\/mysql\\n&#8211;with-apxs2=\/usr\/local\/apache\/bin\/apxs\\n# make\\n# make install\\n# cp php.ini-dist \/usr\/local\/php\/lib\/php.ini\\n\\n5.\u914d\u7f6eApache\u670d\u52a1\u7684httpd.conf\u6587\u4ef6\\n*\u5728LoadModule\u5904\u6dfb\u52a0 LoadModule php5_module module\/libphp5.so\\n*\u5728DirectoryIndex\u5904\u6dfb\u52a0 index.php\\n*\u5728AddType application\u5904\u6dfb\u52a0\\nAddType application\/x-httpd-php .php .phtml\\nAddType applicatoin\/x-httpd-php-source .phps<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u5b89\u88c5\u73af\u5883\\n\u64cd\u4f5c\u7cfb\u7edf\uff1aRed Hat Linux Enterprise AS 4.0\\n\u6570\u636e\u5e93\uff1aMySQL [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[26],"class_list":["post-1074","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts\/1074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1074"}],"version-history":[{"count":0,"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts\/1074\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}