Use this method for freshly installed VPS and servers.
This script installs and configures all the necessary environment and Keitaro TDS on the server.
Clean server with CentOS 7 and higher and without control panels. For installation use the virtual server (VPS).
How to choose a server?
Read at the page How to choose server or hosting
Note: The server must be clean at the time when you start a script. Launch on the server with websites which were run or with control panel will entail unpredictable consequences.
Open your server by SSH and run:
curl -sSL http://keitarotds.com/install.sh | bash -s -- -l en
Then follow the script instructions. You will be prompted for server IP, the license key, domain (if SSL is necessary).
Installing on Azure VM
If you're using Azure or any other servers without direct root access:
curl -sSL http://keitarotds.com/install.sh | sudo bash -s -- -l en
Single-click installation will:
- Install the latest versions of Nginx, MariaDB, Redis, PHP 7
- Configure Nginx, PHP-FPM, MariaDB
- Install Monit to monitor Nginx, MariaDB and PHP-FPM
- Configure firewall
- Connect a free SSL certificate from Let's Encrypt (with automatic extension)
- Install Keitaro
Note: The script closes all ports except 22, 3333 (SSH port friendhosting), 80, 443. If your SSH is installed on a non-standard port, you will lose access to the console.
If the installation was cut short with an error
See the latest steps of installation. Try to identify and eliminate the cause. If you have a problem, please contact our technical support.
How to continue the installation?
Run again the installation command. All parameters which were previously entered will be restored automatically.
How to Add Additional Sites to the Server?
To add a website that should work separate from Keitaro, use this command:
curl -sSL https://keitarotds.com/add-site.sh | bash -s
This command creates a new virtual host, so you won't attach the domain to Keitaro anymore.
How to Attach Domains to the Keitaro?
Add an A-record in the domain DNS, like the following:
@ IN A 184.108.40.206
Replace “220.127.116.11” to your server IP. After several hours, try to open the admin panel from that domain
How to Update the Server Environment?
yum update yum upgrade
How to add SSL after installation?
If you chose not to install the certificate when you first start, you can install it later using the command
curl -sSL https://keitarotds.com/enable-ssl.sh | bash -s -- domain1.com domain2.com
The script will not work if the server was not configured by the script of single-click installation.
How to Share install.log?
You can upload the file to 'transfer.sh', just run this command:
curl -H "Max-Downloads: 1" -H "Max-Days: 5" --upload-file ./install.log https://transfer.sh/install.log
You'll get the download link. It allows just single download, after that it delete the file.
Where is Keitaro Installed?
How to Add Domains/Mirrors to Keitaro
Add an A-record to the domains DNS:
@ IN A x.x.x.x
“x.x.x.x” is your server IP.
How to establish an FTP connection to a server after the installation
Use WinSCP application. It allows to work with files via FTP as well as SSH.