Default password after installation not working

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
apxy

Default password after installation not working

Post by apxy »

Hi,
I am trying to install mantis (version 1.2.15) locally on my laptop running Ubuntu (12.04). I extracted the tar.gz file to /var/www (the so-called local web server), then renamed the directory to 'mantis'. Then in the web browser, I entered http://localhost/mantis, which is correctly redirecting to http://localhost/mantis/admin/install.php, but it is asking me for a user name and password. I entered the following combinations:
  • administrator, root
  • root, {empty}
Neither works. Then I created a database using phpMyAdmin named 'bugtracker', and added an user 'mroot' with password 'mroot', and gave this account full privileges. I updated mantis's config_inc.php with this information, and tried again. This doesn't work either. What should be the password I enter here to proceed with the mantis installation?
atrol
Site Admin
Posts: 8549
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Default password after installation not working

Post by atrol »

apxy wrote:I updated mantis's config_inc.php with this information, and tried again.
Remove config_inc.php and start again install.php with mroot / mroot
Please use Search before posting and read the Manual
apxy

Re: Default password after installation not working

Post by apxy »

Thanks for the response. I am afraid that doesn't work either. But how would mantis know that there's a user named mroot, if it is not added to config_inc.php or any other place?
atrol
Site Admin
Posts: 8549
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Default password after installation not working

Post by atrol »

mroot is the database user you created.
This database user is needed for the installation process to create the MantisBT database tables.
The user you entered will be added to config_inc.php by the installation process.
This database user will be used for the MantisBT web application to store the MantisBT data in database.

administrator with password root is the first MantisBT user which is created by the installation process.
You will use this user for your first login to MantisBT.

database users and MantisBT users are complete different things.
Please use Search before posting and read the Manual
apxy

Re: Default password after installation not working

Post by apxy »

atrol wrote:mroot is the database user you created.
This database user is needed for the installation process to create the MantisBT database tables.
No, 'bugtracker' is the database I created, mroot is a user.
atrol wrote: administrator with password root is the first MantisBT user which is created by the installation process.
You will use this user for your first login to MantisBT.
This is exactly the problem. I made a clean installation of mantis from the tar.gz, and without making any other change, I tried logging in with (administrator, root) combination, but it keeps asking me for the password and doesn't log me in to mantisBT.
login message snapshot
login message snapshot
mantis_login.png (15.88 KiB) Viewed 85137 times
atrol
Site Admin
Posts: 8549
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Default password after installation not working

Post by atrol »

apxy wrote:
atrol wrote:mroot is the database user you created.
This database user is needed for the installation process to create the MantisBT database tables.
No, 'bugtracker' is the database I created, mroot is a user.
:?: this is what I wrote, maybe the bold database confused you.
apxy wrote:I tried logging in with (administrator, root) combination, but it keeps asking me for the password and doesn't log me in to mantisBT.
mantis_login.png
The screenshot does not show any MantisBT dialog. This is a dialog of your web server.
Please use Search before posting and read the Manual
apxy

Re: Default password after installation not working

Post by apxy »

atrol wrote: :?: this is what I wrote, maybe the bold database confused you.
Right, sorry about that.
apxy wrote:The screenshot does not show any MantisBT dialog. This is a dialog of your web server.
Okay, where do I look for help to figure out why the web server is not accepting the password? The "web server" is locally on my laptop, and this dialog box is preventing me from getting to mantis installation. Not sure what password it is asking for.
atrol
Site Admin
Posts: 8549
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Default password after installation not working

Post by atrol »

Please use Search before posting and read the Manual
apxy

Re: Default password after installation not working

Post by apxy »

I already tried that. Gone through the first 4 pages of Google search, tried everything, none of which worked. I am able to access other web pages on localhost without any trouble, but the problem seems to be only occuring with mantis, so I thought it has something to do with mantis.
atrol
Site Admin
Posts: 8549
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Default password after installation not working

Post by atrol »

No idea at the moment.
Which user is owner of the directory mantisbt?
Which user is runnig the web server?

I noticed that the access rights of the main directory is just rwx------ and all other files are rw-r--r--
Maybe

Code: Select all

chmod 755 /var/www/mantis
fixes your issue.

Compare the owners / groups and access rights with your other pages.
Please use Search before posting and read the Manual
apxy

Re: Default password after installation not working

Post by apxy »

I changed the permissions to 777, and even gave the laptop's root password. Doesn't work.
atrol
Site Admin
Posts: 8549
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Default password after installation not working

Post by atrol »

I set up a complete fresh Ubuntu 12.04.
installed apache2, myqsl, php5, php-mysql
downloaded and unpacked MantisBT to /var/www/mantis
chmod 777 mantis
run localhost:/mantis
entered the password for user root of mysql on MantisBT installation dialog (I did only enter the first user for convenience as this user will be taken also to create the database if the second user is not entered)
click the button to run the installation.
got no errors
click the link to create first project
entered user administrator password root on login screen of MantisBT
create my first project
...

No problems at all.
Please use Search before posting and read the Manual
Post Reply