Forums | Mahara Community
Support
/
forbidden administration section
20 September 2009, 19:18
I'm trying to access the administration section and a pink line comes up that says "you are forbidden." How do I get there? I'm looking in my notes and can't find any admin password that I may have created.A post by Craig Eves was deleted
20 September 2009, 20:39
Naturally, only admins can log in to the admin section. Are you an administrator, e.g. the admin user?
You could have possibly taken your own admin powers away from yourself by mistake. If that's the case, you'd need to go into the database, look in the usr table and set the 'admin' field to 1 for your user, then log out and in again - that should restore your admin powers.
20 September 2009, 20:57
Connected to the server and took the following steps.
Inside "public html"
inside "admin"
inside "users"
opened "admins.php" And saw the script below. Is the bold what I change to one? Or is it somewhere else?
db_begin();
execute_sql('UPDATE {usr}
SET admin = 0
WHERE admin = 1');
Thanks for your help.
Ricardo
20 September 2009, 22:23
You'll need to connect to your database and set the 'admin' field to 1 in the 'usr' table for the user you are logged in as.
Editing the code under the admin directory won't help because you can't get to those pages at the moment anyway.
21 September 2009, 16:03
I know these are novice questions but here goes:
How do I connect to my database?
Once inside the database, where do I find the "usr" table?
Ricardo