Skip to main content
https://catalogartifact.azureedge.net/publicartifacts/pcloudhosting.lamp-4433a754-6f20-49c4-9270-945c986d6cf2/image1_pCloud216.png

LAMP

by pcloudhosting

(1 ratings)

Version 8.3.6 + Free Support on Ubuntu 24.04

LAMP 8.3.6 is a complete web server stack that includes Linux, Apache, MySQL, and PHP 8.3.6. It is used to host dynamic websites, PHP-based applications, CMS platforms, and database-driven web applications.

The solution provides a ready-to-use LAMP environment on Ubuntu for developers, administrators, and businesses who need a reliable web hosting platform. It includes Apache for serving web pages, MySQL for database management, and PHP 8.3.6 for running server-side web applications.

Product Type: Web Server Stack / Application Platform

Features of LAMP 8.3.6:

  • Preconfigured Linux, Apache, MySQL, and PHP stack.
  • Apache web server for hosting websites and web applications.
  • MySQL database server for application data storage.
  • PHP 8.3.6 runtime for PHP-based applications.
  • Suitable for CMS platforms, custom PHP applications, and development environments.
  • Supports HTTP and HTTPS web access.
  • SSH-based server administration.

Installation process for LAMP 8.3.6
$ sudo su
$ apt update && apt upgrade -y
$ apt install apache2 -y
$ systemctl enable apache2
$ systemctl start apache2
$ apt install mysql-server -y
$ systemctl enable mysql
$ systemctl start mysql
$ mysql_secure_installation
$ apt install php8.3 php8.3-cli php8.3-common php8.3-mysql php8.3-curl php8.3-xml php8.3-mbstring php8.3-zip libapache2-mod-php8.3 -y
$ a2enmod php8.3
$ systemctl restart apache2

Version check commands
$ apache2 -v
$ php -v
$ mysql --version
$ lsb_release -a

Testing process for LAMP 8.3.6
$ echo "<?php phpinfo(); ?>" > /var/www/html/info.php
$ curl http://localhost/info.php

Access the Apache web server:
Open your browser and navigate to:
http://your-server-ip

Access the PHP test page:
http://your-server-ip/info.php

Database connection testing
$ mysql -e "CREATE DATABASE lamp_test;"
$ mysql -e "CREATE USER 'lampuser'@'localhost' IDENTIFIED BY 'StrongPassword@123';"
$ mysql -e "GRANT ALL PRIVILEGES ON lamp_test.* TO 'lampuser'@'localhost';"
$ mysql -e "FLUSH PRIVILEGES;"

Create database test file:

cat > /var/www/html/dbtest.php <<'EOF'
<?php
$host = "localhost";
$dbname = "lamp_test";
$username = "lampuser";
$password = "StrongPassword@123";

try {
    $conn = new PDO("mysql:host=$host;dbname=$dbname", $username, $password);
    echo "LAMP database connection successful.";
} catch (PDOException $e) {
    echo "Database connection failed: " . $e->getMessage();
}
?>
EOF
Access the database test page:
http://your-server-ip/dbtest.php

Expected output:
LAMP database connection successful.

Required ports:

  • 22/tcp - SSH access
  • 80/tcp - HTTP web access
  • 443/tcp - HTTPS web access
  • 3306/tcp - MySQL database access, recommended for internal use only

Firewall configuration
$ ufw allow OpenSSH
$ ufw allow "Apache Full"
$ ufw enable
$ ufw status

After testing, remove the PHP information page for security:
$ rm /var/www/html/info.php

Disclaimer: LAMP 8.3.6 is provided as a preconfigured open-source web server stack. Users are responsible for securing the server, managing application data, configuring SSL certificates, updating packages, and validating application compatibility before production use.