tags:

views:

51

answers:

1

Hi,

I have an apache(httpd) up and running on one machine. Now i want to move configuration details to another machine. The other machine should have the appropriate changes like creating apache home directories, shares created, etc..

I want to automate the above process.. How do i do that?

--Anandan

+1  A: 

I don't know of any utility or script that will do that for you. There are probably too many variables depending on your configuration.

Why do you want to automate the process? If it's because you expect to do it more than once, here's what I recommend you do:

  1. Copy all the files to the new machine with scp. This should cover 95% of your configuration.
  2. Perform any other configuration necessary, but do it all with the command line.
  3. Copy your history into a script and keep it handy for next time. It will probably require some tweaking to get it to run on its own.
Jeremy Stein
@jeremy.. actually copying data is fine with me.. but the main automation i need is moving the configuration details..
Anandan
I have a doubt in your reply .."Perform any other configuration necessary, but do it all with the command line." .. how to do that in command line? I thought of editing configuration in the new server...can you brief on that?
Anandan
Most of your configuration is in the httpd.conf file. It would be picked up in the file copy. If you had some file or directory links or something else like that, you'd need to add the commands for making those changes.
Jeremy Stein