Wrong folder and files permission NGINX/ISPConfig

Discussion in 'Server Operation' started by danield, Feb 15, 2017.

  1. danield

    danield New Member

    Hi all!

    Having an issue here with a ISPConfig site (but is not related to ispconfig).
    We have installed Wordpress on the domain, and whenever we install a new plugin or update one (or even when updating Wordpress), wrong file permissions get set on the new files and directories.

    As a result, NGINX cant access the files and shows a 403 Forbidden (log file says "Open() - Permission denied).

    How can we set the correct permission for new files and folders?

    We are using Ubuntu 16.04 with NGINX and PHP7.0-FPM

    After running ...
    find gotmls/ -type d -exec chmod 0755 {} \;^
    find gotmls/ -type f -exec chmod 0644 {} \;^
    ... everything works fine.

    Have also attached a screenshot of the files and their permissions right after they got installed.

    Hope you can help :)

    Attached Files:

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The default permissions of your system look strange indeed, at least the group read permissions are missing. Most likely you changed the umask setting somewhere (either in nginx, if there is such a setting) or you changed a global umask variable.
  3. danield

    danield New Member

    Last edited: Feb 17, 2017
    till likes this.

Share This Page