0

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?

1

2 Answers 2

0

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

0

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.

1
  • 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, 2010 at 3:49

Not the answer you're looking for? Browse other questions tagged .