Logging In
The Login Page
You have to log in in order to edit or manage your site. There should be a "Login" link on the main page of your blog. Clicking that will take you to the login page where you can enter your username and password.
Your username and password were given to you at the end of your installation of b2evolution. They can be changed in the backoffice on the Users > User List.
If you need to access the login page directly you can do so at http://www.example.com/admin.php
Issues With Logging In
I can log in but b2evolution asks me for my password again and again / my cookies don’t hold.
In the backoffice under the Collections Tab, or in the file /conf/_basic_config.php
you have set an URL with a statement like this:
$baseurl = 'http://www.example.com';
Cookies will be set only for this URL and its subfolders. So the trick is: use that URL to access b2evolution, not another one!
In the above example, it means that if your website address is 172.192.45.104
for example, you cannot log in on http://172.192.45.104/admin.php
, you must use http://www.example.com/admin.php
!
For local tests, use
$baseurl = 'http://localhost';
Note: explicitly using "localhost" as hostname is not needed anymore in recent versions. The problem before was with hostnames without a dot, different from "localhost", http://b2test.local/
always worked
If it wasn’t working, and then you found and corrected the problem according to what you see here, but it still doesn’t work, then in some cases you may have to clear out your cache/cookies/temporary internet files before it starts working.
Logging in leads to an "Access Denied" page. What happened?
The login page leads to the Admin section (Back-Office Reference or Dashboard.) Basic users like Demouser do not have rights to access this page. If you want them to be able to log in, give them Blogger rights. You can set that in the Users section. In Site Settings -> General you can set the ‘Group for new users’.
Can I have the login page be the default page for my blog so users have to login to view the blog?
Yes. Go to the general settings of your blog and restrict its access.