Besides changing the paths on your configuration file(s), you may also need to specify the LD_LIBRARY_PATH environment variable if the dependencies reside on other paths. I have managed to build and install on a user directory (like /home/username/opt/myapp/apache2) and then copy to another machine under /opt/apache2 and run from there. I even build several dependencies like openssl, apr, apr-util, and other libraries under /home/username/opt/myapp, and deploy them also under /opt/myapp/openssl, /opt/myapp/apr, etc. This is possible by taking care of setting LD_LIBRARY_PATH to the appropiate directories. -Jorge -----Original Message----- From: Brian Mearns [mailto:mearns.b@xxxxxxxxx] Sent: Wednesday, January 14, 2009 8:33 AM To: users@xxxxxxxxxxxxxxxx Subject: Re: Re: Can I just compile once and copy the installed server to multi machines? On Wed, Jan 14, 2009 at 8:21 AM, Dan Poirier <poirier@xxxxxxxxx> wrote: > Dan Poirier <poirier@xxxxxxxxx> writes: > >> The compiled-in default paths can't be changed, but you can use a >> configuration file that sets a different ServerRoot and that should >> override the defaults for most paths. You might run into a few other >> paths that need to be overridden explicitly. > > Also, if you're using suEXEC, that will have to be recompiled. Its > compiled-in paths cannot be overridden, for security. > > -- > Dan Poirier <poirier@xxxxxxxxx> > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > Just a quick thought: I know apache takes a bit to build, but you probably could have built it on several machines in the 6 hours or so it took to get a response to this. That would be my preferred option; I wouldn't trust copying binaries to another machine. Even if it appears to work now, who knows what may show up in the future as missing dependencies, etc. On the other hand, there are pre-packaged apache installations available for all major distros. For instance, on fedora, you can do `yum install httpd` (I think httpd is the name of the package, otherwise it's probably apache). The down side is you don't get to customize the compilation. -Brian -- Feel free to contact me using PGP Encryption: Key Id: 0x3AA70848 Available from: http://pgp.mit.edu/ --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx