Skip to content
Go back

Installation of LAMP along with PHPMyAdmin on Debian in simple steps.

Published:

Set up a LAMP stack (Linux, Apache, MariaDB/MySQL, PHP) with phpMyAdmin on Debian step by step.

๐Ÿ”น Install Apache Web Server

sudo apt install apache2 -y

Enable and start:

sudo systemctl enable apache2
sudo systemctl start apache2

Test: Open http://192.168.63.132 in a browser. You should see the Apache default page.

out


๐Ÿ”น Install MariaDB (or MySQL)

sudo apt install mariadb-server -y

Secure the installation:

sudo mysql_secure_installation

๐Ÿ‘‰ Login to test:

sudo mariadb -u root -p

๐Ÿ”น Install PHP

sudo apt install php libapache2-mod-php php-mysql -y

Check PHP version:

php -v

๐Ÿ”น Install phpMyAdmin

sudo apt install phpmyadmin -y

During installation:


Enable phpMyAdmin in Apache

On Debian, the installer does not always add the config automatically. You need to enable it:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-enabled/phpmyadmin.conf

That command creates a symbolic link so Apache knows about phpMyAdminโ€™s configuration.

Then reload Apache:

sudo systemctl reload apache2

๐Ÿ”น Access phpMyAdmin

Open in browser:

http://192.168.63.132/phpmyadmin

Login with MariaDB username/password.

out


Thank You


Suggest Changes

Previous Post
Step to install VMware Workstation on a Linux system.
Next Post
Hosting a WordPress site in Debain in simple steps.