Title: Can&#039;t get localhost installation working
Last modified: August 30, 2016

---

# Can't get localhost installation working

 *  [ladykittysoftpaw](https://wordpress.org/support/users/ladykittysoftpaw/)
 * (@ladykittysoftpaw)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/httplocalhost8888tutswp-admininstallphp/)
 * Hello,
 * can anyone help me on solving issue to install wordpress locally?
 * i am following this guide
    [https://webdesign.tutsplus.com/courses/a-beginners-guide-to-using-wordpress/lessons/installing-wordpress-locally](https://webdesign.tutsplus.com/courses/a-beginners-guide-to-using-wordpress/lessons/installing-wordpress-locally)
 * but [http://localhost:8888/tuts+/wp-admin/install.php](http://localhost:8888/tuts+/wp-admin/install.php)
   does not work as the error message is
 * > Error establishing a database connection
   >  This either means that the username
   > and password information in your wp-config.php file is incorrect or we can’t
   > contact the database server at localhost. This could mean your host’s database
   > server is down.
   > Are you sure you have the correct username and password?
   >  Are you sure that
   > you have typed the correct hostname? Are you sure that the database server 
   > is running? If you’re unsure what these terms mean you should probably contact
   > your host. If you still need help you can always visit the WordPress Support
   > Forums.
 * Thank you!

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

 *  [LyleChamney](https://wordpress.org/support/users/lylechamney/)
 * (@lylechamney)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/httplocalhost8888tutswp-admininstallphp/#post-6193909)
 * 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](https://wordpress.org/support/users/ladykittysoftpaw/)
 * (@ladykittysoftpaw)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/httplocalhost8888tutswp-admininstallphp/#post-6193999)
 * 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](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](http://localhost:8888/tuts+/wordpress/wp-admin/wp-config-org.php)
 * and then now, the html shows blank!
 * Any clue??
 * Thank you!
    Ladykittysoftpaw
 *  [LyleChamney](https://wordpress.org/support/users/lylechamney/)
 * (@lylechamney)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/httplocalhost8888tutswp-admininstallphp/#post-6194000)
 * 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.

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 3 replies
 * 2 participants
 * Last reply from: [LyleChamney](https://wordpress.org/support/users/lylechamney/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/httplocalhost8888tutswp-admininstallphp/#post-6194000)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
