{"id":84,"date":"2004-07-09T00:09:00","date_gmt":"2004-07-08T16:09:00","guid":{"rendered":"http:\/\/www\/zhouhonghe.com\/wordpress\/?p=84"},"modified":"2008-05-22T15:28:23","modified_gmt":"2008-05-22T07:28:23","slug":"apachephpmysql%e5%ae%89%e8%a3%85%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/blog.zhouhonghe.com\/?p=84","title":{"rendered":"Apache+php+mysql\u5b89\u88c5\u547d\u4ee4"},"content":{"rendered":"<p>----------------------- MySQL --------------------------------<br \/>\ncd \/www\/src<br \/>\ngroupadd mysql<br \/>\nuseradd -g mysql mysql<br \/>\ntar zxvf mysql-standard-4.0.23-pc-linux-i686.tar.gz<br \/>\nmkdir \/www\/bin<br \/>\ncp -R mysql-standard-4.0.23-pc-linux-i686 \/www\/bin\/mysql<br \/>\nchown -R mysql \/www\/bin\/mysql\/data<br \/>\nchgrp -R mysql \/www\/bin\/mysql<br \/>\ncd \/www\/bin\/mysql<br \/>\ncp support-files\/my-medium.cnf \/etc\/my.cnf<br \/>\nscripts\/mysql_install_db<br \/>\nchown -R mysql \/www\/bin\/mysql\/data<br \/>\nchgrp -R mysql \/www\/bin\/mysql<br \/>\n.\/bin\/mysqld_safe --user=mysql &amp;<\/p>\n<p>----------------------- Apache -------------------------------<br \/>\ncd \/www\/src<br \/>\ntar zxvf httpd2.0.52max4096.tar.gz<br \/>\ncd httpd-2.0.52\/<br \/>\n.\/configure --prefix=\/www\/bin\/apache --enable-so --enable-rewrite --enable-proxy<br \/>\nmake<br \/>\nmake install<\/p>\n<p>----------------------- LibJpeg --------------------------------<br \/>\ncd \/www\/src<br \/>\ntar zxvf jpegsrc.v6b.tar.gz<br \/>\ncd jpeg-6b<br \/>\n.\/configure --enable-shared --enable-static<br \/>\nmake<br \/>\nmkdir -p \/usr\/local\/man\/man1<br \/>\nmake install<\/p>\n<p>----------------------- LibPng --------------------------------<br \/>\ncd \/www\/src<br \/>\ntar xvjf libpng-1.2.5.tar.bz2<br \/>\ncd libpng-1.2.5<br \/>\ncp scripts\/makefile.linux makefile<br \/>\nmake<br \/>\nmake install<\/p>\n<p>----------------------- Php --------------------------------<br \/>\ncd \/www\/src<br \/>\ntar zxvf php-4.3.10.tar.gz<br \/>\ncd php-4.3.10<br \/>\n.\/configure --prefix=\/www\/bin\/php --with-apxs2=\/www\/bin\/apache\/bin\/apxs --with-mysql=\/www\/bin\/mysql --with-gd --with-zlib --with-jpeg-dir --with-iconv --with-dom-xml<br \/>\nmake<br \/>\nmake install<br \/>\ncp php.ini-dist \/www\/bin\/php\/lib\/php.ini<\/p>\n<p>\u7f16\u8f91\/www\/bin\/apache\/conf\/httpd.conf\uff0c\u52a0\u4e0a<br \/>\nLoadModule php5_module modules\/libphp5.so<br \/>\nAddType application\/x-httpd-php .php<\/p>\n","protected":false},"excerpt":{"rendered":"<p>----------------------- MySQL ------------------------- [&hellip;]<\/p>... ","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-84","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=\/wp\/v2\/posts\/84","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=84"}],"version-history":[{"count":0,"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=\/wp\/v2\/posts\/84\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}