How to Install LAMP Stack on Your VPS (Ubuntu)

Install Apache, MySQL, and PHP 8.2 on your ACBIZ VPS for web hosting.

Update System

sudo apt update && sudo apt upgrade -y

Install Apache

sudo apt install apache2 -y && sudo systemctl enable apache2

Install MySQL

sudo apt install mysql-server -y && sudo mysql_secure_installation

Install PHP 8.2

sudo apt install php8.2 php8.2-mysql php8.2-curl php8.2-gd php8.2-mbstring -y

Test

Create /var/www/html/info.php with <?php phpinfo(); ?> and visit http://YOUR_IP/info.php.

Was this article helpful?

Still need help?

If this article didn't fully answer your question, our support team is available 24/7.

Submit a Support Ticket Search FAQs
Back to VPS & Dedicated Servers All Articles