Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Localhost on Cossacks

  1. #1
    Hoss212 is offline x10Hosting Member Hoss212 is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    57

    Localhost on Cossacks

    I have noticed that the movement with mysql back to localhost with cossacks has been complete. However my forums are still not up, do I have to change the host from mysql.x10hosting.com to localhost? If so, how because i'm totally stuck...

  2. #2
    Christopher's Avatar
    Christopher is offline Retired Christopher is an unknown quantity at this point
    Join Date
    Jun 2006
    Location
    USA
    Posts
    7,330

    Re: Localhost on Cossacks

    You need to change the host back to localhost.
    What script are you using?

  3. #3
    Hoss212 is offline x10Hosting Member Hoss212 is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    57

    Re: Localhost on Cossacks

    SMF - Simple Machines Forum. How to change the host to localhost?

  4. #4
    Christopher's Avatar
    Christopher is offline Retired Christopher is an unknown quantity at this point
    Join Date
    Jun 2006
    Location
    USA
    Posts
    7,330

    Re: Localhost on Cossacks

    Open the file settings.php
    Find
    ########## Database Info ##########

    change
    $db_server = 'mysql.x10hosting.com';
    to
    $db_server = 'localhost';

  5. #5
    Hoss212 is offline x10Hosting Member Hoss212 is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    57

    Re: Localhost on Cossacks

    Working like a charm now! Thanks mate, cheers!

  6. #6
    nbaulch's Avatar
    nbaulch is offline x10Hosting Member nbaulch is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    geelong, Australia
    Posts
    29

    Re: Localhost on Cossacks

    I am having the same trouble locating where to make this change. I am using Coppermine image gallery and have searched the config.php which redirected me to admin.php.
    I cannot find the mysql.x10hosting.com $db_server =

  7. #7
    Synkc's Avatar
    Synkc is offline Lord Of The Keys Synkc is an unknown quantity at this point
    Join Date
    Jun 2007
    Location
    Hervey Bay, Australia
    Posts
    1,765

    Re: Localhost on Cossacks

    Quote Originally Posted by nbaulch View Post
    searched the config.php which redirected me to admin.php.
    Are you visiting the url directly?
    You need to open the config file either with a file editor, or with the file manager in your cPanel.
    E-mail: synkc[at]x10hosting[dot]com
    Hirokima.com

  8. #8
    nbaulch's Avatar
    nbaulch is offline x10Hosting Member nbaulch is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    geelong, Australia
    Posts
    29

    Re: Localhost on Cossacks

    Quote Originally Posted by Synkc View Post
    Are you visiting the url directly?
    You need to open the config file either with a file editor, or with the file manager in your cPanel.
    I have been using the file manager in my cpanel. When I open the config.php I am getting: (without the slashes through the words)

    define('IN_COPPERMINE', true);
    require('include/init.inc.php');
    if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);


    $redirect = "admin.php";
    $message = <<< EOT
    You are trying to access Coppermine's <a href="admin.php">config page</a> using an outdated link - the file config.php has been renamed to admin.php. You probably updated your site and haven't changed your theme as suggested in the <a href="docs/theme/">theme upgrade guide</a>.<br />
    You are now being redirected to the actual page you were looking for.
    EOT;
    pageheader($lang_info, "<meta http-equiv=\"refresh\" content=\"100;url=$redirect\" />");
    msg_box($lang_info, $message, $lang_continue, $redirect);
    pagefooter();
    ob_end_flush();
    ?>

    When I visit the url directly I am getting:

    Coppermine critical error:
    Unable to connect to database !

    MySQL said: Lost connection to MySQL server at 'reading initial communication packet', system error: 110


    I gathered that meant I have to open the admin.php... when I did I could not find anything like mysql.x10hosting.com :dunno:

    BTW Thanks for your quick response
    Edit:
    oh..

    username: nbaulch

    www.baulch.x10hosting.com
    cossacks

    my image gallery is located at

    www.baulch.x10hosting.com/gallery
    Last edited by nbaulch; 01-24-2008 at 04:37 AM. Reason: Automerged Doublepost

  9. #9
    Synkc's Avatar
    Synkc is offline Lord Of The Keys Synkc is an unknown quantity at this point
    Join Date
    Jun 2007
    Location
    Hervey Bay, Australia
    Posts
    1,765

    Re: Localhost on Cossacks

    I'm downloading a copy of Coppermine at the moment so I can try and sort this out. I'll post back in a sec.
    E-mail: synkc[at]x10hosting[dot]com
    Hirokima.com

  10. #10
    Synkc's Avatar
    Synkc is offline Lord Of The Keys Synkc is an unknown quantity at this point
    Join Date
    Jun 2007
    Location
    Hervey Bay, Australia
    Posts
    1,765

    Re: Localhost on Cossacks

    Okay, the config settings for the database appear in the "config.inc.php" in the "includes" directory.

    Simply change the $CONFIG['dbserver'] variable to equal 'localhost'.
    E-mail: synkc[at]x10hosting[dot]com
    Hirokima.com

Closed Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Ad-Free(Cossacks) Move to localhost
    By Corey in forum Service Alerts
    Replies: 50
    Last Post: 01-26-2008, 09:44 PM
  2. MySQL server on Cossacks
    By NexterCM in forum Free Hosting
    Replies: 7
    Last Post: 01-21-2008, 06:24 PM
  3. Cossacks Down A lot?
    By Twiggy in forum Free Hosting
    Replies: 4
    Last Post: 12-23-2007, 05:53 PM
  4. Connect to localhost MySQL
    By kolodude in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 11-01-2007, 01:09 PM
  5. cossacks server?
    By retro-bliss in forum Free Hosting
    Replies: 9
    Last Post: 10-15-2007, 01:50 PM

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