• Trying to set up MAMP and use wordpress on my computer. All goes well until I try to connect with the localhost. I keep getting a 404 error.

    Tried using the http://localhost:8888/wordpress/wp-login.php and various configurations to no avail

    Here are my current settings:
    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’);

Viewing 1 replies (of 1 total)
  • /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost:8889’);

    It’s just ‘localhost’ … no need to add the port number here 🙂

Viewing 1 replies (of 1 total)

The topic ‘Localhost — keep getting 404 error’ is closed to new replies.