November 11, 20205 yr I setup apache mpm_event with php7.4-fpm and all seems to work fine. I used this help: https://www.digitalocean.com/community/tutorials/how-to-configure-apache-http-with-mpm-event-and-php-fpm-on-ubuntu-18-04 But after i setup and configured Froxlor and start it with the command in the cronjob /usr/bin/php -q /var/www/froxlor/scripts/froxlor_master_cronjob.php --tasks 1 many problems started and the hole Froxlor website was not more accessible. I forgot some checkboxes in combinations. Finally, is running again but now I cannot log in and I get the error: Whoops! The configuration file lib/userdata.inc.php cannot be read from the webserver. This mostly happens due to wrong ownership. Try the following command to correct the ownership: chown -R www-data:www-data /var/www/froxlor/ after doing this chmod i can login, but after a restart or cronjob run it went automatically back to froxlorlocal froxlorlocal user/group.
November 11, 20205 yr Well the howto does not cover the settings required in froxlor. Seems like you forgot to enable php-fpm for the froxlor vhost itself (settings -> froxlor vhost settings). Don't forget that a local user is required for that (if enabled the configuration steps will include the 'useradd' action)
November 11, 20205 yr Author thx for answer, its enabled, i did not forget it this time, but i don't see the useradd in the configuration>debian10>webserver
November 11, 20205 yr Author THX for answer, its enabled, I did not forget it this time, but I don't see the useradd in the configuration>debian10>webserver to avoid confusion I configured the default https server lighttpd to port 81, this way I can access froxlor even when the apache2 server crash and this was the reason of this chown -R www-data:www-data /var/www/froxlor/ error login. (it switched back to lighttpd server because apache2 crashed) I set up a test virtual domain called shopautomat.com and now i can get this error when i try to access a php site: [Wed Nov 11 09:02:56.662423 2020] [proxy:error] [pid 1524:tid 140093503301376] (13)Permission denied: AH02454: FCGI: attempt to connect to Unix domain socket /var/lib/apache2/fastcgi/1-shopautomat-shopautomat.com-php-fpm.socket (*) failed [Wed Nov 11 09:02:56.662527 2020] [proxy_fcgi:error] [pid 1524:tid 140093503301376] [client 183.88.219.47:1668] AH01079: failed to make connection to backend: httpd-UDS Spoiler
November 11, 20205 yr 57 minutes ago, veto said: its enabled, i did not forget it this time, but i don't see the useradd in the configuration>debian10>webserver configuration -> debian10 -> Others (System) -> php-fpm
November 11, 20205 yr Wow... anything you wanna tell us with that? Come on. It's not really fun to help if you just post screenshots and be like "go Dev, smell what I want"... Of there's no useradd then the user exists already. You can see on demo.froxlor.org that it's definitely there
November 11, 20205 yr Author Sorry, no defense, i just wanna make it work. for the moment all works until i add a customer with a domain
November 11, 20205 yr Author after i create a test customer foo i'm getting an error when i restart /etc/init.d/php7.4-fpm restart but i could solve this by doing : useradd -r -s /bin/false foo usermod -a -G froxlorlocal foo
November 11, 20205 yr You really should check your settings and configure required services...there is no need to do such thing manually. Froxlor is a helper, not a replacement for a sysadmin
November 11, 20205 yr Author Thanks, that's what I'm trying to figure out and ask here. I really admire froxlor and I stick with it. But I cannot make this particular setup to work fully automatically.
November 11, 20205 yr If you are using php-fpm, then you need to map customers from the database to the local system, hence you need "libnss-extrausers". Activate its usage in the settings and follow the configuration steps for it
Archived
This topic is now archived and is closed to further replies.