I am a new user of Debian 9 operating system. Can you tell me how to setup and install LAMP stack on a Debian 9 (Stretch)? LAMP is an acronym for four open source software frequently used to develop the web applications (such as forums, blogs, and business sites): Linux operating system. Apache web server. My. SQL/Maria. DB relational database management system (RDBMS)PHP server- side programming language. LAMP howto: install MySQL and a PHP-enabled Apache webserver on Linux - http://www.lamphowto.com/lamp.htm. This guide shows you the installation of LAMP (Linux,Apache 2,MariaDB/MySQL/PHP 7) on a Debian 9 Stretch. Tutorial Install Linux Web server with Apache, MYSQL and PHP with Webmin Server control panel. Accessing Microsoft SQL Server (mssql) from PHP under Apache on Unix or Linux. This tutorial shows you how to install LAMP (Apache version 2, PHP version 7, Maria. DB version 1. 0. 2) stack on a Debian 9 Linux server along with firewall settings to open tcp port 8. Step 1: Apply patches if any. Type the following apt- get command/apt command to update the system: $ sudo apt update. Sample outputs: Hit: 1 http: //security. In. Release. Hit: 2 http: //cdn- fastly. In. Release. Reading package lists.. Done. Building dependency tree. Reading state information.. Done. 3. 8 packages can be upgraded. Run 'apt list - -upgradable' to see them. To patch it with the latest updates, run: $ sudo apt- get upgrade. Sample outputs: Reading package lists.. Done. Building dependency tree. Reading state information.. Done. Calculating upgrade.. Done. The following packages will be upgraded. Done. Building dependency tree. Many Website Hosting companies offer Apache HTTP server, PHP and MySQL as a default website configuration as this trio make for a robust website backbone which is one. In this article we will explain how to install and test the LAMP stack on Debian 9 to host brand new web servers on top of Stretch using the recent updates. This article gives step by step instructions on how to install Apache 2 with mod. I prefer to install Apache from source, as it gives me more flexibili. Reading state information.. Done. Calculating upgrade.. Done. The following packages will be upgraded. Done. Building dependency tree. Reading state information.. Done. The following additional packages will be installed. Suggested packages. Preparing to unpack ../0. Done. Building dependency tree. Reading state information.. Done. The following additional packages will be installed. Suggested packages. Preparing to unpack ../0. To find the IP address of your server use the ip command/ifconfig command as follows: $ ifconfig eth. You can change the default page by editing the index. How do I stop/start/restart/reload Apache HTTP server? The syntax is as follows: $ sudo systemctl . Here is a default config file: $ cat /etc/apache. Sample outputs: < Virtual. Host *: 8. 0>. # The Server. Name directive sets the request scheme, hostname and port that. This is used when creating. URLs. In the context of virtual hosts, the Server. Name. # specifies what hostname must appear in the request's Host: header to. For the default virtual host (this file) this. For example the. # following line enables the CGI configuration for this host only. This is used when creating. URLs. In the context of virtual hosts, the Server. Name. # specifies what hostname must appear in the request's Host: header to. For the default virtual host (this file) this. For example the. # following line enables the CGI configuration for this host only. It is one of the most popular database servers in the world. It’s made by the original developers of My. SQL and guaranteed to stay open source. To install Maria. DB server, run: $ sudo apt install default- mysql- server OR$ sudo apt install mariadb- server. Sample outputs: Reading package lists.. Done. Building dependency tree. Reading state information.. Done. The following additional packages will be installed. Suggested packages. The following NEW packages will be installed. Preparing to unpack ../libmpfr. Done. Building dependency tree. Reading state information.. Done. The following additional packages will be installed. Suggested packages. The following NEW packages will be installed. Preparing to unpack ../libmpfr. This is not the root account used for your server management. So make sure you set different passwords. How do I test my Maria. DB installation? Type the following command: $ mysql - u root - p. You will greeted with Maria. DB mysql prompt. You can type sql commands to see databases, version and much more: Maria. DB . So let us install PHP version 7 along with php modules for on a Debian 9 server: $ sudo apt install php. Sample outputs: Reading package lists.. Done. Building dependency tree. Reading state information.. Done. The following additional packages will be installed. Suggested packages. The following NEW packages will be installed. Preparing to unpack ../0. Done. Building dependency tree. Reading state information.. Done. The following additional packages will be installed. Suggested packages. The following NEW packages will be installed. Preparing to unpack ../0. It is time to secure PHP, see: Linux: 2. PHP Security Best Practices For Sys Admins. At this stage you have a full fledged LAMP server running a Debian 9. Step 5: Configure firewall to open port 8. Type the following command to install ufw firewall frontend: $ sudo apt install ufw. Sample outputs: Reading package lists.. Done. The following NEW packages will be installed. Preparing to unpack ../archives/ufw. Done. Building dependency tree. Reading state information.. Done. The following NEW packages will be installed. Preparing to unpack ../archives/ufw. It is safe to start enable the firewall, enter: $ sudo ufw enable. Sample outputs: Command may disrupt existing ssh connections. Proceed with operation (y? Take a look at other tutorials for more info: Posted by: Vivek Gite The author is the creator of nix. Craft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
August 2017
Categories |