View Full Version : Install cjoverkill in several sites

23rd May 2013, 11:32 AM

I'd like to know which files do I have to copy to a second added site.
I mean, I think something else than in.php and out.php.

Do I have to copy all the files?

Thank you very much

24th May 2013, 12:53 PM
You can copy all the files, but you can safely skip the cjadmin directory.
It's only needed on one site.

Remember that you must copy the cj-conf.inc.php file from your main site to the other ones. After the install that file has the database connection info, so it's needed on the other sites.

26th May 2013, 03:10 PM
Thank you very much.

In the same line...

Could I use the same installation for severan sites under different ips, if I change "localhost" in the config file for the url of the database?

Thank you very much again!

27th May 2013, 05:15 PM
Yes, it will do the work.
You can leave it as localhost if the sites are on the same server regardless of the IPs.
CjOverkill uses site name and not IP to determine what site it's servicing, so you can have a single site using several IPs too.

Take in mind that there must be low latency link between servers (they must be in the same LAN or datacenter). It's a MySQL limitation because MySQL tends to crash connections if they have big latency.

Take a look at the CjOverkill manual for clustered configurations and recommended database variables.