Sisir Adhikari Posted April 11, 2020 Posted April 11, 2020 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?
d00p Posted April 12, 2020 Posted April 12, 2020 UPDATE `panel_settings` SET `value`= '1' WHERE `varname` = 'nssextrausers'; Then run cron manually with --force
d00p Posted April 11, 2020 Posted April 11, 2020 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
Sisir Adhikari Posted April 11, 2020 Author Posted April 11, 2020 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.
d00p Posted April 11, 2020 Posted April 11, 2020 Did you activate libnss-extrausers froxlor? Are there files and content in /var/lib/extrausers/?
Sisir Adhikari Posted April 12, 2020 Author Posted April 12, 2020 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.
Sisir Adhikari Posted April 12, 2020 Author Posted April 12, 2020 Thanks, activating the nssextrausers worked. If anyone wondering how to force run cronjob. /usr/bin/php5 /var/www/froxlor/scripts/froxlor_master_cronjob.php --force
Question
Sisir Adhikari
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?
6 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.