Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a webserver with cPanel / Webhost Manager (WHM). Now I need to install the Apache module mod_vhost_alias so I can use VirtualDocumentRoot.

I've added LoadModule vhost_alias_module modules/mod_vhost_alias.so but the .so file does not actually exist. I could download it, but I'm not sure that's the correct way to do it. What is?

share|improve this question

2 Answers 2

up vote 0 down vote accepted

You can recompile Apache to include this file. cPanel includes a shell script /scripts/easyapache which will recompile Apache from source and include all the necessary apache modules for cPanel to function. If you don't use EasyApache and install from a package or directly from source, you'll run into issues when the cPanel updater upcp runs.

Here's the official documentation for EasyApache

share|improve this answer

If you can compile it, then that's the best way, that or use a package manager. This is only if you're on a server with root access.

share|improve this answer
You're right about compiling from source. But be sure to use /scripts/easyapache to compile from source on a cPanel machine, or else cPanel will break your custom modules when it does it's own updates. –  Josh Mar 31 '10 at 3:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.