I have been struggling so long to configure my FTP layer for joomla but could not find any satisfactory answer…………Then i came up with the following idea to get rid of all the errors and make the webpage secure too
Follow the following steps
1. chmod 777 /location_of_your_joomla_folder/
chmod 777 /var/www/joomla15/
2. install the joomla and check the owner of the configuration.php
3. chown -R www-data /var/www/joomla15
4. The site is now in production stage ………..Once the site is completely created , change back the permission to the original user.