Jump to content
Froxlor Forum
  • 0

PHP-FPM socket file is not created


Sisir Adhikari
 Share

Question

Here is an example of froxlor vhost for root ip. The php-fpm socket file it states, is not created (does not exists).

```

server {
        listen    xxx.xxx.xxx.xxx:80 default_server;
        # Froxlor default vhost
        server_name    server.xxx.com;
        access_log     /var/log/nginx/access.log combined;
        root     /var/www/froxlor/;
        index    index.php index.html index.htm;

        location / {
        }
        location ~ \.php {
                fastcgi_split_path_info ^(.+?\.php)(/.*)$;
                include /etc/nginx/fastcgi_params;
                fastcgi_param SCRIPT_FILENAME $request_filename;
                fastcgi_param PATH_INFO $fastcgi_path_info;
                try_files $fastcgi_script_name =404;
                fastcgi_pass unix:/var/run/1-froxlor.panel-server.xxx.com-php-fpm.socket; # <----------- The file isn't created
                fastcgi_index index.php;
        }
}

```

I have followed all steps for setting up servers. the sock file exists as `/var/run/php/php7.2-fpm.sock`. When I edit this file and reload server the url works but after I add a domain (for any user) the config file resets. Any idea how to fix this?

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
2 minutes ago, Sisir Adhikari said:

`/var/run/php/php7.2-fpm.sock`

that's the default socket of the pool-config www.conf which is not used by froxlor. check that your pool-configuration directory is set correctly in the fpm-version settings

Link to comment
Share on other sites

  • 0

pool config is pointing to directory `/etc/php/7.3/fpm/pool` Under this directory I see config files for other vhost domains. They all points to socket files like `/var/run/1-codeware-xxxx.com-php-fpm.socket` The file does not exists.

But now I see this error as well which I think should be resolved first:

```

Apr 11 19:04:22 server systemd[1]: Starting The PHP 7.3 FastCGI Process Manager...
Apr 11 19:04:22 server php-fpm7.3[14648]: [11-Apr-2020 19:04:22] ERROR: [pool codeware.server.xxxx.com] cannot get uid for user 'codeware'

```

I assume from other forum thread this is an issue with libnss-extrausers btw I have configured it before. So, not sure where it went wrong. BTW, I would re-configure it again but the froxlor interface is inaccessible because php doesn't start.

Link to comment
Share on other sites

  • 0
10 hours ago, d00p said:

Are there files and content in /var/lib/extrausers/?

There are three files in this directory.

- group
- passwd
- shadow

There are no contents in these files.

 

10 hours ago, d00p said:

Did you activate libnss-extrausers froxlor?

I am not sure if I did that. I have run the config code that is given but did not know if I need to activate it in settings. Do you know the mysql field for this setting? I can try updating mysql db value directly.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...