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.
1.3 Select Instance Configuration
- Location: Choose the desired server location. For this example, we select “New York, USA”.
- 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.
- OS: Select “Ubuntu 22.04” as the operating system.
1.4 Finalize Instance Details
- Additional Options: Leave these unchecked unless you have specific needs.
- Hostname: Enter a name for your instance, such as “Tutorial Ubuntu”.
Click “Create Instance” to deploy the instance.
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
Step 3: Install Apache
Install the Apache web server using the following command:
apt install apache2 -y
Enable and start the Apache service:
systemctl enable apache2
systemctl start apache2
Step 4: Install MySQL
Install MySQL server using the command:
apt install mysql-server -y
Secure your MySQL installation:
mysql_secure_installation
Follow the prompts to secure your MySQL server.
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.
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.