Comments on Install LEMP Stack (Nginx, PHP and MariaDB) on Debian 11

The LEMP Stack is a set of open-source software and frameworks or libraries that are used to host web applications on the internet. A stack consists of Linux operating system, Nginx web server, MariaDB/MySQL database server, and PHP language.

2 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Travis Beatty

 Followed the steps and got errors when trying to run certbot... I can't seem to have any luck with Nginx, but never have trouble with Apache.

By: Bénoît Segond von Banchet

Something went wrong:

I installed PHP8.1: php -v returns:

PHP 8.1.2 (cli) (built: Jan 27 2022 12:22:31) (NTS)Copyright (c) The PHP GroupZend Engine v4.1.2, Copyright (c) Zend Technologies    with Zend OPcache v8.1.2, Copyright (c), by Zend Technologies

I changed in /etc/nginx/conf.d/example.com the fastcgi_pass line to:

fastcgi_pass unix:/run/php/php8.1-fpm.sock;

Now when I address in my browser

http://192.168.200.199/example.com/phpinfo.php

my browser offers to download the file phpinfo.php

I suppose this shows nginx is running, example.com is up but there is no php processing.

Any suggestions what I mssed?