httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jorge Medina" <jmed...@e-dialog.com>
Subject RE: [users@httpd] Re: Can I just compile once and copy the installed server to multi machines?
Date Wed, 21 Jan 2009 16:00:40 GMT

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@gmail.com] 
Sent: Wednesday, January 14, 2009 8:33 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] 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@pobox.com> wrote:
> Dan Poirier <poirier@pobox.com> 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@pobox.com>
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message