LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-19-2009, 11:35 AM   #1
Trance-formation
LQ Newbie
 
Registered: Jul 2007
Location: West Yorkshire, UK
Distribution: Feisty Faun (laptop) -CentOS and FC6 (server)
Posts: 10

Rep: Reputation: 0
vhost.conf and Alias to share common files across domains - impact on server load?


I have a project in mind that effectively means making the same core php scripts available to a range of clients, by placing the scripts under var/www/coredcode/ and using alias in the vhost.conf file to configure my clients' domains to use those rather than local files. Advantage to me is that I only ever have to maintain and upgrade one set of files :-)

What I'm not sure about is if this will impact on the server load. If, for example, I run 15 domains in this way, so each domain is accessing the same index.php file located at var/www/corecode/index.php, is this more demanding of the server than running 15 separate instances of index.php under the 15 different domains? Or will it make little to no difference?

Adam
 
Old 05-19-2009, 12:06 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well there's no implicit impact on resources, why should there be? If this one shared page is significantly more complex in order to provide functionality then it might have an impact, but it should be fine if you're a good php coder.
 
Old 05-19-2009, 04:32 PM   #3
Trance-formation
LQ Newbie
 
Registered: Jul 2007
Location: West Yorkshire, UK
Distribution: Feisty Faun (laptop) -CentOS and FC6 (server)
Posts: 10

Original Poster
Rep: Reputation: 0
That was my assumption, but I'm more up on the php than the server implications so it seemed worth asking in case I had missed something :-) There will obviously be some extra work involved in determining the domain the script is running under, but it only need be performed once on log-in so the implications should be negligable. Thanks for the feedback

Adam
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix alias domains csaunders Red Hat 1 04-17-2007 11:44 AM
Vhost.conf Questions ROYW1000 Linux - General 0 07-09-2006 03:28 AM
Is it possible to control apacheīs alias using mysql and not .conf files? stormrider_may Linux - Networking 8 03-20-2006 07:15 AM
Apache: Alias is working on ssl vhost but not on mass vhost jonavogt Linux - Software 0 06-07-2005 02:05 PM
any one willing to share dynamic ip software and vhost.conf information? knightdog Fedora 3 11-09-2004 09:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration