I see that certain files are installed after activating the plugin that unfortunately uses the Apache Web Server "user" to do so. I'm guessing it is using PHP, which is also the same "user" on my webserver. The files and folders I'm talking about are:
(replacing domain with the actual domain name)
Unfortunately for me, I'm running a server which has a tighter security in place, so the ftp/cpanel user is a different user than the apache and php user.
Therefore I can't deploy this plugin because I can't change the permission on these files, particulary (w3-total-cache-config-domain-preview.php), since using ftp, I'm a different user. And because I can't change the permissions, the plugin won't allow me to deploy it, since it can't access it as well because the permissions are too tight (I believe).
I do have root access on the server and can change this manually by using ssh into my server, but this seems way too much work for me to deploy the plugin.
I'm not willing to change the way my system handles the users since I believe it is better for security of my server.
Is it possible that maybe you can add a check to see if is the same user and then ask for ftp credentials so that you can automatically update the script?
Or is there any other workaround that doesn't involve me login into my server as root? Otherwise, the work involved to deploy each and every one of these plugins is too tedious and too error prone.