• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Who is the web user in Plesk?

A

ambrit

Guest
Hi - this might be a really simple answer (mine usually seem to be)

I am trying to get a PHP form working in a website that is hosted on Plesk. The PHP form writes to a CSV file which is located inside the website folder (within httpdocs). If I give everyone full access to the CSV file (chmod 777) then the script runs fine, but I want to only give user and group access (without breaking Plesk).

Does anyone know which user a PHP script would normally run under with Plesk? I have looked in a few places and I thought it was either "nobody" or "wwwrun" but even when I give either of those users Root access or put them in the correct group the PHP still doesn't work, it only starts working when I set full access to anyone in Linux. So that makes me think I am have not found the correct user.

Does anyone know the answer to this? I am running Suse Enterprise Linux 10 if that helps...

thanks in advance
 
Check the user account on which the appache runs ..I hope this may solve the problem .

Normally for security it runs as apache or nobody
 
thanks for the quick reply - I thought I already did check the apache user (although I might have done it wrong)

I checked the httpd.conf file (in etc/apache2) which then pointed me at uid.conf (also in the apache directory). In there had wwwrun listed with a group of www

Is that the only way of checking or is there a better way?
 
Hello ,

Try this . Dont know this will work ..any way

chown clientname:psacln yourphpfile

chmod 644 yourphpfile

rw-r--r-- user-clientname group-psacln
 
Hi - this might be a really simple answer (mine usually seem to be)

I am trying to get a PHP form working in a website that is hosted on Plesk. The PHP form writes to a CSV file which is located inside the website folder (within httpdocs). If I give everyone full access to the CSV file (chmod 777) then the script runs fine, but I want to only give user and group access (without breaking Plesk).

Does anyone know which user a PHP script would normally run under with Plesk? I have looked in a few places and I thought it was either "nobody" or "wwwrun" but even when I give either of those users Root access or put them in the correct group the PHP still doesn't work, it only starts working when I set full access to anyone in Linux. So that makes me think I am have not found the correct user.

Does anyone know the answer to this? I am running Suse Enterprise Linux 10 if that helps...

thanks in advance

try to setup the following permissions/owners on the CSV file: rwx rwx --- ftp_user : psaserv
 
Since plesk doesnt have suphp or anything like it installed by default - if your csv file is created by a running php script it will be created as teh group/owner of apache and not your ftpuser

Also, wouldnt the file be owned by group psacln and not psaserv?
 
Back
Top