Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php 71 does not create php7.0-fpm.sock

Tags:

php

nginx

I am trying to set up a Wordpress Server using RedHat 7.3, Nginx 1.10 and PHP71.

This is the steps of how I installed the PHP71:

wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -Uvh remi-release-7.rpm yum-config-manager --enable remi-php71 yum install php71

To see that it was installed: rpm -q php71 and it returned php71-1.0-1.el7.remi.x86_64 This shows it was installed.

Also running php71 -v gives me the following so I am confident it is installed: PHP 7.1.4 (cli) (built: Apr 11 2017 18:26:18) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

So what I am trying to do is use Unix Socket rather than IP:

In the www.conf files I have set user and group both to Nginx I change the listen value to the following: /var/run/php7.0-fpm.sock I match that up with what is in the default.conf file inside of /etc/nginx.

My problem is that it looks like PHP71 never created this file php7.0-fpm.sock.

I did get this to work with PHP56 so am wondering if I need to install some PHP71 module.

Any help would be greatly appreciated.

Thank you.

like image 738
pbroderi31 Avatar asked Feb 05 '26 17:02

pbroderi31


1 Answers

php does not create any sockets by itself.

Looks like you did not install php-fpm package.

job of php-fpm deamon is to create *-fpm.sock

Find how to install and configure php-fpm on your system

like image 163
Artem Rusinov Avatar answered Feb 08 '26 22:02

Artem Rusinov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!