How To Resolve The Error While Trying To Install Modules In Drupal?

At times, you would possibly receive error message just like the one mentioned below while trying to install a module in Drupal. This error can be simply resolved!

Here is that the error that you would possibly encounter:

The specified file temporary://filename couldn’t be copied, as a result of the destination directory isn’t properly configured. This could be caused by a problem with file or directory permissions. Within the system log more information is available.

This error would possibly occur because of any incorrect setting of your temporary directory that is set during the installation method.

In order to fix this issue, go to > Configuration > Media > File System and change the Temporary Directory value from /tmp to tmp.