Script Auto Install VPS

 

Sc Auto Install VPS


#!/bin/bash


# Update and upgrade system

sudo apt update

sudo apt upgrade -y


# Install necessary packages

sudo apt install -y apache2 php mysql-server


# Set up Apache

sudo systemctl enable apache2

sudo systemctl start apache2


# Set up MySQL

sudo mysql_secure_installation

sudo systemctl enable mysql

sudo systemctl start mysql


# Install any other required packages


# Download and configure any necessary scripts or software


# Set up firewall rules

sudo ufw allow 80

sudo ufw allow 443

sudo ufw enable


# Configure any necessary settings


# Restart Apache and MySQL

sudo systemctl restart apache2

sudo systemctl restart mysql


# Check the status of the services

sudo systemctl status apache2

sudo systemctl status mysql


# Finish installation

echo "VPS auto install script completed."

Komentar

Postingan populer dari blog ini

Cara membuat VPS Gratis di Amazone

Cara menghubungkan domain ke VPS

Cara Membuat RDP Gratis