Solved: Problem with permissions on nginx
-
Hello together,
we recently had a strange problem when creating new folders and files on a WP installation under nginx.
We couldn’t resolve the problem when changing directory permissions for our users.
MLP created dirs only with chmod 750 what was not enough for letting us upload images in that folder. All the resolving with the bashrc and other config files did not lead to success.We tried to look up the code of the plugin and changed a little bit of the code from maxgalleria-media-library.php.
Changes we made that succeeded:
On line 403:
$perms = $stat['mode'] & 0000664;
and directly below line 1604 we added following:
@chmod($new_folder_path, 0755);
Please update your plugin with these snippets so that the functionality is given under nginx. We hadn’t any problems with apache on our local test system but I will test it again with a local nginx installation and look if theres maybe only a mistake in our configuration. But those changes in code leads to not look further in the configuration because everything else worked as expected.
- The topic ‘Solved: Problem with permissions on nginx’ is closed to new replies.