• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

PHP script permission write folder problem

digitalstep

New Pleskian
Hi,

I have a fresh install of plesk.
I setted up my first domain and uploads my application.
I noticed that all files uploaded by ftp user are owned by=> domain_owner:psacnl
Seems like psacnl group cannot write inside website folder.
I changed ownership domain_owner:psaserv and now it works but I'm not sure this is the best solution to workaround the problem.
Moreover every time I have new files uploaded I need to do this...
Isn't there a final better solution to get my application write permissions when webserver user is running ?
 
On the contrary all your files in /httpdocs/ should belong to the group psacln and NOT psaserv
However, httpdocs folder should belong to the group psaserv
 
On the contrary all your files in /httpdocs/ should belong to the group psacln and NOT psaserv
However, httpdocs folder should belong to the group psaserv

I know, and that is the way it was, but if psacln is the group owner I have problem and webserver (www-data) cannot create folders of modify files...
Is it normal ?
 
Change it to CGI or FastCGI, that should use the permissions and ownership of the user to write files!
 
Change it to CGI or FastCGI, that should use the permissions and ownership of the user to write files!

Yeah now it works ! You must be something like a "God" :)
Anyway which is the difference in this ? Is it normal that running as apache module isn't able to write ?
 
When PHP runs from FastCGI, your server runs the PHP interpreter like an Apache module, but with the rights of your user account. Usually, the PHP interpreter is either running as the user of the webserver (which is fast, but insecure, since everyone’s scripts run with the same rights), or as a CGI program, which is slow. Thus, FastCGI is a good solution for shared hosting.
 
Change it to CGI or FastCGI, that should use the permissions and ownership of the user to write files!

Hi,
i have the same problem and solved it with the CGI configuration, but in my setup I have other sites that use php in apche module and are able to successfully write to the file system!
Any Idea?
tnks
 
Back
Top