In this guide, we will walk you through the process of deploying a cloud instance on Shape.host and installing the LAMP stack on Ubuntu 22.04. The LAMP stack includes Linux, Apache, MySQL, and PHP, which are essential for web development and hosting.

Step 1: Deploy a Cloud Instance on Shape.host

1.1 Log in to Shape.host

Log in to your Shape.host account to access the dashboard.

1.2 Create a New Instance

Navigate to the “Resources” section and click on “Create”. From the dropdown menu, select “Instances” to create a new cloud server.

Shape.host Resources dashboard showing the Create menu and instance rebuild controls.

1.3 Select Instance Configuration

  1. Location: Choose the desired server location. For this example, we select “New York, USA”.
  2. Plan: Select a suitable plan based on your requirements. Here, we choose the plan with 1 core CPU, 2 GB Memory, and 50 GB SSD disk space.
  3. OS: Select “Ubuntu 22.04” as the operating system.
Shape.host Create New Instance form with the available data center locations.
Shape.host instance form with a server plan and Ubuntu image selected.

1.4 Finalize Instance Details

  1. Additional Options: Leave these unchecked unless you have specific needs.
  2. Hostname: Enter a name for your instance, such as “Tutorial Ubuntu”.

Click “Create Instance” to deploy the instance.

Shape.host instance form showing hostname, instance count and the Create Instance button.

1.5 Access the Instance

Once the instance is created, access it via SSH using the provided IP address and credentials.

Step 2: Update the System

Once logged in, update the system packages to the latest versions.

apt update && apt upgrade -y
Terminal showing APT package management commands and output.

Step 3: Install Apache

Install the Apache web server using the following command:

apt install apache2 -y
Terminal showing systemd service management commands or output.

Enable and start the Apache service:

systemctl enable apache2
systemctl start apache2
Terminal showing systemd service management commands or output.

Step 4: Install MySQL

Install MySQL server using the command:

apt install mysql-server -y
Terminal showing systemd service management commands or output.

Secure your MySQL installation:

mysql_secure_installation

Follow the prompts to secure your MySQL server.

Terminal showing systemd service management commands or output.

Step 5: Install PHP

Install PHP and necessary modules:

apt install php libapache2-mod-php php-mysql -y

Verify the installation by creating a PHP info file:

echo "<?php phpinfo(); ?>" > /var/www/html/info.php

Access this file via your web browser by navigating to http://your_server_ip/info.php. You should see the PHP information page, confirming that PHP is installed and working correctly.

Terminal showing APT package management commands and output.
Terminal showing systemd service management commands or output.

Congratulations! You have successfully deployed an Ubuntu 22.04 instance on Shape.host and installed the LAMP stack. Your server is now ready to host web applications. Be sure to remove the info.php file after verification to avoid exposing sensitive information.

Shape.host provides robust Cloud VPS services that are ideal for deploying scalable and efficient web servers. Their intuitive interface and reliable infrastructure make it an excellent choice for both beginners and seasoned professionals. Explore their services to take advantage of powerful cloud solutions for your next project.Shape.host provides robust Linux SSD VPS services that are ideal for deploying scalable and efficient web servers. Their intuitive interface and reliable infrastructure make it an excellent choice for both beginners and seasoned professionals. Explore their services to take advantage of powerful cloud solutions for your next project.