Support » Installing WordPress » Trying to Install on Apache; Gettin Error Message

  • Greetings,
    I am trying to install Word Press on an Apache host server for my domain
    I downloaded the WordPress files, unzipped them, then uploaded them into a folder in the server called “wordpress” or
    I then (as per instructions) opened the “wp-config-sample.php” page file, and entered the following information (password excluded and this is the entire page code):
    /** WordPress’s config file **/
    /** **/
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘wordpress’); // The name of the database
    define(‘DB_USER’, ‘admin_sports’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘#########’); // …and password
    define(‘DB_HOST’, ‘’); // 99% chance you won’t need to change this value
    // Change the prefix if you want to have multiple blogs in a single database.
    $table_prefix = ‘b2’; // example: ‘wp_’ or ‘b2’ or ‘mylogin_’
    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install to wp-includes/languages and set WPLANG to ‘de’
    // to enable German language support.
    define (‘WPLANG’, ”);
    /* Stop editing */
    $server = DB_HOST;
    $loginsql = DB_USER;
    $passsql = DB_PASSWORD;
    $base = DB_NAME;
    define(‘ABSPATH’, dirname(__FILE__).’/’);
    // Get everything else
    I then renamed the page “wp-config.php” and uploaded it back to the server at the wordpress folder.
    I then (as per instruction: Run the installation file. Relative to where you uploaded the files, it’ll be in wp-admin/install.php.) did just that…or what should be
    AND got an “error” message that the file could not be seen, or…
    The requested URL was not found on this server.
    Apache Server at
    When I went to open this page:
    I got this: “Error establishing a database connection! This probably means that the connection information in your wp-config.php file is incorrect. Double check it and try again.
    Are you sure you have the correct user/password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?”
    What did I do wrong, and why do the instructions NOT tell you to open:
    Zennie Abraham

Viewing 7 replies - 1 through 7 (of 7 total)
  • define('DB_HOST', ''); //
    Are you sure this is the location of your database???

    Moderator James Huff


    For DB_Host, you need the actualy URL of your MySQL database. I highly doubt that it’s in with /wordpress. It should either be at localhost or an entirely different URL. This also raises a few other concerns. Make sure that you have created a MySQL database. If you did, then DB_Host is that database’s URL, DB_Name is that database’s name, DB_User is that database’s user name, and DB_Password is that database’s password.

    So, am I to understand that I must spend $595 to establish a “MySQL Database”?
    Is there another (free) alternative to this? And why don’t the “famous 5 minute installation” instructions explain this?
    Also, I already use one server, so now I have to establish another host, right?

    I’m totally new at this, and don’t mind being stupid, because it won’t last long. So, I may have misread the info at MySOL, $595 was what I thought I was reading regardling licensing. OK. let me ask the stupid Q: where do you recommend I go to obtain a $5.95 charge. I think I should ask the folks who host my server. It’s just that I want to do all of this myself and learn as I go, so I don’t forget and gain a new skill set. See?

    Zennie, before you do anything else, have you asked your hosting provider and obtained confirmation that MySQL is not available? There are only very few providers around who don’t offer at least some sort of MySQL access. Esp. since PHP seems to be available (those two often go together).
    If it really isn’t possible to run WP on your current host, a search for “hosting” here, on the wiki and on google will give you more than enough pointers to get started.

    We had talked about our (SBS) using some kind of blog software like MT. They did encourage it, but I think I need to reopen the dialog.

    Moderator James Huff


    Known good hosting companies recommended by WordPress users. Most have good plans under $20/month, some are even under $10/month:

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Trying to Install on Apache; Gettin Error Message’ is closed to new replies.