Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
21 views49 pages

VPS Configuration

The document provides a step-by-step guide for setting up a server, including creating a free account, configuring a VPS, and installing essential software like Apache, PHP, and MySQL. It details commands for updating sources, installing packages, and managing server settings. Additionally, it includes instructions for creating a database and loading data to the front end.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views49 pages

VPS Configuration

The document provides a step-by-step guide for setting up a server, including creating a free account, configuring a VPS, and installing essential software like Apache, PHP, and MySQL. It details commands for updating sources, installing packages, and managing server settings. Additionally, it includes instructions for creating a database and loading data to the front end.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 49

Achira Dasanayaka

Server
Server
Configuration
Configuration
Sign up
Sign up
visit to following link and create a new
free account.

Create account
Verify Email
Verify Email
Add Billing
Add Billing Profile
Profile
Add Billing
Add Billing Profile
Profile
Dashboard
Dashboard
My Clouds
My Clouds >
> Servers
Servers
Server Management
Server Management

Click to
create a
new VPS‌
Create a
Create a New
New Server
Server
Create a
Create a New
New Server
Server
Create a
Create a New
New Server
Server
Create a
Create a New
New Server
Server
Create a
Create a New
New Server
Server
Create a
Create a New
New Server
Server
Create a
Create a New
New Server
Server

Ip Address‌
Configure VPS
Configure VPS

Step 1: Access Your Server via SSH


First, you need to access your server via SSH. You can use an SSH client like
PuTTY (for Windows) or the terminal (for macOS/Linux).

Download PuTTY
Configure PuTTY
Configure PuTTY

Ip Address‌
Configure PuTTY
Configure PuTTY

Root‌

Password‌
Configure PuTTY
Configure PuTTY
Configure VPS
Configure VPS

type “yes”
and press
enter‌
Configure VPS
Configure VPS
Configure VPS
Configure VPS

type your
server IP
address
and press
enter‌
Install Apache
Install Apache Server
Server
Install Apache
Install Apache Server
Server

$ sudo apt update‌


update sources
update sources list
list
$ sudo nano /etc/apt/sources.list‌
deb http://archive.ubuntu.com/ubuntu/ focal main restricted
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted

deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted


deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted

deb http://archive.ubuntu.com/ubuntu/ focal universe


deb-src http://archive.ubuntu.com/ubuntu/ focal universe
deb http://archive.ubuntu.com/ubuntu/ focal-updates universe
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates universe

deb http://archive.ubuntu.com/ubuntu/ focal multiverse


deb-src http://archive.ubuntu.com/ubuntu/ focal multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates multiverse

deb http://security.ubuntu.com/ubuntu focal-security main restricted


deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://security.ubuntu.com/ubuntu focal-security universe
deb-src http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse
deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
Press‌ ‌CTRL+O , Enter , CTRL+X‌
$ sudo apt update‌
Install Apache
Install Apache Server
Server
$ sudo apt-get install apache2‌

Yes‌
Install Apache
Install Apache Server
Server
Install Apache
Install Apache Server
Server

Chek Status :-‌ $ sudo systemctl status apache2‌

To Start :-‌ $ sudo systemctl start apache2‌


Install Apache
Install Apache Server
Server
Install PHP
Install PHP
Install PHP
Install PHP
Install PHP
Install PHP

$ cd /var/www/html‌
$ nano info.php
info.php‌

Press‌ ‌CTRL+O , Enter , CTRL+X‌


Install PHP Modules
$ sudo apt-get install php7.4-mysql php7.4-gd php7.4-curl‌
Install PHP
Install PHP

To remove test file :- $ s u do r m i nfo . p h p


Create a
Create a login
login page
page

$ to u c h i n dex . p h p
$ ls

$ nano index.php
Install MySQL
Install MySQL
$ s u do a pt- g et i n s t a l l m y s q l - s e r v e r
Install MySQL
Install MySQL
$ s u do m y s q l - u ro ot - p

m y s q l > a lte r u s e r ro ot @ lo c a l h o s t
i de nt i f i e d b y ' Ac h i ra 1 23 ' ;
Changes the authentication plugin for the
root user from whatever it's currently
using to mysql_native_password

m y s q l > A LT E R U S E R ' ro ot ' @ ' lo c a l h o s t '


I D E N T I F I E D W I T H m y s q l _ n a t i v e _ p a s s w o rd
BY ' Ac h i ra 1 23 ' ;

m y s q l > F LU S H P R I V I L EG ES ;
Install MySQL
Install MySQL
$ m y s q l - u ro ot - p
mysql> show databases;
Create database
Create database
m y s q l > c re a te d a t a b a s e c l a s s ;
Create table
Create table
Insert data
Insert data
Load data
Load data to
to Front
Front End
End
Thank you!
Thank you!
Achira Dasanayaka

You might also like