{"id":6291,"date":"2011-03-17T08:00:04","date_gmt":"2011-03-16T23:00:04","guid":{"rendered":"http:\/\/www.sssg.org\/blogs\/hiro345\/?p=6291"},"modified":"2011-03-27T15:41:07","modified_gmt":"2011-03-27T06:41:07","slug":"centos5-5-%e3%81%b8-apache2-%e3%81%a8-php5-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/6291.html","title":{"rendered":"CentOS5.5 64bit\u7248\u3078 Apache2 \u3068 PHP5 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>CentOS5.5 64bit\u7248 \u3078 Apache2 \u3068 PHP5 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<p>\u3042\u3089\u304b\u3058\u3081\u5fc5\u8981\u306a\u3082\u306e\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">&#x24;&nbsp;cat&nbsp;install&#x2d;httpd&#x2d;php&#x2d;pre.sh&nbsp;<br \/>\n&#x23;&#x21;&#x2f;bin&#x2f;sh<br \/>\nyum&nbsp;&#x2d;y&nbsp;install&nbsp;flex<br \/>\nyum&nbsp;&#x2d;y&nbsp;install&nbsp;libtool&nbsp;libtool&#x2d;libs<br \/>\nyum&nbsp;&#x2d;y&nbsp;install&nbsp;libxml2&#x2d;devel&nbsp;libxml2<br \/>\nyum&nbsp;&#x2d;y&nbsp;install&nbsp;libjpeg&nbsp;libjpeg&#x2d;devel<br \/>\nyum&nbsp;&#x2d;y&nbsp;install&nbsp;libpng&#x2d;devel&nbsp;libpng<br \/>\nyum&nbsp;&#x2d;y&nbsp;install&nbsp;freetype&nbsp;freetype&#x2d;devel<br \/>\nyum&nbsp;&#x2d;y&nbsp;install&nbsp;mysql&#x2d;devel<br \/>\nyum&nbsp;&#x2d;y&nbsp;install&nbsp;libmcrypt<br \/>\nyum&nbsp;&#x2d;y&nbsp;install&nbsp;libmcrypt&#x2d;devel\n<\/div>\n<p>Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">&#x24;&nbsp;cat&nbsp;install&#x2d;httpd.sh&nbsp;<br \/>\n&#x23;&#x21;&#x2f;bin&#x2f;sh<br \/>\ncd&nbsp;&#x2f;usr&#x2f;local&#x2f;src&#x2f;<br \/>\n&#x23;wget&nbsp;http&#x3a;&#x2f;&#x2f;ftp.riken.jp&#x2f;net&#x2f;apache&#x2f;httpd&#x2f;httpd&#x2d;2.2.16.tar.gz<br \/>\n&#x23;wget&nbsp;http&#x3a;&#x2f;&#x2f;jp.php.net&#x2f;distributions&#x2f;php&#x2d;5.3.2.tar.gz<br \/>\ntar&nbsp;xzf&nbsp;httpd&#x2d;2.2.16.tar.gz&nbsp;<br \/>\ncd&nbsp;&#x2f;usr&#x2f;local&#x2f;src&#x2f;httpd&#x2d;2.2.16<br \/>\n.&#x2f;configure&nbsp;&#x2d;&#x2d;prefix=&#x2f;usr&#x2f;local&#x2f;apache2&nbsp;&#x2d;&#x2d;enable&#x2d;module=so<br \/>\nmake<br \/>\nmake&nbsp;install&nbsp;&#x7c;&nbsp;tee&nbsp;&gt;&nbsp;install.log\n<\/div>\n<p>PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u6b21\u306e\u901a\u308a\u3002LDFLAGS=-L\/usr\/lib64\/mysql \u3092\u3064\u3051\u305f\u308a\u3001\/usr\/lib64 \u3092\u6307\u5b9a\u3057\u305f\u308a\u3059\u308b\u306e\u304c\u30dd\u30a4\u30f3\u30c8\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u3053\u308c\u3067\u3001\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3068\u304d\u306f\u3001 &#x2d;&#x2d;with&#x2d;libdir=lib64 \u3092\u3064\u3051\u3066\u307f\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002\uff09<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">&#x24;&nbsp;cat&nbsp;install&#x2d;php.sh&nbsp;<br \/>\n&#x23;&#x21;&#x2f;bin&#x2f;sh<br \/>\ncd&nbsp;&#x2f;usr&#x2f;local&#x2f;src<br \/>\ntar&nbsp;xlf&nbsp;php&#x2d;5.3.2.tar.bz2<br \/>\ncd&nbsp;&#x2f;usr&#x2f;local&#x2f;src&#x2f;php&#x2d;5.3.2<br \/>\nLDFLAGS=&#x2d;L&#x2f;usr&#x2f;lib64&#x2f;mysql&nbsp;.&#x2f;configure&nbsp;&#x2d;&#x2d;prefix=&#x2f;usr&#x2f;local&#x2f;php&#x2d;5.3.2&nbsp;&#x5c;<br \/>\n&nbsp;&#x2d;&#x2d;with&#x2d;apxs2=&#x2f;usr&#x2f;local&#x2f;apache2&#x2f;bin&#x2f;apxs&nbsp;&#x5c;<br \/>\n&nbsp;&#x2d;&#x2d;enable&#x2d;mbstring&nbsp;&#x2d;&#x2d;enable&#x2d;mbregex&nbsp;&#x5c;<br \/>\n&nbsp;&#x2d;&#x2d;enable&#x2d;sockets&nbsp;&#x2d;&#x2d;with&#x2d;mhash&nbsp;&#x5c;<br \/>\n&nbsp;&#x2d;&#x2d;with&#x2d;openssl=&#x2f;usr&nbsp;&#x5c;<br \/>\n&nbsp;&#x2d;&#x2d;with&#x2d;mysql&nbsp;&#x5c;<br \/>\n&nbsp;&#x2d;&#x2d;with&#x2d;pdo&#x2d;mysql&nbsp;&#x5c;<br \/>\n&nbsp;&#x2d;&#x2d;with&#x2d;mcrypt&nbsp;&#x5c;<br \/>\n&nbsp;&#x2d;&#x2d;enable&#x2d;zend&#x2d;multibyte&nbsp;&#x2d;&#x2d;disable&#x2d;cgi&nbsp;&#x2d;&#x2d;enable&#x2d;inline&#x2d;optimization&nbsp;&#x5c;<br \/>\n&nbsp;&#x2d;&#x2d;enable&#x2d;sigchild&nbsp;&#x2d;&#x2d;enable&#x2d;exif&nbsp;&#x2d;&#x2d;enable&#x2d;ftp&nbsp;&#x5c;<br \/>\n&nbsp;&#x2d;&#x2d;with&#x2d;gd&nbsp;&#x2d;&#x2d;with&#x2d;zlib&#x2d;dir=&#x2f;usr&#x2f;lib64&nbsp;&#x5c;<br \/>\n&nbsp;&#x2d;&#x2d;with&#x2d;jpeg&#x2d;dir=&#x2f;usr&#x2f;lib64&nbsp;&#x2d;&#x2d;with&#x2d;png&#x2d;dir=&#x2f;usr&#x2f;lib64&nbsp;&#x5c;<br \/>\n&nbsp;&#x2d;&#x2d;with&#x2d;freetype&#x2d;dir=&#x2f;usr&#x2f;lib64<br \/>\nmake<br \/>\nmake&nbsp;install&nbsp;2&gt;&amp;1&nbsp;&#x7c;&nbsp;tee&nbsp;..&#x2f;php&#x2d;5.3.2.make&#x2d;install.log<br \/>\ncp&nbsp;&#x2f;usr&#x2f;local&#x2f;src&#x2f;php&#x2d;5.3.2&#x2f;php.ini&#x2d;production&nbsp;&#x2f;usr&#x2f;local&#x2f;php&#x2d;5.3.2&#x2f;lib&#x2f;php.ini&nbsp;\n<\/div>\n<p>\u6700\u5f8c\u306bphp.ini\u3092\u7de8\u96c6\u3057\u3066\u3044\u307e\u3059\u3002\u5909\u66f4\u5206\u3060\u3051\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\"># php.ini<br \/>\nextension_dir = &#8220;\/usr\/local\/php-5.3.2\/ext&#8221;<br \/>\ninclude_path = &#8220;.:\/usr\/local\/php-5.3.2\/includes&#8221;<br \/>\nmbstring.language = Japanese<br \/>\nmbstring.internal_encoding = UTF-8<br \/>\nmbstring.http_output = UTF-8\n<\/div>\n<p>apache\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001Listen\u3067\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u6307\u5b9a\u3057\u3066\u3001user, group \u3092\u9069\u5207\u306a\uff08apache\u3068\u304b\u3001www\u3068\u304b\uff09\u3082\u306e\u3092\u6307\u5b9a\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u95a2\u9023\u30ea\u30f3\u30af\uff1a<\/p>\n<ul>\n<li><a href=\"\/\/www.sssg.org\/blogs\/hiro345\/archives\/5119.html\">CentOS4.4 + Apache 2.2 + PHP5.3 &#8211; hiro345<\/a><\/li>\n<\/ul>\n<p>\u95a2\u9023\u66f8\u7c4d\uff1a<br \/>\n<iframe src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=4844327143&#038;ref=tf_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><br \/>\n<iframe src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=4873112575&#038;ref=tf_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS5.5 64bit\u7248 \u3078 Apache2 \u3068 PHP5 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[341,26,408],"class_list":["post-6291","post","type-post","status-publish","format-standard","hentry","category-linux","tag-apache","tag-centos","tag-php5"],"_links":{"self":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/6291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/comments?post=6291"}],"version-history":[{"count":7,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/6291\/revisions"}],"predecessor-version":[{"id":6295,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/6291\/revisions\/6295"}],"wp:attachment":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/media?parent=6291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/categories?post=6291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/tags?post=6291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}