Debian Install Nginx Php Mysql Phpmyadmin On Debian 9


Debian Install Nginx Php Mysql PhpMyAdmin On Debian 9

What Is Debian 9?

Debian 9 (codenamed “stretch”) is the most recent stable version released by the Debian project, the developers of the world’s most popular Linux platform. It’s a major upgrade from Debian 8 (codenamed “jessie”) and makes significant improvements to hardware support, security, software packages, and the overall performance of the product. Debian is the foundation of many of the world’s most popular server operating systems, including Ubuntu, which is based on it.

What is Nginx?

Nginx (“engine x”) is an open source web server written in C and released under the BSD license. It has become one of the most popular web servers on the Internet due to its excellent performance, scalability, and low resource usage. Nginx can be used as a reverse proxy, caching server, load balancer, mail proxy, and web server. It is also highly extensible and can be used to serve static files, dynamic content, or any combination thereof.

What Is Php and Mysql?

PHP is an open source, server-side programming language used to create dynamic web pages and applications. It is the most popular scripting language on the web and can be used to create powerful web applications. MySQL is an open source relational database management system. It is one of the most widely used databases in the world and is the back end of many popular web applications. MySQL is used for data storage, indexing, and retrieval and is the foundation of many modern web applications.

What Is PHPMyAdmin?

phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web. phpMyAdmin supports a wide range of operations on MySQL and MariaDB. Frequently used operations (managing databases, tables, columns, relations, indexes, users, permissions, etc) can be performed via the user interface, while you still have the ability to directly execute any SQL statement.

How To Install Nginx, PHP, MySQL, and PHPMyAdmin On Debian 9?

In order to install Nginx, PHP, MySQL, and PHPMyAdmin on Debian 9, you’ll need to use the apt package manager. It will also be necessary to configure all four applications, so they can interact properly. Here is how to do it:

Step 1: Install Nginx

The first step is to install Nginx, the powerful web server. To do this, log in as root on your Debian 9 server and issue the following commands:


apt-get update
apt-get install nginx

After the installation is finished, you’ll need to start and enable the Nginx service:


systemctl start nginx
systemctl enable nginx

Step 2: Install MySQL

Now, you can install MySQL, the popular relational database system. To do this, use the following command:


apt-get install mysql-server

Once the installation is finished, you’ll need to configure MySQL. To do this, use the command below:


mysql_secure_installation

You will be asked to enter a root password for the MySQL server. You can use any password you wish. Then, answer the remaining questions as desired.

Step 3: Install PHP

Next, you’ll need to install PHP in order to make your web server dynamic. To do this, issue the following command:


apt-get install php-fpm php-mysql

After the installation is finished, you’ll need to configure PHP. To do this, edit the file /etc/php/7.0/fpm/php.ini and configure it as desired. Then, restart the PHP service with the following command:


systemctl restart php7.0-fpm

Step 4: Install PHPMyAdmin

The next step is to install PHPMyAdmin, the powerful web-based database management tool. To do this, use the following command:


apt-get install phpmyadmin

Once the installation is finished, you’ll need to configure PHPMyAdmin. To do this, edit the file /etc/phpmyadmin/config.inc.php and set the “AllowNoPassword” option to “false”. Then, restart PHPMyAdmin with the following command:


service phpmyadmin restart

Conclusion

In this article, we have covered how to install Nginx, PHP, MySQL, and PHPMyAdmin on Debian 9. We also discussed each of the components and their configuration. It’s not an easy task to set up all four applications, but with this article, it should be easier to do it. Thanks for reading this article and we hope you found it helpful.

FAQs

  • What is Debian 9?

    Debian 9 (codenamed “stretch”) is the most recent stable version released by the Debian project, the developers of the world’s most popular Linux platform.

  • What is Nginx?

    Nginx (“engine x”) is an open source web server written in C and released under the BSD license. It has become one of the most popular web servers on the Internet due to its excellent performance, scalability, and low resource usage.

  • What is PHP and MySQL?

    PHP is an open source, server-side programming language used to create dynamic web pages and applications. MySQL is an open source relational database management system.

  • What is PHPMyAdmin?

    phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web.

Thank you for reading this article. To learn more about Debian 9, Nginx, PHP, MySQL, and PHPMyAdmin, please read other articles.

Leave a Reply

Your email address will not be published. Required fields are marked *