So here is the schema of what you get on EZstack:
Once you have an account you get a virtual server where Apache is up & running and in which you can deploy your PHP and HTML code. You also get a second virtual server where MySQL is up & running and that you can populate with your data. Servers can only communicate through the network - each has its own IP address so when populating MySQL, make sure that the Apache virtual server - named zoneApache* - and the cloned virtual server - named cloneApache* - can actually access to the database. Assuming you where allocated zoneApache2 (hence cloneApache2) you should add something similar to the following commands in your script when creating you database:
GRANT ALL PRIVILEGES ON MyDB.* TO dbAdmin@zoneApache2 IDENTIFIED BY 'adminPassword';
GRANT ALL PRIVILEGES ON MyDB.* TO dbAdmin@cloneApache2 IDENTIFIED BY 'adminPassword';
Now what is the cloned virtual server?
It's yet another v-server where Apache is running. It does not exist when you first connect to your account, but you can provision it within a click by using the EZstack web interface and it shares the application code - PHP & HTML located under htdocs - with the first Apache virtual server: the application code is actually located on a ZFS file system that is NFS mounted in the two virtual servers.
As soon as the cloned virtual server is provisioned, the load balancing is activated. This is a simple L7 load balancing performed on the HTTP requests, so if you are using another protocol than HTTP load balacing won't work.
The interest of this infrastructure is that you can test if your application can scale horizontally, by adding more servers. Note that EZstack is not designed for measuring performance or running benchmark, but it is good enough to perform functionnal tests and to see how scaling is easy with Solaris zones and containers.