Need help? We reply fast. +447365601447 helps@jryhost.com WhatsApp Contact us

← Help center · VPS and servers

How to install a LAMP stack on Ubuntu (Apache, MySQL, PHP)

LAMP means Linux, Apache, MySQL and PHP. It runs WordPress and many other PHP apps.

Install

apt update
apt install apache2 mysql-server php libapache2-mod-php php-mysql -y
systemctl enable --now apache2

Secure MySQL

mysql_secure_installation

Test PHP

Create /var/www/html/info.php with <?php phpinfo(); inside. Open it in your browser, check it works, then delete the file. It shows private details.

Next

More in VPS and servers

Still stuck? Open a support ticket.

Chat with us