[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

Sharing Apache Modules across multiple virtual domains

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.

dsimco
0
dsimco
Asked:
dsimco
  • 3
  • 2
1 Solution
 
Daemon2005Commented:
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

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


Pete
0
 
dsimcoAuthor Commented:
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.

Daniel
0
 
Daemon2005Commented:
No worries, and if you run into any problems, let me know

Pete
0
 
dsimcoAuthor Commented:
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.

dsimco
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now