User permission and php


I’ve created a user and assigned it a specific folder (for example: user1 and the folder is public_html/folder_of_user1).

Now: each time that “user1” create folder (or move files) using php, the folder has like owner my account not his.
So , “user1” can’t delete folder or files, using the ftp.
How I can fix this?


PHP can be run by a vhost with CGI scripts for a specific user.
In APACHE you must use SuexecUserGroup

for example see your vhost

cat /etc/apache2/sites-available/

Check the user at SuexecUserGroup

<VirtualHost *:80>
SuexecUserGroup "#1009" "#1009"

to view the user and group IDS


More information:

Thank you for the reply.
But: I’ve to this for each domain/subdomain …or only the “top level” domain?
thanks again

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.