LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Compile mod_vhost_alias after Apache is compiled? (https://www.linuxquestions.org/questions/linux-server-73/compile-mod_vhost_alias-after-apache-is-compiled-817992/)

Brandon.Wamboldt 07-04-2010 03:20 PM

Compile mod_vhost_alias after Apache is compiled?
 
I for some odd reason did not include mod_vhost_alias in my Apache installation last time I compiled. I now need this module, and was wondering if I can compile it separately so I don't need to recompile Apache.

If this isn't possible, will I have any problems recompiling without first removing Apache which is in /opt/httpd? If I do that, then I shouldn't have to recompile PHP and my configuration files should remain untouched correct?

Thanks

bathory 07-04-2010 04:11 PM

Hi,

If you have compiled apache with DSO capability (i.e. using --enable-so), then you can use apxs to compile the missing module:
Code:

/path/to/apache/bin/apxs -i -c -a /path/to/apache-sources/modules/mappers/mod_vhost_alias.c
Regards

Brandon.Wamboldt 07-04-2010 04:58 PM

Thanks, that's perfect


All times are GMT -5. The time now is 06:48 PM.