Answer the question
In order to leave comments, you need to log in
What are the scripts for setting up hosting?
What are the scripts for setting up hosting? I turned to one administrator for services, he installed this thing - web-cp.ru/
It can:
- create a domain,
- create a user in the system (with FTP access to its folder),
- create a mysql user,
- install wordrpess and some other engines for the created site (with grief in half).
But this "script" seemed to me somehow damp or something...
Initial data:
- bare VPS on CentOS or Ubuntu.
What you need:
a console application (and not combines like ISPManager), which would be able to:
1. Create domains,
2. Create users in the system with binding to the domain web folder with SSH/FTP access,
3. Install software of your choice (MySQL or Percona, Nginx, various PHP versions).
I would be glad if you share who uses what and what are the pros / cons of this?
Answer the question
In order to leave comments, you need to log in
What about the meaning?
There is no universal script, it needs to be finished for each situation, otherwise it will not work.
For a one-time setup by hand, it's faster and more convenient to set up than to cut a script.
Theoretically, the script can help if you need to create many hosts of the same type, but this is in theory, but in practice there is ansible, there are containers, there are virtual machines.
There are no bash scripts ready for your needs and most likely there won't be. most don't need it.
There are "knee" scripts like those that you brought, you can finish them to suit your needs.
Either use hosting panels with a Web interface, or do everything through the linux console.
Most panels have an API, and through it you can do a lot, write a simple script that solves your problems through this API is not difficult - but the question arises - why then keep a hosting panel?
PS For those who actively recommend VestaCP - read about the vulnerability:
11/04/2017 11:37 Vulnerability in the control panel...
repos.1c-bitrix.ru/yum/bitrix-env.sh
- tailored for Bitrix but works with any sites, just set the standard mbstring.
https://serverdoma.ru/33/764
- puts ispconfig3 (the script is paid), but it does a lot of things so that you can throw 10 bucks, and one person saws it, so you can negotiate with it.
Have you looked at CentminMod? This is true, in fact, one person is sawing, but in recent years it has been quite active.
You can do this through docker-compose. Well, that is, for each user, create their own compose file, which will contain the necessary applications (php, mysql, ssh, ftp, etc.), flexibility will be 100% and each user will be able to configure the versions he needs and they will not be different from each other. conflict with another.
Sorry, but it’s not entirely clear why the goat BAYAN? Do not load VPS? it is possible, but sooner or later you will still be faced with the need to add additional functions, a mail server, FTP, even attach a certificate to the domain.
Recently, I discovered the FREE BrainyCP panel for myself, it surpasses Vesta in many ways, although initially you need to dig deeper into the settings. Excess can be disabled so that it does not consume resources. There, even alternative versions of php can be configured as in ISPmanager.
not a bash script, but convenient and functional
https://brainycp.com
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question