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

0% found this document useful (0 votes)
10 views4 pages

1743771660892-CHN Assignment Guidelines

The document outlines the process of setting up a Virtual Private Server (VPS) for hosting a web application, including the installation of Apache2, MySQL, and PHP. It details the steps for creating the VPS, connecting remotely, and configuring each component, along with explanations of their purposes and functionalities. The final submission requires a user guide and a video demonstrating the setup process and verifications.

Uploaded by

nikoldissanayake
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)
10 views4 pages

1743771660892-CHN Assignment Guidelines

The document outlines the process of setting up a Virtual Private Server (VPS) for hosting a web application, including the installation of Apache2, MySQL, and PHP. It details the steps for creating the VPS, connecting remotely, and configuring each component, along with explanations of their purposes and functionalities. The final submission requires a user guide and a video demonstrating the setup process and verifications.

Uploaded by

nikoldissanayake
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/ 4

Scenario

You are tasked with setting up a Virtual Private Server (VPS) to host a web application
consisting of three key components:
1. A web server (Apache2)
2. A database (MySQL)
3. A scripting language (PHP)
The administrator must be able to remotely connect to the VPS, install and configure these
services, manage a database with user data, and verify functionality through a web browser. Your
task is to configure the VPS using CLI commands, following a structured process to ensure a
fully functional web hosting environment.
Assignment Instructions
1. Introduction to VPS
Explain the basics of a Virtual Private Server and its benefits. The explanation should cover key
concepts and why a VPS is useful for hosting web applications.
2. Creating a VPS
• Create a VPS using any VPS provider.
• Connect to the VPS remotely using SSH client.
• Explain each step clearly, including the selection of the VPS provider, configuration
settings, and connection process.
3. Installing Apache2
• Update the package source list.
• Install Apache2.
• Check the Apache2 service status using the terminal.
• Open the default Apache page in a web browser to verify installation.
• Explain the purpose of Apache2, how it works, and the significance of each command
used in the setup.
4. Installing MySQL
• Install MySQL.
• Check the MySQL service status using the terminal.
• Change the MySQL root password.
• Modify the authentication plugin for the root user to mysql_native_password.
• Create a database named vps.
• Create a table named user in the vps database with the following structure:

Column Data Type Constraints


id AUTO_INCREMENT PRIMARY KEY
username VARCHAR(50) NOT NULL
password VARCHAR(50) NOT NULL
status TINYINT NOT NULL, DEFAULT 1

• Insert the following data into the user table:

Username Password Status


Student1 Student@123 1
Student2 Student@456 0

• Explain each step in the database setup process, the purpose of the authentication plugin,
and how the database interacts with the web application.

5. Installing PHP
• Install PHP.
• Install required PHP modules (mysql, gd, curl).
• Create an info.php file and view it through a browser.
• Delete the info.php file after verification.
• Explain the role of PHP in web development, why specific modules are installed, and the
function of the info.php file in testing the setup.

Final Submission

Ensure that both the Setup and Configure User Guide document and the explaining video
meet the submission requirements and are uploaded to the Student Portal. The video should
demonstrate all steps clearly, including CLI commands and browser-based verifications. Each
step must be explained thoroughly to show understanding.

You might also like