WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] trouble installing WP on local server (9 posts)

  1. Leslie Stitzlein
    Member
    Posted 1 year ago #

    I am trying to do a local install of WP. using this link:
    http://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMP

    I've gotten to step 4:
    “Lastly, we've got to run WordPress' famous 5-minute install. Visit your local site (localhost:port or localhost:port/wordpress), and enter the following information into the database setup form:

    database name: wordpress
    database host/server: localhost
    database user: root
    database password: root”

    This may be a dumb question, but i'm not sure what this means? What is my local site?
    Leslie Stitzlein

  2. lettergrade
    Member
    Posted 1 year ago #

    Your local site is the local server that MAMP creates for you to run your files on. When you go to MAMP and 'Open Start Page' you can tell what your localhost address is by the url that opens in the browser. i.e. it's either localhost/ or localhost:888 or localhost:8889 or whatever (those are the port numbers). So it's basically just the address of the folder your wordpress files are in.

    If you go to localhost/folder/wp-login.php (where 'folder' is the folder location you copied your WP files into, whatever the proper address for your setup is), you should get the installation page and it will ask you for the info above.

  3. Leslie Stitzlein
    Member
    Posted 1 year ago #

    Thanks for the info. I have a feeling this is a simple answer, but I can't see it at this point.

    I now understand the local site address. Mine is:
    http://localhost:8888/MAMP/?language=English

    I can't figure out your second paragraph though:
    “If you go to localhost/folder/wp-login.php (where 'folder' is the folder location you copied your WP files into, whatever the proper address for your setup is), you should get the installation page and it will ask you for the info above.”

    My document root is:
    /Applications/MAMP/htdocs

    So I tried:
    http://localhost:8888/applications/mamp/htdocs/admin_leslie.php

    This gives me a 404 error. I tried several combinations and nothing works. I'm not sure what my “wp-login” is. I have “admin_leslie” from another installation of WordPress, but it was with a hosting company, Host Gator. I also have my full name, from my login for WP forums support.

    Would very much appreciate help clarifying this.
    Thanks.

  4. lettergrade
    Member
    Posted 1 year ago #

    Close! Actually, htdocs is the root folder of the server that MAMP creates for you, so the 'Applications' and MAMP part aren't included in your localhost address.

    If your WordPress files have all been copied into htdocs, then the address for the login page is:

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

    If you put a folder called /wordpress/ in htdocs and then copied all your WordPress files there instead (for tidiness, or so you could have multiple installs for testing, etc), the address would be:

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

    Try that and let us know how it goes!

  5. oddeggdesign
    Member
    Posted 1 year ago #

    I'm having the same problem.

    Tried using the http://localhost:8888/wordpress/wp-login.php on two different browsers: Chrome and Safari. Still keep getting a 404 error

    Here are my current settings:
    Running OS X (10.7.5)
    MAMP:
    Apache port is 8888
    MySQL port is 8889
    PHP 5.3.5
    Document root: /Applications/MAMP/htdocs/wordpress
    Database: wordpress

    I've tried entering the above address after changing the wp-config-sample.php and saving to the same folder as wp-config.php:
    /** The name of the database for WordPress */
    define('DB_NAME', 'wordpress');
    /** MySQL database username */
    define('DB_USER', 'root');
    /** MySQL database password */
    define('DB_PASSWORD', 'root');
    /** MySQL hostname */
    define('DB_HOST', 'localhost:8889');

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    @oddeggdesign: As per the Forum Welcome, please post your own topic.Posting in an existing topic prevents us from being able to track issues by topic. Added to which, your problem - despite any similarity in symptoms - is likely to be completely different.

  7. oddeggdesign
    Member
    Posted 1 year ago #

    So Sorry. Don't know how to delete my post above.

  8. Leslie Stitzlein
    Member
    Posted 12 months ago #

    Whew, that worked, thanks! Sorry for the delay in posting, I got the install up and running last week, but didn't have a chance to make sure it was really working.
    Thanks so much for your help!

  9. lettergrade
    Member
    Posted 12 months ago #

    Excellent. Glad all is working well.

Topic Closed

This topic has been closed to new replies.

About this Topic