For the FTP changing port to 1342 has solved. I made the change on permissions and now work. For the htaccess I do not know what does not work. If I remove it, everything works but PHP 5.6.38 is loaded on the server. But from cpanel I changed it in 7.2. If I use the 7.2 and in htaccess I do not insert the code related to joomla the site is not accessible (all pages show internal error). However, the problem was related to file permissions, I think.