Hi, i'm new at drupal, and just made it to migrate from server to localhost a website they sent me, but now when i try to run update.php i get this message:
Access denied
Access denied. You are not authorized to access this page. Please log in as the admin user (the first user you created). If you cannot log in, you will have to edit settings.php to bypass this access check. To do this:
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_name if such directory exists, or else to sites/default which applies otherwise.
There is a line inside your settings.php file that says $update_free_access = FALSE;. Change it to $update_free_access = TRUE;.
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;.
To avoid having this problem in future, remember to log in to your website as the admin user (the user you first created) before you backup your database at the beginning of the update process.
So I made the changes that this message suggests, but i still can't run update.php.
I even thought it was a problem of logging in the website as an adminsitrator, so I searched in myphpadmin the "users" table to check the nickname and password to enter as an admin, but they don't work (it says me they are incorrect).
What do you suggest?
Comments
=-=
if you were using the password exactly as it is stored in the DB, you can't. It's excrypted in the DB
ensure the change you made to settings.php actually saved. if the file was protected (with file level perms) then it's highly probable that TRUE remained FALSE
i have complete control on
i have complete control on any of these files, but what i didn't know is that the people who made the website disactivated the admin account and i had to use another one. so they give me another nickname and password that i could use as administrator. problem solved thanks.