• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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