Viewing 3 replies - 1 through 3 (of 3 total)
  • The vid shows the “old way” of editing the wp-config-sample file, which can and does lead to all sorts of problems. The best way, which works every time with MAMP, is to just let the WP install do it for you. At that point in the install, just click the Create Configuration File button and fill out the database connection info with what he provided:

    User: root
    Pwd: root
    DB Name: whatever you used … no spaces in the name
    Host: localhost
    Table Prefix: wp_ …leave as-is

    Did you use TextEdit to edit the wp-config file? If so, may be what the issue is as it’s default setting is to replace the single quotes with ‘smart quotes’, which won’t work. Always use a plain text editor, such as TextWrangler to do so.

    Another thing from the vid … he says for the database name “wordpress four oh” but types a zero. Which did you use? 🙂

    Thread Starter ladykittysoftpaw

    (@ladykittysoftpaw)

    Hi Lyle,

    Thank you for that advice but i am stuck at calling localhost itself, before to make the Create Configuration File button” I think.

    I have figured out this localhost address
    http://localhost:8888/tuts+/wordpress/wp-admin/setup-config.php
    then got the error message below:
    Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.

    But i have changed the db name, user name and password already and rename the sample file to wp-config-org.php.

    Thus, I changed the localhost server address to
    http://localhost:8888/tuts+/wordpress/wp-admin/wp-config-org.php

    and then now, the html shows blank!

    Any clue??

    Thank you!
    Ladykittysoftpaw

    The file is to be renamed to wp-config.php

    Where are the WP files from the download?

    In the tuts+ folder or the tuts+/wordpress folder?

    What I would suggest is to just start over 🙂

    Try this, using the example names given:

    – create a new database and name it wordpress2
    – create a new folder within Applications/MAMP/htdocs and name it wordpress2
    – from the extracted WP zip download, copy all the files and folders from within the wordpress folder into wordpress2
    – in your browser, enter:

    http://localhost:8888/wordpress2 to start the install

    — select language and Continue
    — click Let’s go!
    — on the database page enter:

    — Database Name: wordpress2
    — User Name: root
    — Password: root
    — Database Host: localhost
    — Table Prefix: wp_ <leave as-is>
    — Submit

    — “Alright, sparky!” , click Run the install
    — Site Title: whatever you like
    — Username: whatever you like <this is for the WP site login>
    — Password: a strong password
    — a properly formatted email address
    — for a local install, uncheck the Privacy item
    — Install WordPress
    — on the Success page, enter the Username and Password you just entered for the WP site and click Log in 🙂

    To view the front end of the site, use:

    http://localhost:8888/wordpress2

    To get to the site log in page, enter:

    http://localhost:8888/wordpress2/wp-admin

    or

    http://localhost:8888/wordpress2/wp-login.php

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Can't get localhost installation working’ is closed to new replies.