Direct Access to this location is not allowed..

Error

Direct Access to this location is not allowed.
Or:
Warning! - Failed to move file

Cause

The cause of this could be attributed to multiple sources. One possibility is that Joomla! does not have writable access to key directories. Another possibility is that the Joomla! has been been installed with incorrect ownership rights.

Solution

1.) The first thing you should do is login to your File Transfer Protocol Client (FTP), and check the following directories are set to writable (777).

/joomlaroot/templates
/joomlaroot/tmp

Another way to fix this problem is to provide your FTP login details to Joomla!'s global configuration. If Joomla! has the correct file ownership permissions (see below) the directory write errors can be fixed automatically.

2.) If you are still having problems then the problem is probably an ownership issue. You will need to go to the apache user groups and chown Joomla!'s user group to have ownership of the website directories.

You can do this by running this command in apache:

sudo chown -R www-data:www-data joomlaid - *Where 'joomlaid' is the Joomla! root directory*

Note: If you are unfamiliar with Apache ownership settings I strongly advise you contact your hosting company and ask them to make these changes for you.

Twitter facebook facebook