Loading...

Knowledge Base
,

Bluehost Self-Managed VPS: Reimage Your Server for LAMP Stack Installation

The LAMP Stack—Linux, Apache, MySQL, and PHP—is one of the most popular platforms for hosting dynamic websites and web applications. If you have a Bluehost Self-Managed VPS, you can use the Bluehost Portal to easily install and manage these components. This article will guide you step-by-step on how to install the LAMP stack using the Bluehost Portal.

What is the LAMP Stack?

  • Linux: The operating system that runs your VPS server.
  • Apache: A reliable and widely used web server software.
  • MySQL: The database engine for managing your website’s data.
  • PHP: A server-side scripting language to create dynamic content.

Together, these components create a powerful environment for hosting a variety of web applications.

Install LAMP Stack Using the Bluehost Portal

To install LAMP Stack:

  1. Log in to your Bluehost Portal.
  2. Click Hosting in the left-hand menu.

    Bluehost Portal - Hosting Tab
     

  1. Click the Manage button on the Self-Managed VPS package.

    BH AM - Select Server - Manage
     

  2. Navigate to the Server Image section, then click the Reimage button.

    BH AM - Manage Server - Overview - Reimage button
     

  3. In the Reimage server page, select Applications.

    BH AM - Manage Server - OS & Applications - Install Application
     

  4. From the list of available applications, find LAMP Stack and click Select.

    BH AM - Install - LAMP
     

    • On the pop-up message, type reimage in the field, then click Proceed.

      install LAMP Stack popup
       

  5. Wait for a few seconds to complete the installation.

After you complete reimaging your server, your Self-Managed VPS hosting will begin provisioning.

How to Verify Your LAMP Stack is Running in Docker

Note: When you provision your server with the LAMP Stack application, Docker is automatically installed and configured for you. The entire LAMP stack (Apache, MySQL, and PHP) runs inside isolated Docker containers to maximize security and simplify management.

Use the steps below to confirm your LAMP stack is up and running, and to understand where your website files live.

  1. Connect to your VPS via SSH.
    Use your VPS IP and credentials with an SSH client:
    ssh root@your_server_ip
  2. Check if the LAMP Docker containers are running:
    docker ps

    You should see containers with images such as php:apache (web/PHP), mysql:latest (database), and possibly traefik:latest (proxy).

  3. Verify that Apache is serving content:
    In your browser, visit http://your_server_ip/. If you see the message “It works!”, Apache inside Docker is running and accessible.
  4. Confirm PHP is working:
    echo '<?php phpinfo(); ?>' > /tmp/info.php
    docker cp /tmp/info.php $(docker ps -qf "ancestor=php:apache"):/var/www/html/info.php
    
    docker exec $(docker ps -qf "ancestor=php:apache") rm /var/www/html/info.php
    
    1. Create a PHP info file on your VPS:
    2. In your browser, go to http://your_server_ip/info.php. You should see the PHP Information page, which confirms PHP is installed and functioning.
    3. For security, remove the test file afterward:

Summary

Using the Bluehost Portal simplifies the installation and management of the LAMP stack on your Self-Managed VPS. With Apache and PHP usually pre-installed, your main focus is setting up MySQL databases and uploading/configuring your PHP application. This powerful combination gives you full control over your hosting environment to build and deploy dynamic websites efficiently and securely.

Loading...