R
R
Roman2019-02-03 14:13:43
bash
Roman, 2019-02-03 14:13:43

What bash script do you use to quickly deploy a LAMP stack on Ubuntu 18.04?

Hello.
Unexpectedly discovered that VestaCP does not work correctly for Ubuntu 18.04.
Raising LAMP with mail by hand frankly breaks (although today it will probably have to).
But for the future:
- What can you advise for automating this task, so that with phpmyadmin already patched under PHP 7.2, virtual hosts, a user in the www-data group, preference and young ladies?
Something that you use yourself. Launched - and it itself installed and configured everything.
Thank you.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
R
Roman, 2019-02-03
@procode

So far I've found this:

$ sudo apt install tasksel
$ sudo tasksel install lamp-server

not a panacea, but still much faster.

K
Kirill Mokevnin, 2019-02-03
@toxicmt

Three tools are currently used for rapid deployment:
1. Terraform - cloud infrastructure management. Servers are raised through terraforms, DNS is configured and much more. Cluster raised, cluster lowered. Works with all cloud providers and key hosts.
1. ansible - configuration management of the local machine or remote servers. A must have tool for every developer. Live example https://github.com/hexlet-basics/hexlet_basics/blo... Through it you can deploy https://docs.ansible.com/ansible/latest/modules/de... also with one button
1. Docker is the next step after ansible. Used either in conjunction with Ansible or with orchestration systems such as kubernetes.
Ansible, a dumb tool that takes half a day to learn. Then automate everything that comes to hand, setting up servers, deploying a local environment, and the like.
ps See what else besides deploying with one button, it would be nice to do https://guides.hexlet.io/check-list-of-engineering...

B
Boris Syomov, 2019-02-03
@kotomyava

I recommend to forget about phpmyadmin at all, and use some Heidisql via ssh tunnel. And use external mail via smtp, so as not to deal with its maintenance. Also, use Nginx and Php-fpm.
The rest is simply installed through apt, and you still need to adjust it to the situation. And if you want more automation, then it’s better to consider ansible and similar things that can give you enough configuration flexibility, unlike a bash script.

R
Roman Ratkin, 2019-02-03
@Hanharr

Two options:
In principle, these options can be successfully combined.

D
dreamerz, 2019-02-03
@dreamerz

If specifically the answer is about which bash script, I still use mine, sawn on my knee -
(for Debian)
#start.sh
adduser user
debootstrap stable /stable-chroot deb.debian.org/debian
...
further automatic entering the chroot and installing all the necessary scripts
Of course, this is already the last century, those who wrote before me correctly said everything how the modern sysad works.

E
Eddie Smith, 2019-02-04
@L33tB0t

devilbox.org - chose the distribution in .env and launched it with one command.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question