Jump to content
Froxlor Forum
  • 0

chown -R www-data:www-data /var/www/froxlor/


Question

Posted

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.

 

 

 

 

 

11 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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)

  • 0
Posted

thx for answer,
its enabled, i did not forget it this time,  but i don't see the useradd  in the configuration>debian10>webserver

 

Screenshot_2020-11-11 admin - Froxlor Server Management Panel(1).png

Screenshot_2020-11-11 admin - Froxlor Server Management Panel.png

  • 0
Posted

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

 

 

 

 

 

  • 0
Posted
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

 

  • 0
Posted

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

  • 0
Posted

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

 

 

 

 

  • 0
Posted

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

  • 0
Posted

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.

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


×
×
  • Create New...