Sharing Apache Modules across multiple virtual domains

Posted on 2005-05-02
Last Modified: 2010-03-04
Hello Experts,

I am expecting detailed information regarding "How to's" for this question. Points will not be awarded for posts which say "refer to this link", etc. Unfortunately, I have only been working with RH for a couple of years now and it seems that many of the technical documents require me to do more research just to understand them. For example, I am trying to get Horde installed and configured but I am having a lot of trouble. I do not mind doing the work but most of the time I have already found and followed the documentation for the implementions. The reason I am posting is because I have been unable to find the information I need or I am having trouble implemention process discribed in the docs to get the task completed.

I am setting up a web server for hosting multiple domains. I am using RH7.3, Apache2.x.x, PHP4.x, Majordomo, and Horde. So far I have been able to configure my name-based virtual hosts, SSL, FTP access, and Sendmail. I am interested in offering the Packages across multiple domains. My question is do I have to install these packages in each users /home directory in order for them to be used by each domain or can I install them once on the server and somehow give the user the ability to make their own configuration file which will be used?

So, 1) Lets say I build one domain/website with all the functionality I want. Is there a way to "copy" the framework and functionality to other domains/websites which will be on the same server stored under the individual user accounts /home directory? I believe I can copy files into the users /home directory when I create the user account but I do not know how to define all of the files which would need to be copied. It seems that the core files would need to be in directories which the user will not have access to.

2) I am concerned about using disk capacity. If I need to install multiple instances of each package into the users /home directory that is fine. But if I can accomplish the same results by installing the package once on the server and then placing configuration files in each users /home directory which will be used for their respective domain/website I think that would be better.

Thank you for your time and assistance.

Question by:dsimco
    LVL 2

    Accepted Solution

    Create a softlink in each virtualhost that you want to make use of horde with, like this:
     ln -s /<real path to horde>/  /<virtualhost path>/horde

    You could then create Aliases in each virtualhost, to point to their respective alternate config files for horde and/or other applications.

    Alias /horde/config/config_inc.php /<path to alternate config file>/config_inc.php

    No need to make copies of the whole application this way.

    Make sure you give each there own database in MySQL ;-)

    Hope this helps

    LVL 2

    Expert Comment

    Almost forgot,.. I think you also need to set the Option to Follow Symlinks in Apache


    Author Comment

    Thank you Pete. I will try this and post my results. Please give me a little time as I have gotten busy and will not be able to revisit this issue in the lab until the weekend.

    LVL 2

    Expert Comment

    No worries, and if you run into any problems, let me know


    Author Comment

    My apologies for not getting back to this sooner. I had some major items which required my attention. Daemon2005 I will post again if I have any other questions.

    Thanks for the help.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Suggested Solutions

    Title # Comments Views Activity
    PHP 7 Warning 12 36
    CentOS 7 (Apache2) Cannot Install SSL Cert 1 40
    htaccess file 3 49
    phpPgAdmin problem 14 44
    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now