A
A
Andrej Kopp2021-04-13 13:03:24
Layout
Andrej Kopp, 2021-04-13 13:03:24

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
607569d02df7b453107295.png

2. CGI (Apache + Nginx)
607569d85d70d535527327.png

3. FastCGI (Nginx + PHP-FPM)
607569de1c408539489385.png

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

4 answer(s)
A
Alexander Belkevich, 2018-06-25
@AlexBelkevich

Slick slider can do everything)

A
Artyom, 2018-06-25
@SlampD

I love Flickity.

M
Maxim Babichev, 2021-04-13
@REZ1DENT3

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 ...
...

https://hub.docker.com/_/php?tab=description&page=...

A
Alexey Dmitriev, 2021-04-13
@SignFinder

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 question

Ask a Question

731 491 924 answers to any question