Install and Configure a complete web Server Using a Bash Script in ubuntu ?

Guys, i want to know if someone already did or have a bash script to install a web server in ubuntu. I mean there’s a lot to work to do to install and to configure and take care of the security issues ( almost 2 hours ) Anyone did a bash script ? It will be great !!

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

We have scripts in our user-data repository that can configure a number of different software stacks. These are intended to be used in the user-data box on the create page in the control panel or via the API. Some of these are yaml cloud-init scripts but many others are bash scripts which could also be run from an existing droplet.

While the LEMP and LAMP stack scripts are yaml our WordPress script is bash and could be edited fairly easy to remove the steps that install the WordPress software after the web and database services have been installed.

2 hours? This makes me unsure now… I am working from a list just typing all those commands in and it usually only takes a fraction of that. Could you please describe what you are doing? Maybe I am not being secure enough…

I’ve the same need and still working onto this script to begin support both ubuntu and centos. But its currently only support ubuntu server 9.04 - 15.10, its still under alpha test because there’s still need to update package repository source because itself is always changing. I had tested and it worked on ubuntu 13.04 - 14.10.

Here’s the project :

Regards, Ian