0

I am running a webserver for Mantis BT. I have configured it on my laptop for test phase. The user's which I have created manually receive a URL for initial sign-up. they can only connect to me by replacing the localhost in the URL with my laptop name. is there any way to replace the localhost with my machine name in MySQL?

Matin
  • 131
  • 10
  • You should not need to, as the website code in on your PC and the MySQL Server is also on your PC, therefore the website database access code will still see the MySQL Server on localhost – RiggsFolly Sep 17 '15 at 16:17
  • That is unless you are trying to connect to the database directly from a remote client. Then all they should need is yor ip address and a user account that is setup to allow access from a remote ip. – RiggsFolly Sep 17 '15 at 16:20
  • There will be instances where I would be using Wifi or ethernet connection so the IP address would be different. So I thought of configuring localhost to my machine name. I just don't know where should I make the changes. – Matin Sep 17 '15 at 16:57
  • Then you need a dynamic dns address. See dyndns.com or noip.com – RiggsFolly Sep 17 '15 at 22:19

1 Answers1

1

Set g_path in config_inc.php. For example:

$g_path = "http://my-hostname/demo/mantis";
libregeek
  • 1,264
  • 11
  • 23
  • my hostname is "localhost". should I put my computer name in place of hostname in the $g_path ? – Matin Sep 21 '15 at 13:48
  • if you put localhost, then you may not be able to access Mantis from any other computer. You probably need to have a unique name for your computer and corresponding entries in a local DNS – libregeek Sep 22 '15 at 06:04