Issue:

While installing plugins or updates some times WordPress asks for FTP details.

 

Screenshot:

wordpress-asks-ftp-details-installing-updates

 

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.