Closed Thread
Results 1 to 6 of 6

Thread: Website down?

  1. #1
    soulhaven is offline x10Hosting Member soulhaven is an unknown quantity at this point
    Join Date
    Oct 2009
    Location
    Dunedin, New Zealand
    Posts
    12

    Website down?

    I do apologize if there is already a thread for this, but I couldn't spot it.

    I cannot visit or edit my website at the moment. It comes up (in very big type): Error establishing a database connection.

    I noticed it the other day, but thought it might have just been a one-day thing. But it seems not. Could someone diagnose the problem? Is anyone else having issues? My website was Wordpress-based.

  2. #2
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,436

    Re: Website down?

    Check in the wp-config.php file that the DB_HOST is correctly set to localhost.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  3. #3
    soulhaven is offline x10Hosting Member soulhaven is an unknown quantity at this point
    Join Date
    Oct 2009
    Location
    Dunedin, New Zealand
    Posts
    12

    Re: Website down?

    OK... I just used Softaculous (or whatever its called) to install WP, so I have no idea where to find that )o: Sigh, if I didn't have to work as well as work on my book then I would study web design and know all this stuff...
    Edit:
    I found in my file manager a file called setup-config.php in the wp-admin folder.

    I found two mentions of localhost:

    <input name="dbhost" id="dbhost" type="text" size="25" value="localhost" />

    case "define('DB_HOST'":
    $configFile[$line_num] = str_replace("localhost", $dbhost, $line);

    I have very little idea of what I am looking at....
    Last edited by soulhaven; 01-20-2010 at 07:47 PM. Reason: Automerged Doublepost

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,633

    Re: Website down?

    Log onto cPanel
    Click on File Manager
    Go to public_html
    Scroll down the list of files and find wp-config.php
    Click/select
    Click on "Edit" icon (about middle way across) on top of File Manager
    Edit as instructed.
    Click on "Save Changes"
    Edit:
    EDIT/ADD:

    Quote Originally Posted by soulhaven View Post

    I found in my file manager a file called setup-config.php in the wp-admin folder.
    It is in the folder above that.
    It is called wp-config.php
    The line is near the top and it looks like

    Code:
    /** MySQL hostname */
    define('DB_HOST', 'localhost');
    Last edited by descalzo; 01-20-2010 at 07:52 PM. Reason: Automerged Doublepost
    Nothing is always absolutely so.

  5. #5
    soulhaven is offline x10Hosting Member soulhaven is an unknown quantity at this point
    Join Date
    Oct 2009
    Location
    Dunedin, New Zealand
    Posts
    12

    Re: Website down?

    THANK YOU!!

    The step-by-step instructions were exactly what I needed! Extremely grateful.

  6. #6
    adamparkzer is offline On Extended Leave adamparkzer is just really nice
    Join Date
    Jun 2008
    Location
    IL, USA
    Posts
    3,745

    Re: Website down?

    Quote Originally Posted by soulhaven View Post
    THANK YOU!!

    The step-by-step instructions were exactly what I needed! Extremely grateful.
    Hi soulhaven,

    Now that you have been given a solution to your problem, and it seems like you are satisfied with the answer you received, I am going to close this ticket to mark it as resolved. Feel free to create a new support ticket if you need more help or have any additional questions.

    - Adam

Closed Thread

Similar Threads

  1. A new website...Help and ideas needed.
    By VeggieBoy in forum Off Topic
    Replies: 9
    Last Post: 05-29-2009, 12:03 AM
  2. Looking for partner in website development
    By parshatim in forum The Marketplace
    Replies: 3
    Last Post: 12-06-2006, 05:27 PM
  3. googkle.com
    By dsfreak in forum Off Topic
    Replies: 17
    Last Post: 07-12-2006, 05:09 PM
  4. Showcase Website Awards
    By Kay in forum Graphics & Webdesign
    Replies: 2
    Last Post: 10-15-2005, 03:28 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers