Support » Installing WordPress » Take your pick

  • Resolved arn213


    Things I know.Have successfully installed XAMPP.Since it is for a “local” install I have downloaded and unzipped WP2.02 then copied and pasted it into htdocs.If I create a wp-config.php file and then try to install WP2.02 I get the long error message about header information already sent(I have the actual error message but I can’t get it to end up here by either cutting and pasting or copying and pasting).If I delete wp-config.php and try to create one during the install I get the “error establishing a database connection”. I have created a database for WordPress.I have followed all the steps by Podz in his Xampp article.Even followed suggestions from a forum on possible solutions, none of which are working for the removeable tray hard drive that I am trying to put WordPress on.This same scenario is working fine on this hard drive. Or in other words when I do I get my Blog on this hard drive.

Viewing 9 replies - 1 through 9 (of 9 total)
  • There is likely some whitespace in your wp-config.php that you need to get rid of. I did a Xampp install of 2.0.2 into xampp/htdocs/wordpress this morning with no problems.

    Welcome to the WordPress Support Forums!

    Please help keep the Forums successful by reading:
    Using the Support Forums

    Also, remember the WordPress Codex and the FAQ pages.

    And, thank you, for letting us know if this information proves useful (or not)!

    Hi Michael
    Question, If it is a whitespace problem with wp-config.php Why doesn’t deleting it and doing the next step(creating it as suggested in the next step)work?

    The pertinent parts of wp-config.php I have:

    define('DB_NAME', 'wpdb'); // The name of the database
    define('DB_USER', 'root'); // Your MySQL username
    define('DB_PASSWORD', ''); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value

    Thanks, I appreciate your responses. I will google whitespace.I must not understand what you mean by whitespace(entirely possible).

    Whitespace means a blank space or line.

    The wp-config file must have no whitespace (as defined above) before the opening <?php tags, that is usually the cause of the headers error.

    Good luck,

    Thanks again. That’s what I tought whitespace meant, though googling it also brings a programming language by that name.But I am still missing something here as how would whitespace affect a deleted wp-config.php file? I can understand that if in any of the three places that you have to enter something you left a space or even more that you have created a whitespace error.

    i.e.instead of ‘wordpress’ you went with ‘ wordpress’ for your database.As you know deleting wp-config.php causes wordpress to allow you to enter the three items in your browser which then either accepts them or rejects them. If accepted it gives you a password enabling you to login.

    If you’ve deleted the file then the file is gone, so whitespace or not the file has no effect on it. You do need the wp-config.php file for WP to operate.

    I think I’m a little confused as to where exeactly you are and what the problem is?

    I’m stuck at step two(see orginal post)which won’t work on the removeable tray drive that I’m trying to do another local install on.

    This procedure, process, way of doing it or whatever term you care to use worked fine on the hard drive that I’m now on.Step two as I see it is the step where if wordpress likes what you have entered in wp-config-sample and renamed wp-config.php does the install, asks you if you want the password emailed to you and gives you a log-in screen after that.

    If there isn’t a wp-config.php, wordpress asks wether you want to do one in your browser. In my case regardless of wether I create a wp-config.php or delete the made one the only thing that changes is the error message.

    Just for the record I have done 3 installs of WordPress. 2 via Fantasico on different web hosts and one local install. My present problem to reiterate is a attempted local install of wordpress on a removeable tray hard drive and am trying to figure out what I’m doing wrong.

    Did enought lurking in support to solve my problem. It seems on a local install that you use wordpress, root and no password=meaning don’t put one,to get you onto the next step.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Take your pick’ is closed to new replies.