• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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