I am a little new to PHP and EC2 so bear with me. I need to setup two instances on EC2 running Apache and PHP, that in turn communicate with a third instance running MySQL server. The two Web instances will sit behind a load balancer.
1) How do I synchronize the files (php, conf, etc) in the different web server instances? What is the standard practice for doing such synchronization in a Web server farm and can this be simplified by running on EC2?
2) Most Web application architectures contain a presentation layer, business logic layer and the storage layer. Is there such an application server for PHP where I can continue to use Apache as a front end web server? (for example, running EJBs on JBoss and using Apache as the front end web server). Does the Apache/PHP solution scale well enough?
Cheers
Brian