Path to ftp when installing Nextcloud

Hi community!
Could you let me know how I can change the path to external FTP for data directory when I installing the Nextcloud? ftp:// or mount FTP (curlftpfs) don’t work for it, I have an error " Can’t create or write into the data directory".
Ubuntu 16.04