Linux serverlinux web serverNETWORK ADMINISTRATIONS

How to Install LAMP on Linux Debian

In this video we will install a LAMP stack on a Debian 12 (Linux) server and run a PHP code on it. Here are the commands you can use to follow up with this tutorial:

# Update package list
sudo apt update

# Install Apache
sudo apt install apache2
sudo systemctl enable apache2
sudo systemctl start apache2

# Install MySQL (or MariaDB)
sudo apt install mariadb-server
sudo mysql_secure_installation

sudo systemctl enable mariadb
sudo systemctl start mariadb

# Install PHP
sudo apt install php libapache2-mod-php php-mysql
sudo systemctl restart apache2

# Create PHP file in
/var/www/html/info.php

All Open Source!

Arashtad provides high quality tutorials, eBooks, articles and documents, design and development services, over 400 free online tools, frameworks, CMS, WordPress plugins, Joomla extensions, and other products.

More Courses ▶ https://tuts.arashtad.com/

Business Inquiries ▶ https://arashtad.com/business-inquiries/
Affiliate Programs ▶ https://arashtad.com/affiliate-programs/

eBooks ▶ https://press.arashtad.com/
Our Products ▶ https://market.arashtad.com/
Our Services ▶ https://arashtad.com/services/
Our Portfolio ▶ https://demo.arashtad.com/
Free Online Tools ▶ https://tools.arashtad.com/
Our Blog ▶ https://blog.arashtad.com/
Documents ▶ https://doc.arashtad.com/
Licensing ▶ https://arashtad.com/licensing/
About us ▶ https://arashtad.com/about/

Join Arashtad Network ▶ https://i.arashtad.com/

Our Social Profiles ▶ https://arashtad.com/arashtad-social-media-profiles/
Vimeo ▶ https://vimeo.com/arashtad
Udemy ▶ https://www.udemy.com/user/arashtad
GitHub ▶ https://github.com/arashtad
Linkedin ▶ https://www.linkedin.com/company/arashtad
Twitter ▶ https://twitter.com/arashtad

source

by Arashtad

linux web server