Install additional modules if your application requires them. To install the PHP, and other, modules that many web services require, run the following command. When going through the installer, which is optional, you can just answer yes to all the prompts for this guide. To finalize the MariaDB installation, use the following command to run through MariaDB’s install wizard: sudo mysql_secure_installation It to start automatically on boot, run the following commands: sudo apt-get install mariadb-server mariadb-client To install MariaDB, which is the database that this LAMP uses instead of MySQL, start the service, and set To add a firewall rule to allow port 80 through and make that change persistent, run the following commands: sudo iptables -I INPUT -p tcp -dport 80 -j ACCEPT To install Apache, set it to start on boot, and start the service, run the following commands: sudo apt install apache2 Run the followingĬommand to get the latest package listings and update installed packages to their latest versions: sudo apt update Perform the following steps to install a LAMP stack:īefore installing LAMP, ensure the package management repositories are fully up to date. You need a Linux-based server running Debian 10 Install a LAMP stack HTTP Server, the MySQL® database system, and the PHP programming language. The term LAMP is an acronym standing for Linux® operating system, the Apache® A LAMP stack is a collection of open-source software that you can use as a platform to create websitesĪnd web applications.
0 Comments
Leave a Reply. |