So, in this post, you will learn how to use LAMP on Debian as well as a description of its main components. The acronym LAMP refers to a set of software needed to achieve dynamic web servers with reduced effort. In a nutshell, by installing each of its components, we can obtain a web server that can serve dynamic websites to everyone else. One of the main successes of the LAMP stack is that it is very easy to install. Perhaps, the most complex thing is to install the system, but Linux in this aspect has advanced a lot, and now it is easier.
It is the mother of the mighty Ubuntu and Linux Mint but Debian is even more stable than them. This is thanks to a rigorous development model that, although sometimes very strict, allows to keep the quality of the added packages high and therefore the stability.
Debian is used on the desktop by many developers but is also widely popular on servers of all kinds. It provides better performance and advantages such as:. To install MaroaDB on Debian 10, execute the command:. Once the installation is complete, check whether the database server is running by issuing the command;. The default settings for MariaDB, just like MySQL, are weak and an attacker or anonymous user can easily gain access without authentication.
Therefore, we need to harden our Database instance. First, you will be required to provide the root password. If none is configured or set, you need to set one your MariaDB database and confirm it.
You can install PHP with other commonly used extensions with the following command:. At this point, the LAMP stack is installed in your server. Now, you will need to create an Apache virtual host configuration file to host any application. Here, we will create an example. You can create it with the following command:. Save and close the file then activate the example. Next, you will need to create a sample PHP file to serve over the Apache webserver. Open the configuration config.
Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published. Save my name, email, and website in this browser for the next time I comment. Notify me of followup comments via e-mail. You can also subscribe without commenting. This site uses Akismet to reduce spam. Learn how your comment data is processed.
0コメント