Comments on How to Install LEMP Stack (Nginx, PHP and MariaDB) on Debian 12
The LEMP software stack is a group of open-source software that enables a server to host dynamic websites and apps written in PHP. It is an acronym for Linux, Nginx (pronounced as Engine-X), MySQL, and PHP.
2 Comment(s)
Comments
Is there a specific reason to edit the php.ini for nginx from www-data? And if it is neccessary what is the proper way to setup a ssh user to edit content for a particular website. I have seen www-data used in nginx in some install tutorial. So I am a bit confused as to which is correct/best practice for a webserver.
I am new to nginx and it has been a few years since I set up a webserver.
Thanks,
We need to set the Unix user/group of PHP processes to nginx. Find the user=www-data and group=www-data lines in the file and change them to nginx.
... ; Unix user/group of processes ; Note: The user is mandatory. If the group is not set, the default user's group ; will be used. user = nginx group = nginx ...Also, find the lines listen.owner=www-data and listen.group=www-data in the file and change them to nginx.
listen.owner = nginx listen.group = nginxThanks, lots of helpful stuff.