Jump to content
Froxlor Forum
  • 0

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


veto

Question

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.

 

 

 

 

 

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

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)

Link to comment
Share on other sites

  • 0

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

 

 

 

 

 

Link to comment
Share on other sites

  • 0

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

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


×
×
  • Create New...