Skip to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Permissions of configuration alias-folder of php-fpm

Featured Replies

Hi,

 

I just set up Froxlor to work with php-fpm.

I'm using pretty much the standard configuration.

 

Debian Jessie

Froxlor ver 0.9.35.1-1

PHP 5.6

 

My pool-config lies in

/etc/php5/fpm/pool.d
since I'm using Debian Jessie, all other configuration values are set to default.

 

Therefore the configuration alias-directory of php-fpm is set to

/var/www/php-fpm/

 

My Problem is, that froxlor creates/changes the subdirectories (e.g. /var/www/php-fpm/username) on every master cronjob to owner root:root with permissions 750. This way I get this error on access in the users custom error log from apache stating

(13)Permission denied: [client 77.181.66.50:49690] AH00035: access to /fastcgiphp/index.php denied (filesystem path '/var/www/php-fpm/username/domain.com') because search permissions are missing on a component of the path, referer: http://domain.com/

 

Right now I fixed it by adding a

chmod o+x /var/www/php-fpm/*
to the webserver restart script, that I have configured.

 

Is this due to a misconfiguration or a bug?

 

Regards

jBOKA

 

 

Sounds like misconfiguration, never had this issue

  • Author

So, how can I debug this?

I mean, if permission 750 is correct for /var/www/php-fpm/*

what does this mean for that error? Should I post anything else, or is there mybe a way to get more information on that error?

 

/EDIT:
Just read the Unix permission basics again.

This is the situation:

 

 drwxr-xr-x root    root    /
 drwxr-xr-x root    root    var
 drwxr-xr-x root    root    www
 drwxr-xr-x root    root    php-fpm
 drwxrwx--- root    root    user
 drwxrwx--- user    user    domain.com

There's no way for the user to read the files in the user folder without the x-permission. How should this all work? I mean it's definitely Froxlor who changes the permission (tried it with the master cron). Why is that and what would the misconfiguration be?

validate that libnss-mysql is setup correctly and working

  • Author

I guess it is, or would I be able to login/ssh into the machine with the froxlor user accounts if it wasn't?

the froxlor user is LOCAL, libnss-mysql is used to read the customers users from the database, completely different thing

  • Author

Sorry, I should have emphasized that I meant "froxlor user accounts", the accounts created by froxlor for the customers.

I can login and ssh into the machine using the user credentials from the database (when ftp_users.shell set to '/bin/bash').

 

This is what makes me assume libnss-mysql is working properly.

 

Can you tell me if the created permission are correct? If so, how would the 'user' accout be able to access the mentioned folders/files?

id www-data

should ouput all froxlor customer user as groups of www-data

  • Author

It does, every customer is in there.

From the beginning:

 

My Problem is, that froxlor creates/changes the subdirectories (e.g. /var/www/php-fpm/username) on every master cronjob to owner root:root with permissions 750. This way I get this error on access in the users custom error log from apache stating

 

Froxlor does not create/change anything in /var/www/php-fpm/username as this directory is just used as alias (hence the setting-name 'Alias Directory'). Everything create/changed there is caused by fpm and/or apache.

 

So to cut things short:

 

- nopaste vhost of domain

- nopaste fpm pool-config of domain

- show us your fpm-setting (SQL: select * from panel_settings where settinggroup = 'phpfpm';)

My /var/www/php-fpm/ path has chmod 755, never had any issues.

  • Author

/var/www/php-fpm is not the issue, its the subfolders

 

drwxr-xr-x root    root    /
 drwxr-xr-x root    root    var
 drwxr-xr-x root    root    www
 drwxr-xr-x root    root    php-fpm
 drwxrwx--- root    root    user
 drwxrwx--- user    user    domain.com

 

I use chmod on /var/www/php-fpm/*

Then sorry, without a look at the server i cannot tell you what is wrong. No idea.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.