Hi;
I'm looking for an "on the fly" PHP function/file that can create/modify/delete an FTP user with password -- for a restricted web host folder. These are free FTP accounts that need to be created when a new user first logs onto my web site.
For example: The PHP function would provide FTP access for a user named
Henry with a username
henry@user.com and a password of
ABCdef
with a user directory of ./httpdocs/mywebsite.com/users/henry (Henry needs to be restricted to the "henry" folder).
My web site is hosted on a Linux VPS Server with a Plesk control panel.
I suspect this PHP function would use the Linux "shell" command
adduser in the root folder /usr/sbin/ because I don't think there is a Plesk API that can be used for this purpose. A special root FTP folder that contains a list of all FTP users may also need to be created???
I have absolutly no experiance with the Linux "shell" or commands -- so the only information I can provide is general server information.
If you need any clarification or want to submit an offer of help...
My email address is
rlemire@telus.net