[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: packaging apache modules



Federico Di Gregorio wrote:

> how do i get the LoadModule line in httpd.conf?

If you want to do this in a non-interactive way, you have to directly
modify /etc/apache/httpd.conf in your postinst. This is not allowed
according to the latest policy as /etc/apache/httpd.conf is a conffile
but the other way (using /usr/sbin/apacheconfig) is not legal too, as
this also changes the same conffile.

If you want to directly change /etc/apache/httpd.conf, you can take a
look at the postinst of jserv for a small piece of perl that does create
(or uncomment, if already present) a LoadModule line.

> what is the file xxxModulename.info present in all the module packages?

This is for apacheconfig so it can find out which modules to use. This
file tells apacheconfig which handlers and httpd.conf directives your
module understands so it can automatically (but unfortunately interactively)
comment or uncomment LoadModule directives.

-- 
Stefan Gybas


Reply to: