Easy install of a LAMP server

Started by Keith Miller, Oct 05, 2026, 01:34 AM

Previous topic - Next topic

Keith Miller

sudo apt update
sudo apt install tasksel
sudo tasksel install lamp-server
MYSQL INSTALL and CONFIG
sudo mysql_secure_installation
mysql -u root -p
PHP: Create a test file info.php in /var/www/html with:
<?php phpinfo(); ?>

START SERVICES
sudo systemctl start apache2
sudo systemctl start mysql
su systemctl start php

ENABLE TO START AT BOOT
sudo systemctl enable apache2 mysql php