exported site not working properly

Q:  recently exported my test site from drupal gardens to local machine. I was able to dump the database file, and was able to see the home page of the website.

On home page I got the following error message:

The specified file temporary://file9BUVSk could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.

When I try to login, or I click on rest of the links on the pages like About, Contact etc. I get an error message: Page not Found.

Can someone please help?

Could you provide a bit more information about your local environment please?  What operating system and web server are you running and what is the location of your site docroot?  For the moment, it sounds like you have 2 problems:

A:

  1. File permissions on the temporary directories.  Try adding write permissions for the web server's user (if you're using apache, this user might be "apache" or "www-data" or something else, depending on your environment) to your site's files directory and subdirectories.  This is most likely in the docroot under sites/<your site domain>/files You might need to change the owner of all your files to the web server's user as well, if you extracted your export as a different user.
  2. URL aliases/redirects are not working.  This can be a fiddly problem to solve and I'd need more information to solve, but here are a couple of things that can help if you're using apache as your webserver:
  • make sure your .htaccess file in the docroot is present
  • make sure your apache is configured with mod_rewrite on
  • make sure that apache has the "AllowOverride All" directive applied to wherever your docroot is
  • depending on where your docroot is, you might need to fiddle with the RewriteBase directive in .htaccess

 

As a temporary workaround for (2) until you can get rewrites working, add the following line to your sites/yoursite/settings.php file:

 

$conf['clean_url'] = FALSE;

你可能感兴趣的:(exported site not working properly)