I was asked by my boss to make a bash script that could install Apache, PHP and MySQL (AMP) binaries in a Linux box (just some common linux flavors).
Compile and install all by the sources unfortunately is not an option.
So, I have to do this. I thinked one possible solution: try to grep
uname -a trying to find something that identifies the distro, and so, run apt-get, yum or another similar command, but it's complicated, since I need to install these distros and try it one by one.
Could you tell me if this is a good idea or if there's a better idea?