Opened 11 years ago

Last modified 5 years ago

#31122 new enhancement

MPM-ITK support for apache2 port

Reported by: neverpanic (Clemens Lang) Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.99
Keywords: haspatch Cc: Schamschula (Marius Schamschula), pixilla (Bradley Giesbrecht)
Port: apache2


Please find attached a patchfile adding support for the (experimental) itk multiprocessing module to the apache2 port.

I couldn't use the standard method to patch the files, because the mpm-itk patch requires patch.args -p1 but the other patches in $(port dir apache2)/files do not and I neither wanted to modify the upstream mpm-itk patch nor the existing patchfiles. Also, the mpm-itk patch needs to be patched to apply correctly (which is what mpmitk-fix-add-mpm-to-build-system.patch does).

MPM-ITK is essentially a fork of the prefork MPM allowing to use different UIDs for different VirtualHosts. In order to do this, Apache needs to be able to setuid() after matching a request to its VirtualHost and will thus have to run as root. The user ID can be specified using the AssignUserID directive and defaults to the value of User if AssignUserID was not given (this means requests will never be served as root!).

For more information about MPM-ITK go to

This might be an alternative solution for #10511.

Attachments (1)

add-mpmitk.patch (3.2 KB) - added by neverpanic (Clemens Lang) 11 years ago.
Patch against $(port dir apache2)

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by neverpanic (Clemens Lang)

Attachment: add-mpmitk.patch added

Patch against $(port dir apache2)

comment:1 Changed 11 years ago by neverpanic (Clemens Lang)


comment:2 Changed 5 years ago by jmroot (Joshua Root)

Cc: Schamschula pixilla added
Note: See TracTickets for help on using tickets.