• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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