php - Mutliple sites on same server sharing code -


I am creating a series of about 5 sites, they need to run all on the same system. I am planning to make them all points on the same server, then used to use on the basis of that domain, different content / styles will be used. Therefore, it is essentially going to have 5 or very different retail sites specializing in a particular product type.

But all using the same back-end code so that it is very easy to maintain. I have never set anything like this before and want to know that if there is any information, then I should consider or know a good place which tells me how to do this?

Apart from this, we are not hosting ourselves, but go through a hosting company (if that is the case).

Thank you!

Very straight forward to write to me:

There is just one directory:

  / post / text "itemprop =" text "var / www / sitelibraries / foo.php  

or other appropriate directory. After that

  /var/www/site1/foo.php/var/www/site2/foo.php  

and default set up PHP () in class loading so that the specialist site provides a client immediately ... This will do the default search of the site's local library (for expert overrides) and then in shared libraries. You can also arrange the material in this way.

A brief explanation, but I have a hard overview of how to deal with it. If you do not have to worry about the two sites that share permissions (I think the clients do not edit the code. should do) .

Remember: Your per-site code should be special to the default code base (OOP is great for this). Of course, shared, of course, the shared code-base should be aware that it has been shared, so things like log should specify which specific site library is used Is doing, when there is an error and all this.

Good luck


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -