{"id":19,"date":"2009-04-21T14:22:58","date_gmt":"2009-04-21T10:22:58","guid":{"rendered":"http:\/\/itboss.ru\/?p=19"},"modified":"2010-05-21T09:40:19","modified_gmt":"2010-05-21T04:40:19","slug":"centos-5-and-apache-mpm-itk","status":"publish","type":"post","link":"https:\/\/itboss.ru\/?p=19","title":{"rendered":"Centos 5 and apache-mpm-itk"},"content":{"rendered":"<p>\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f: \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u043b\u0438\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b\u0438\u043a \u0447\u0435\u0440\u0435\u0437 WEB \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 CMS (\u0441\u043a\u0430\u0436\u0435\u043c <span class=\"highlight\">Joomla<\/span>), \u044d\u0442\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043b\u0430\u0434\u0435\u043b\u0435\u0446 apache<\/p>\n<p>-rw-rw-r&#8212;  1 apache apache 1003158 Apr  4 14:10 001.jpg<\/p>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.\u00a0 RPMS \u0442\u0430\u043a \u043a\u0430\u043a root \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043b\u043e\u0445\u043e\u0439 \u0438\u0434\u0435\u0435\u0439.<\/p>\n<p><code>cd<br \/>\nwget http:\/\/www.oldrpm.org\/hintskinks\/buildtree\/RPM-build-tree.txt<br \/>\nchmod 755 RPM-build-tree.txt<br \/>\n.\/RPM-build-tree.txt<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 buiding\u00a0 \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0441 CentOS 5 apache2 SRPM.<\/p>\n<p><code>mkdir \/build<br \/>\nmkdir \/build\/httpd-itk<br \/>\ncd \/build\/httpd-itk<br \/>\nwget http:\/\/isoredirect.centos.org\/centos\/5\/os\/SRPMS\/httpd-2.2.3-11.el5_1.centos.3.src.rpm<\/code><\/p>\n<p><code>rpmbuild --rebuild httpd-2.2.3-11.el5_1.centos.3.src.rpm<\/code><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435\u0442 <code>rpmbuild <\/code>\u0442\u043e<\/p>\n<p>yum install rpm-build<\/p>\n<p>\u0415\u0449\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0434\u043e\u043f. \u043f\u0430\u043a\u0435\u0442\u044b&#8230;<\/p>\n<p><code>cp \/rpmbuild\/SPECS\/httpd.spec httpd-itk.spec<\/code><\/p>\n<p><code>cd \/rpmbuild\/SOURCES<br \/>\nwget http:\/\/mpm-itk.sesse.net\/apache2.2-mpm-itk-20090414-00.patch<br \/>\nnano apache2.2-mpm-itk-200790414-00.patch<\/code><\/p>\n<p>\u0432 <code>apache2.2-mpm-itk-20090414-00.patch <\/code>\u0438\u0449\u0435\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0443<\/p>\n<p><code>+#define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0)<\/code><\/p>\n<p>\u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0435<\/p>\n<p><code>+#define MPM_VALID_PID(p) (getpgid(p) == getpgrp())<\/code><\/p>\n<p><code>cd ~\/build\/httpd<br \/>\nrpmbuild -ba httpd-itk.spec<\/code><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u043e\u0439\u0434\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u043e \u0438 \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a, \u0432 \u043f\u0430\u043f\u043a\u0435 \/rpmbuild\/RPMS \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u044b RPMS-ITK MPM.<\/p>\n<p><code>su<br \/>\ncd \/home\/userwebuildrpmsas\/rpmbuild\/RPMS<br \/>\nrpm -U httpd-2.2.3-11.itk.3.i386.rpm mod_ssl-2.2.3-11.itk.3.i386.rpm httpd-devel-2.2.3-11.itk.3.i386.rpm httpd-manual-2.2.3-11.itk.3.i386.rpm<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u0447\u0442\u043e MPM-ITK \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430.<\/p>\n<p><code>httpd.itk -l<\/code><\/p>\n<p>Compiled in modules:<br \/>\ncore.c<br \/>\nprefork.c<br \/>\nhttp_core.c<br \/>\nmod_so.c<\/p>\n<p>\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c httpd.conf<\/p>\n<p><code># itk modules<\/code><\/p>\n<p>&lt;IfModule itk.c&gt;<\/p>\n<p>AssignUserID apache apache<br \/>\nStartServers 8<br \/>\nMinSpareServers 5<br \/>\nMaxSpareServers 20<br \/>\nServerLimit 256<br \/>\nMaxClients 256<br \/>\nMaxRequestsPerChild 4000<\/p>\n<p>&lt;\/IfModule&gt;<\/p>\n<p>&lt;IfModule itk.c&gt;<br \/>\nLoadModule php5_module modules\/libphp5.so<br \/>\n&lt;\/IfModule&gt;<\/p>\n<p>\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \/etc\/sysconfig\/httpd \u0438 \u0432\u043d\u043e\u0441\u0438\u043c \u0437\u0430\u043f\u0438\u0441\u044c<\/p>\n<p><code>HTTPD=\/usr\/sbin\/httpd.itk<\/code><\/p>\n<p>\u0438 \u0440\u0435\u0441\u0442\u0430\u0440\u0442 \u0430\u043f\u0430\u0447\u0430<\/p>\n<p>\/etc\/init.d\/httpd restart<\/p>\n<p>\u0438\u043b\u0438<\/p>\n<p>\/etc\/rc.d\/init.d\/httpd restart<\/p>\n<p>\u0430 \u0432\u043e\u0442 \u0438 \u043e\u0448\u0438\u0431\u043a\u0438&#8230;<\/p>\n<p>(98)Address already in use: make_sock could not bind to address 0.0.0.0:80<\/p>\n<p>\u0438\u043b\u0438<\/p>\n<p>(98)Address already in use: make_sock could not bind to address 0.0.0.0:8443<\/p>\n<p><code>netstat -tulpn| grep :80<\/code><\/p>\n<p><code>killall -9 httpd<\/code><\/p>\n<p>\u0438 \u0440\u0435\u0441\u0442\u0430\u0440\u0442 \u0430\u043f\u0430\u0447\u0430<\/p>\n<p>\/etc\/init.d\/httpd restart<\/p>\n<p>\u0438\u043b\u0438<\/p>\n<p>\/etc\/rc.d\/init.d\/httpd restart<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f: \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u043b\u0438\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b\u0438\u043a \u0447\u0435\u0440\u0435\u0437 WEB \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 CMS (\u0441\u043a\u0430\u0436\u0435\u043c Joomla), \u044d\u0442\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043b\u0430\u0434\u0435\u043b\u0435\u0446 apache -rw-rw-r&#8212; 1 apache apache 1003158 Apr 4 14:10 001.jpg \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.\u00a0 RPMS \u0442\u0430\u043a \u043a\u0430\u043a root \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043b\u043e\u0445\u043e\u0439 \u0438\u0434\u0435\u0435\u0439. cd wget http:\/\/www.oldrpm.org\/hintskinks\/buildtree\/RPM-build-tree.txt chmod 755 RPM-build-tree.txt .\/RPM-build-tree.txt \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 buiding\u00a0 \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0441 CentOS 5 apache2 SRPM. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[5],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-software"],"wppr_data":[],"_links":{"self":[{"href":"https:\/\/itboss.ru\/index.php?rest_route=\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itboss.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itboss.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itboss.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itboss.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19"}],"version-history":[{"count":11,"href":"https:\/\/itboss.ru\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":22,"href":"https:\/\/itboss.ru\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions\/22"}],"wp:attachment":[{"href":"https:\/\/itboss.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itboss.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itboss.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}