-
Debian Installer Nfsroot카테고리 없음 2020. 2. 28. 23:54
A “ LAMP” stack is a collection of open-source software that is generally installed together to allow a system to deploy dynamic applications. This term is an acronym which describes the Linux operating system, Apache web server, a MariaDB database, and PHP programming.Read Also:Although this “ LAMP” stack usually involves MySQL as the database management system, some Linux distributions such as Debian — use MariaDB as a drop-in replacement for MySQL. Requirements.In this article, we will show you how to install a LAMP stack on a Debian 10 server, using MariaDB as the database management system. Installing Apache Web Server on Debian 10The Apache web server is an open-source, powerful, reliable, secure, highly-extensible and widely used HTTP server software for hosting a website.To install Apache, use Debian’s as shown.
# apt install apache2. Secure MariaDB in Debian 10If you want to create a database named 'tecmintwpdb' and a user named 'tecmintwpuser' with full privileges over the database, run the following commands. # mysql -u root -pMariaDB (none) CREATE DATABASE tecmintwpdb;MariaDB (none) GRANT ALL ON tecmintwpdb. TO 'tecmintwpuser'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;MariaDB (none) FLUSH PRIVILEGES;MariaDB (none) exit;You can confirm if the new user has the full permissions on the database by logging in to the MariaDB with user credentials as shown. # mysql -u tecmintwpuser -pMariaDB (none) SHOW DATABASES. Check PHP Info in Debian 10If you see the above page in your web browser, then your PHP installation is working as expected.
Also, this page shows some basic details about your PHP installation and it is useful for debugging purposes, but at the same time it will also show some sensitive information about your PHP.So, it is highly recommended to delete this file from the server. # rm /var/www/html/info.phpConclusionIn this article, we’ve explained how to install Linux, Apache, MariaDB, and PHP (LAMP) stack on a Debian 10 server.
Debian Installer Download
If you have questions about this article, feel free to ask in the comment section.