Answer the question
In order to leave comments, you need to log in
Is there a bash script that installs multiple types of webserver on Ubuntu?
Hello. It is necessary to write a Bash script that installs several types of web servers on Ubuntu 20.04, such as:
PHP mode of operation:
1. As an Apache module
2. CGI (Apache + Nginx)
3. FastCGI (Nginx + PHP-FPM)
Native must be installed PHP version 7.4 with cli. Alternative PHP versions are also required from version 5.2 to 8. The database server should be set to 8 by default, and alternative database versions such as MariaDB, PostgreSQL, MangoDB and old versions of MySQL from 5.2 to 5.7 should be available through docker.
Well, in conclusion, this whole thing should be installed from a private repository, either a secure file server, or a private Git repository.
Tell me where to start? Are there similar bash scripts to look at the code itself and understand how to move? What is the best environment to use for testing? Will Vagrant work with Ubuntu 20.04?
Answer the question
In order to leave comments, you need to log in
You need docker. Lift as many containers as you like and don't suffer.
There is no "one bash script" solution.
Only php 5.2-5.4 you will have to build it yourself, in the hub, starting from 5.5+
docker pull php:5.5.27-fpm ...
docker pull php:5.6-fpm ...
docker pull php:7.0-fpm ...
docker pull php:7.1-fpm ...
docker pull php:7.2-fpm ...
...
If there are still old versions in ppa:ondrej, then the script
in two lines:
1. add the appropriate repository.
2. install the corresponding module of the corresponding version from it
3. If it is PHP-FPM, run it and add it to autorun.
https://unixhost.pro/clientarea/knowledgebase/46/u...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question