Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7943443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:16:37+00:00 2026-06-04T00:16:37+00:00

i have a website with Joomla 2.5.4, in the configuration file the DB host

  • 0

i have a website with Joomla 2.5.4, in the configuration file the DB host is coded as localhost. i know the DB name, username, password to access. But not the URL to access the Host. is that Possible to get the information without logging in to C PANEL etc..

in some situations my client fails to give me the url to access DB, if iopen the configuration file, there it says LOCALHOST.

Is there any other way to find out?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:16:38+00:00Added an answer on June 4, 2026 at 12:16 am

    If the configuration.php has localhost then it should be the same as the website/the ip address of the website. Remember ‘localhost’ is just a synonym for the current computer.

    I’m not sure why you would want the URL though.

    If you’re writing a software extension for Joomla! you don’t need the database details you can just get the database object from the framework, eg. $db = JFactory::getDBO();

    If you writing a PHP script external to Joomla! you can just use localhost in your connection code e.g..

    $mysqli_connection = new MySQLi('localhost', 'user', 'pass', 'db');
    

    To check for errors in the connection you would the check the value in $mysqli_connection->[connect_error][2]

    If you want to do a remote connection then the websites address will generally do if the configuration states localhost (obviously if it doesn’t have local host or an equivalent then the value will be the database servers address), but you will also need to setup the remote access through cPanel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website running Joomla! (it's not mine, so I don't know how
I have a Joomla 1.0 website running on a shared host which I don't
actually I have my website build with Joomla hosted on hostmonster but all Joomla
I have a Joomla! 1.5.23 website running Artio for SEF urls. Complete configuration: JoomSEF3
I have multilingual website in joomla and want to hide one menu item (not
I have a Joomla-Based website and as far as I know, the only way
I had created my website on localhost under a subdirectory joomla. Now I have
I have to build a News based website but I am not sure whether
i have my joomla website on my localhost. i like to see how it
We have a Joomla website which we want to copy over to another host

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.