httpd-2.2.19 and mpm-itk-2.2.17

gooo

New member
Joined
Aug 5, 2011
Messages
2
when i wanted to patch my apache by mpm-itk-2.2.17 in the progress i got this problem:

Code:
[root@xxx ~]# wget http://files6.directadmin.com/services/custombuild/httpd-2.2.19.tar.gz
[root@xxx ~]# tar -zxvf  httpd-2.2.19.tar.gz
[root@xxx ~]# cd httpd-2.2.19
[root@xxx httpd-2.2.19]# wget http://mpm-itk.sesse.net/apache2.2-mpm-itk-2.2.17-01.patch
[root@xxx httpd-2.2.19]# chmod 777 apache2.2-mpm-itk-2.2.17-01.patch
[root@xxx httpd-2.2.19]# patch -p1 < apache2.2-mpm-itk-2.2.17-01.patch
patching file server/mpm/experimental/itk/Makefile.in
patching file server/mpm/experimental/itk/config.m4
patching file server/mpm/experimental/itk/itk.c
patching file server/mpm/experimental/itk/mpm.h
patching file server/mpm/experimental/itk/mpm_default.h
patching file server/mpm/config.m4
Hunk #1 FAILED at 1.
1 out of 3 hunks FAILED -- saving rejects to file server/mpm/config.m4.rej
patching file include/http_request.h
patching file server/request.c
patching file server/config.c
[root@xxx httpd-2.2.19]#

Are you going to include this patch in the apache 2.2.19 soon?
Thanks.
 
I dunno why you would ever think a patch for a earlier version would work.
 
Last edited:
Change this lines
PHP:
 APACHE_HELP_STRING(--with-mpm=MPM,Choose the process model for Apache to use.
-                          MPM={beos|event|worker|prefork|mpmt_os2}),[
+                          MPM={beos|event|worker|prefork|mpmt_os2|itk}),[
to
PHP:
 APACHE_HELP_STRING(--with-mpm=MPM,Choose the process model for Apache to use.
-                          MPM={beos|event|worker|prefork|mpmt_os2|winnt}),[
+                          MPM={beos|event|worker|prefork|mpmt_os2|winnt|itk}),
 
Thank you very much for your help

User guide
next step
Code:
[root@xxx httpd-2.2.19]# ./buildconf
[root@xxx ~]# cd ..
[root@xxx ~]# tar cfz httpd-2.2.19.tar.gz httpd-2.2.19
[root@xxx ~]# md5sum -b httpd-2.2.19.tar.gz
3ebf38da33c7955592656c627b090063 *httpd-2.2.19.tar.gz
[root@xxx ~]# cp httpd-2.2.19.tar.gz /usr/local/directadmin/custombuild/
[root@xxx ~]# cd /usr/local/directadmin/custombuild
[root@xxx custombuild]# nano /usr/local/directadmin/custombuild/configure/ap2/configure.apache 
#write last line "--with-mpm=itk"
[root@xxx custombuild]# nano /usr/local/directadmin/custombuild/versions.txt
#search line apache2.2:2.2.19:2345243c351256c6272330063 and change to 3ebf38da33c7955592656c627b090063
[root@xxx custombuild]# ./build apache

then change in

Code:
cd /usr/local/directadmin/data/templates/
ips_virtual_host.conf
virtual_host.conf
virtual_host2.conf
virtual_host2_secure.conf
virtual_host2_secure_sub.conf
virtual_host2_sub.conf
virtual_host_secure.conf
virtual_host_secure_sub.conf
virtual_host_sub.conf
SuexecUserGroup to AssignUserID

To change users
/usr/local/diretadmin/data/users/$username
Code:
#!/bin/sh
for a in `ls /usr/local/directadmin/data/users`
do
perl -p -i -e 's/SuexecUserGroup/AssignUserID/g' /usr/local/directadmin/data/users/$a/httpd.conf \
&& echo "User $a changed succesfully" 
done



Thank!
 
Back
Top