Thank you for your reply! If I set the permission to 777 on the root it will work. But I’m wondering why it does not work otherwise. Does the plugin use the apache group to run the script? Or the plugin run in the others permission instead of the user or group. Since the directory fails at 755 it means the plugin needs write permission on the group or others? Or does it run as a different group and that group isn’t part of apache?

The group is independent of the plugin. Its actually tied to the PHP process that php files are allowed to run on under the apache thread. Because every host/server is configured with different settings, its probably best to ping your host or server admin to see how things are configured between PHP and the group its processes run under.

Okay so in simple terms what you are saying is to make sure PHP belongs in the group that is the current group of the root www folder? In my case since apache is the group of www directory I should check if PHP belongs to the apache group?