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

June 23, 2016 2.6k views
Apache Linux Basics 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 !!

2 Answers

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.

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 old-releases.ubuntu.com itself is always changing.
I had tested and it worked on ubuntu 13.04 - 14.10.

Here's the project :
https://github.com/IanHersanto/WebServerAutoSetup

Regards,
Ian

Have another answer? Share your knowledge.