{"id":5119,"date":"2010-08-21T08:00:38","date_gmt":"2010-08-20T23:00:38","guid":{"rendered":"http:\/\/www.sssg.org\/blogs\/hiro345\/?p=5119"},"modified":"2011-01-29T16:46:14","modified_gmt":"2011-01-29T07:46:14","slug":"centos4-4-apache-2-2-php5-3","status":"publish","type":"post","link":"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/5119.html","title":{"rendered":"CentOS4.4 + Apache 2.2 + PHP5.3"},"content":{"rendered":"<p>CentOS4.4 \u3067 Apache 2.2 + PHP5.3 \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u516c\u958b\u7528\u3067\u306f\u306a\u3044\u306e\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u8d77\u52d5\u3067\u304d\u308c\u3070\u3044\u3044\u3084\u3001\u3068\u3044\u3046\u7a0b\u5ea6\u306a\u306e\u3067\u3001\u305d\u306e\u3064\u3082\u308a\u3067\u307f\u3066\u304f\u3060\u3055\u3044\u3002<!--more--><\/p>\n<p>\u3044\u307e\u3069\u304d\u3001\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u4eba\u306f\u5c11\u306a\u3044\u306e\u3060\u308d\u3046\u306a\u3041\u3068\u601d\u3044\u307e\u3059\u304c&#8230; (64bit\u74b0\u5883\u3067\u306f &#x2d;&#x2d;with&#x2d;libdir=lib64 )\u3068\u3064\u3051\u308b\u3068\u3088\u3044\u3089\u3057\u3044\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">&#x23;&nbsp;cd&nbsp;&#x2f;usr&#x2f;local&#x2f;src&#x2f;<br \/>\n&#x23;&nbsp;sudo&nbsp;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;&nbsp;sudo&nbsp;wget&nbsp;http&#x3a;&#x2f;&#x2f;jp.php.net&#x2f;distributions&#x2f;php&#x2d;5.3.2.tar.gz<br \/>\n&#x23;&nbsp;sudo&nbsp;tar&nbsp;xzf&nbsp;httpd&#x2d;2.2.16.tar.gz&nbsp;<br \/>\n&#x23;&nbsp;cd&nbsp;httpd&#x2d;2.2.16<br \/>\n&#x23;&nbsp;sudo&nbsp;.&#x2f;configure&nbsp;&#x2d;&#x2d;prefix=&#x2f;usr&#x2f;local&#x2f;apache2&nbsp;&#x2d;&#x2d;enable&#x2d;module=so<br \/>\n&#x23;&nbsp;sudo&nbsp;make<br \/>\n&#x23;&nbsp;sudo&nbsp;su&nbsp;&#x2d;<br \/>\n&#x23;&nbsp;cd&nbsp;&#x2f;usr&#x2f;local&#x2f;src&#x2f;httpd&#x2d;2.2.16<br \/>\n&#x23;&nbsp;make&nbsp;install&nbsp;&#x7c;&nbsp;tee&nbsp;&gt;&nbsp;install.log<br \/>\n&#x23;&nbsp;yum&nbsp;install&nbsp;flex<br \/>\n&#x23;&nbsp;yum&nbsp;install&nbsp;libtool&nbsp;libtool&#x2d;libs<br \/>\n&#x23;&nbsp;yum&nbsp;install&nbsp;libxml2&#x2d;devel&nbsp;libxml2<br \/>\n&#x23;&nbsp;yum&nbsp;install&nbsp;libjpeg&nbsp;libjpeg&#x2d;devel<br \/>\n&#x23;&nbsp;yum&nbsp;install&nbsp;libpng&#x2d;devel&nbsp;libpng<br \/>\n&#x23;&nbsp;yum&nbsp;install&nbsp;freetype&nbsp;freetype&#x2d;devel<br \/>\n&#x23;&nbsp;yum&nbsp;install&nbsp;mysql&#x2d;devel<br \/>\n&#x23;&nbsp;cd&nbsp;php&#x2d;5.3.2<br \/>\n&#x23;&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;lib&nbsp;&#x5c;<br \/>\n&nbsp;&#x2d;&#x2d;with&#x2d;jpeg&#x2d;dir=&#x2f;usr&#x2f;lib&nbsp;&#x2d;&#x2d;with&#x2d;png&#x2d;dir=&#x2f;usr&#x2f;lib&nbsp;&#x5c;<br \/>\n&nbsp;&#x2d;&#x2d;with&#x2d;freetype&#x2d;dir=&#x2f;usr&#x2f;lib<br \/>\n&#x23;&nbsp;make<br \/>\n&#x23;&nbsp;make&nbsp;install&nbsp;2&gt;&amp;1&nbsp;&#x7c;&nbsp;tee&nbsp;..&#x2f;php&#x2d;5.3.2.make&#x2d;install.log<br \/>\n&#x23;&nbsp;cp&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\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;\">&#x23;&nbsp;php.ini<br \/>\nextension_dir&nbsp;=&nbsp;&quot;&#x2f;usr&#x2f;local&#x2f;php&#x2d;5.3.2&#x2f;ext&quot;<br \/>\ninclude_path&nbsp;=&nbsp;&quot;.&#x3a;&#x2f;usr&#x2f;local&#x2f;php&#x2d;5.3.2&#x2f;includes&quot;<br \/>\nmbstring.language&nbsp;=&nbsp;Japanese<br \/>\nmbstring.internal_encoding&nbsp;=&nbsp;UTF&#x2d;8<br \/>\nmbstring.http_output&nbsp;=&nbsp;UTF&#x2d;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","protected":false},"excerpt":{"rendered":"<p>CentOS4.4 \u3067 Apache 2.2 + PHP5.3 \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u516c\u958b\u7528\u3067\u306f\u306a\u3044\u306e\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u8d77\u52d5\u3067\u304d\u308c\u3070\u3044\u3044\u3084\u3001\u3068\u3044\u3046\u7a0b\u5ea6\u306a\u306e\u3067\u3001\u305d\u306e\u3064\u3082\u308a\u3067\u307f\u3066\u304f\u3060\u3055\u3044\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,295],"class_list":["post-5119","post","type-post","status-publish","format-standard","hentry","category-linux","tag-apache","tag-centos","tag-php"],"_links":{"self":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/5119","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=5119"}],"version-history":[{"count":8,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/5119\/revisions"}],"predecessor-version":[{"id":5930,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/5119\/revisions\/5930"}],"wp:attachment":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/media?parent=5119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/categories?post=5119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/tags?post=5119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}