你在这里

请教:提示“您无权访问此页面”

主标签

请教各位前辈一个问题,在网上下了个主题包,解压后将演示文件夹拷贝到网站相应目录并恢复相应的数据库。网页浏览一切正常,登录“localhost/***/user”的时候提示“You are not authorized to access this page.”

无法操作后台。

我尝试以下方法并未解决:

1.拷贝原有drupal网站的htaccess文件到演示网站根目录。

2.查看数据库用户表内只有admin一个用户。

3.通过update升级,提示Access denied. You are not authorized to access this page. Log in using either an account with the administer software updates permission or the site maintenance account (the account you created during installation). If you cannot log in, you will have to edit to bypass this access check. To do this:

  1. With a text editor find the settings.php file on your system. From the main Drupal directory that you installed all the files into, go to sites/your_site_nameif such directory exists, or else to sites/defaultwhich applies otherwise.
  2. There is a line inside your settings.php file that says $update_free_access = FALSE;. Change it to $update_free_access = TRUE;.
  3. As soon as the update.php script is done, you must change the settings.php file back to its original form with $update_free_access = FALSE;.
  4. To avoid having this problem in the future, remember to log in to your website using either an account with the administer software updates permission or the site maintenance account (the account you created during installation) before you backup your database at the beginning of the update process.
Drupal 版本: 

猜你喜欢