Support » Installing WordPress » Xampp with WP: A better tutorial?

  • http://www.tamba2.org.uk/wordpress/xampp/

    This is the page I have had come up in my google searches for how one might install wordpress and using xampp for testing your wordpress on your local machine first.

    Anyhow, I find this tutorial not to be specific enough. Im lost on a few things. One being the order of which you create a sql account (“wordpress” being the default name) and username/password. Which do i do first?

    Secondly, I am trying to understand how one generates the config PHP file. I had seen there on the above link that it is a matter of coding it manually. However on other informational pages, it looks like wordpress will do that for you.

    Overall I wish there was a clearer way to get this to work.

    -Kat

Viewing 15 replies - 1 through 15 (of 51 total)
  • 1. I don’t think the order matters. Create a database and the user is (usually) root. On that local install you don’t even really need pw, but for security reasons XAMPP will bug you to do so 🙂

    2. No, WP does NOT create the wp-config (better to say, don’t let it do), just do it in the old-fashioned manual way. You have to put in 4 words in the sample file.

    Is there anything in that site shown that you could clarify, give me better detail of? do you mean that the user is “root” literally or that it is the root directory name?

    -Kat

    Literally. At least on my XAMPP install.
    I remember I’ve created a database named “test” (I was as scared of the whole process as you are now:), then without “asking” me the user in it was ‘root’… and things just started to work.

    Hmm

    getting this error:

    define(‘DB_NAME’, ‘wordpress’); // 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 // You can have multiple installations in one database if you give each a unique prefix $table_prefix = ‘wp_’; // Only numbers, letters, and underscores please! // Change this to localize WordPress. A corresponding MO file for the // chosen language must be installed to wp-includes/languages. // For example, install de.mo to wp-includes/languages and set WPLANG to ‘de’ // to enable German language support. define (‘WPLANG’, ”); /* That’s all, stop editing! Happy blogging. */ define(‘ABSPATH’, dirname(__FILE__).’/’); require_once(ABSPATH.’wp-settings.php’); ?>
    Warning: require_once(ABSPATH/wp-admin/admin-functions.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampplite\htdocs\wordpress\wp-admin\upgrade-functions.php on line 3

    Fatal error: require_once() [function.require]: Failed opening required ‘ABSPATH/wp-admin/admin-functions.php’ (include_path=’.;C:\xampplite\php\pear\’) in C:\xampplite\htdocs\wordpress\wp-admin\upgrade-functions.php on line 3

    I have the following in my wp-config.php file

    define(‘DB_NAME’, ‘wordpress’); // 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

    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = ‘wp_’; // Only numbers, letters, and underscores please!

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to ‘de’
    // to enable German language support.
    define (‘WPLANG’, ”);

    /* That’s all, stop editing! Happy blogging. */

    define(‘ABSPATH’, dirname(__FILE__).’/’);
    require_once(ABSPATH.’wp-settings.php’);
    ?>

    Basically I copied and pasted verbatim in the way that that tamba2.co.uk page told me to. They dont mention if i am to replace the contents with my directory name and such or not. Thats what strikes me as the part that doesnt seem to be written clearly. Anyhow, now what?

    You should turn on PHP. If you see all that “garbage” PHP is not running on your server.

    And how do I do that?

    Sorry, I really can’t remember. Don’t forget, please, that setting up a local server on your own computer is not a genuine WordPress question.
    I assume XAMPP also has intructions, user manual… something. We try our best to help WP users, but there are certain issues which are beyond the scope of this forum. Like troubleshooting your local server.
    When the server is up and running we will be glad to help you with WP install if it is needed.

    … and to follow up: XAMPP has that little app (orange X) running down in your tray. The Xampp control panel I think it is called. Click it and make sure that Apache and MySQL are both “running”. If not, click the start buttons.

    Well both were started (apache and mysql)

    Im still getting that error. could it have to do with teh config file?

    Unzip the download
    Open the folder that is mde until you see the one called just ‘wordpress’

    xampp/httpdocs/
    You copy the entire wordpress folder into that directory

    wp-config-sample.php
    Rename that to
    wp-config.php

    For an ‘out of the box install’ you edit wp-config.php to have these details (as detailed on the xampp page)
    You edit with Notepad, BBedit, Notepad++ or similar. Nothing else. Just plain text editors.

    define('DB_NAME', 'wordpress'); // 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

    You change nothing.

    If you have then done everything, it will work.

    My wordpress folder is located here:

    C:\xampplite\htdocs

    Following from the Tamba page I created a database called “wordpress”

    I dont think I ever created a username/password for the Tamba page did not really specify to do so.

    So right now my wp-config.php reads like this:

    define(‘DB_NAME’, ‘wordpress’); // 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

    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = ‘wp_’; // Only numbers, letters, and underscores please!

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to ‘de’
    // to enable German language support.
    define (‘WPLANG’, ”);

    /* That’s all, stop editing! Happy blogging. */

    define(‘ABSPATH’, dirname(__FILE__).’/’);
    require_once(ABSPATH.’wp-settings.php’);
    ?>

    You might consider nuking everything and starting over, sounds like you probably screwed something up along the way

    If you are having issues with the XAMPP install I would give Web Server On a Stick a try. (http://www.chsoftware.net/en/useware/wos/wos.htm) … its free and abotu as simple as it gets.

    I have done this “starting over” at least twice. Like I said, I think that the tamba tutorial really doesnt do well. I try and follow it verbatim and no matter what I get the same result. You might be right on using something outside of Xammp, desptie that someone who uses wordpress and is experienced in web design has sworn by it.

    Would there be a tutorial for Web Server On a Stick that I could look at and see if that one works better?

    I have never used XAMPP, I have only heard of it being a nice package. I have never tried to use the Tutorial on Tamba, but after looking it over it looks like it might not be complete or atleast out dated. Webserver On a Stick is as simple as you unzip and install the program. After that you load up http://localhost/phpmyadmin/ , create a database and create a user who has access to that database. Grab a copy of WordPress and install it to the www/ directory that WOS creates. After that load up the browser and head over to http://localhost/wordpress (or whatever you called it) and follow the installer…

Viewing 15 replies - 1 through 15 (of 51 total)
  • The topic ‘Xampp with WP: A better tutorial?’ is closed to new replies.