To replicate your application files (.php, .htm, .css, .js, and so on) put them in some directory that is not under /www/zendphp7zendphp74. Use Alias or Virtual Host in your Apache config to use your application out of this directory. Files output by your application, like PDF, spreadsheets, and other kinds of files your app produces that are stored on the IFS, should all be located outside the registered directories. This will allow you to replicate those files safely.
If you wish to retain sessions on failover, you can specify a sessions directory outside of the Zend Server directory server by setting the session.save_path directive. Remember this setting needs to be changed on both machines. You may also consider just not replicating sessions if session loss does not have a major impact when using your application. |