• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

How do I create a web user inside httpdocs?

J

Javier Alonso

Guest
Hello, I need some help with plesk. When I create a web user, its default directory is outside httpdocs, and I need a ftp account inside httpdocs, so users can upload files using that ftp account and everybody can download them by http.

I have tried modifying the user with "usermod -d ...../httpdocs/myfolder" but it doesn't work.

Any help, please?
 
I think it is not possible,
but you can make a symlink from webuser dir into httpd folder.
You need to add some rules in vhost.conf
for example:
<Directory "/var/www/vhosts/domain.de/httpdocs">
Options +followSymlinks
</Directory>

If you need Access with php you need some additional Lines
<Directory "/var/www/vhosts/domain.de/httpdocs">
php_admin_value open_basedir "/var/www/vhosts/domain.de/web_users/webusername/"
</Directory>

create symlink:
ln -s ../web_users/webusername/ /var/www/vhosts/domain.de/httpdocs/downloads
It will create a symlink in httpdocs folder named as downloads
 
Back
Top