• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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