Issue:
While installing plugins or updates some times WordPress asks for FTP details.
Screenshot:
Reason:
This happens because the WordPress is unable to download and store the files in the web directory.
Fix:
Modify the changes and make sure that the Apache user has write permissions to the web directory.