Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for a set of bash scripts which can help me to automate the procedure of getting LAMP server up and running.

Typically what I am looking for is boot a VPS (say linode) with Ubuntu 10.04, upload the script with ssh and run it. The end product should be a properly configured LAMP server with virtual hosts.

Can somebody point me to a trusted source to obtain such a script?



share|improve this question
what exactly do you want this script to do? – stew Dec 16 '11 at 13:21
up vote 1 down vote accepted

You could try Ansible, which is a far simpler implementation of configuration management than Chef or Puppet, it doesn't require anything except SSH access to the server.

Ansible is a radically simple model-driven configuration management, deployment, and command execution framework. Other tools in this space have been too complicated for too long, require too much bootstrapping, and have too much learning curve. Ansible is dead simple and painless to extend.

I have created a playbook for setting up a LAMP server on Ubuntu 12.04 that you can use as a base for your own. Take a look, it's all YAML and Python syntax, very straightforward.

share|improve this answer

Have a look at puppet. Its probably the most widely used solution for what you are trying to do. Its probably going to be much more complex to get started than what you are looking for, but unfortunately, since so many hosting deployments are unique, I think you are going to have trouble finding a magic bullet to your solution.

If you don't like the looks of puppet, there are other similar solutions, such as cfengine or chef.

share|improve this answer
Thanks for replying. Checked them out. All of them seem to full blown server management solutions. All I need is handy bash/perl script which I can modify on my own. I searched the net a lot, but Google has let me down on this one. – Pritam Barhate Dec 16 '11 at 12:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.