• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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