php-fpm service doesn't start

Hi, I’ve installed php-fpm and nginx to works on my pc following this guide (I know it’s for Leap, but I’ve already followed it on tumbleweed with success other times, and I’ve changed php5 with php7) https://www.howtoforge.com/tutorial/install-nginx-php-and-mysql-lemp-stack-on-opensuse-leap-42.1/.

Now, if i try to do

sudo systemctl start php-fpm

it doesn’t work, gettin this error in log:

[25-Mar-2021 17:29:01] ERROR: unable to bind listening socket for address '/var/run/php7-fpm.sock': Permission denied (13)
[25-Mar-2021 17:29:01] ERROR: FPM initialization failed

How can I solve it?
Thanks

Solved: I had to write /var/run/php-fpm/php-fpm.sock, not /var/run/php-fpm.sock in www.conf file.

I had the same issue following this tutorial: https://www.fossadventures.com/the-ultimate-diy-guide-for-installing-wordpress-on-opensuse-tumbleweed/

(I am actually doing this on Leap 15.4, not on Tumbleweed).

It is not sufficient to change this only in the www.conf file, you also have to change the line starting with fastcgi_pass in the /etc/nginx/nginx.conf file.

Then there is no need to chown nginx:nginx for the .pid and .sock files. Just ignore these instructions. You can start the php-fpm service right away. Of course, you have to restart the nginx service, too.

sudo systemctl start php-fpm
sudo systemctl restart nginx

Please, please. Hanging on a post at the end of such an old thread is not very useful. As you say yourself, you are using another openSUSE version and in the meantime many things will have been changed.

If you want attention to a problem, better start a new thread with a good title to draw the attention of the people you need for help.