Trouble Installing Wordpress (PHP-FPM)

Hello, I’m a Linux Newbie that just swapped from Ubuntu to OpenSUSE Leap (15.4). I’m currently having troubles installing WordPress, as I can’t seem to get PHP-FPM to work; the guide I’m following can be found here, I understand it’s for tumbleweed but I highly doubt they are that different. The only thing I changed in this guide is the php version, I replaced every ‘php7’ with ‘php8’.

When I try to change the ownership of php-fpm.sock and php-fpm.pid, it says ‘no such directory or file’. However, attempting to start php-fpm gives me an error of ‘Permission Denied (13)’. Where are those files located for PHP 8?

Thanks !

image

Newbies may want to refrain from tinkering and use “yast2 http-server” which works out of the box. Run “zypper install --type pattern lamp_server”.

1 Like

php-fpm.sock and php-fpm.pid are created in directory /var/run/ when starting php-fpm, with ownership as set in /etc/php8/fpm/php-fpm.d/www.conf (where ''www" may be YOUR_WEBSITE_NAME):

listen.owner = nginx
listen.group = nginx
listen.mode = 0660

So I would say: check those settings and restart php-fpm:

systemctl stop php-fpm.service
systemctl start php-fpm.service
systemctl status php-fpm.service

Those command s must be run as root, so either run them logged in as root (su -) or put sudo in front of each command.

And as already suggested by the previous answer: this is not light stuff for a Linux Newbie.