Full installation of Linux LAMP server, Apache, MySql, PHP Debian 11

This tutorial describes how to comprehensively install a LAMP server or Apache basic services, MySql, Php and phpmyadmin.

We will install all packages step by step.

First, we will install the Apache web server:

command:

We can check the Apache version:

We run Apache with commands:

After going to our ip address in the browser, we should see the Apache start page

The next step is to install the MariaDB database server

We install:

And we run:

We can verify the operation status by issuing an order:

below the result:

We issue a command in the console:

And we do the initial configuration as below:

You can log into mysql by issuing a command:

And by entering the password we have just set.

We can install PHP by issuing the command:

We can check the php version by entering the command in the console:

the result of the:

The last step is to create our domain vhost.

We create a directory of our domain:

we grant powers:

We create the vhost configuration file by issuing the command:

The content:

And we save the file.

We add our vhost to active:

We check the configuration:

And we're reloading the Apache server:

The only thing left for us to do now is redirect the domain to the ip of our server.

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.