Skip to main content

Apache

Apache server related solutions, issues and ideas

Drupal Error - The specified file 'temporary://filename' (Fix)

Error Message: The specified file 'temporary://filename' could not be copied because the destination directory.

This Drupal error can happen from two reasons

1. Temp Folder in Unix system is not set and matched in your settings.php

Drupal reads from your settings.php file to populate:

Public file system path
sites/default/files

Public file base URL
https://<google>.com/sites/default/files

Optimized assets file system path: sites/default/files

Private file system path
<path to private file system outside>

htaccess rules not taken (some rules but not all) (How to Fix)

The hierarchy of the .htaccess files is taken from

1)    Apache htdocs folder (/var/www/html)
2)    Local Webserver root folder (let us say website)

If your htaccess is present in the Local Webserver root folder (website) and all the changes are not being taken or some changes are taken but not all the rules are taken

1) Go a step above the Local Webserver root folder (website) and see if there is any other .htaccess file