WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] No Luck with moving up from MAMP to host (4 posts)

  1. Dayr12
    Member
    Posted 2 years ago #

    I'm having major issues with moving the WordPress site I've built locally with MAMP to my host. The domain is http://ipolitech.com Here's the error the browser is spitting out:

    "Error establishing a database connection

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request..."

    I've followed the steps Chris Coyier lays out in his "Moving up with MAMP" screencast. For clarity's sake, here's what I've done:

    1. Downloaded the database (.sql format) from my local PHPMyAdmin.
    2. Created a database on my host and uploaded the contents from my local database
    3. Changed the "siteurl" and "home" in wp-options to the new domain**
    4. Upload all WordPress files via ftp to my root folder in my host
    5. Change wp-config.php to reflect the new credentials for the new database
    6. NO LUCK -- getting the error pasted above in all browsers
    **After having no luck with this, I also tried opening the database in a text editor, and using replace-all to replace every instance of "http://localhost:8888" with "http://ipolitech.com"

    This is my first time moving from a local environment to a host, and I am wondering if I'm missing something. Could my .htaccess file be causing the problems?

    Here's what my local .htaccess file looks like:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wordpress/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]
    </IfModule>

    # END WordPress

    Here's what I've changed it to on my host:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    I have no idea if .htaccess has anything to do with this, especially because the browser says it can't connect to my database...

    Thank you thank you thank you!

    Robbie Day

  2. Dayr12
    Member
    Posted 2 years ago #

    Here's my wp-config file that's on my host: http://pastebin.com/FUgnUt0F

  3. Elan Technosys
    Member
    Posted 2 years ago #

  4. Dayr12
    Member
    Posted 2 years ago #

    Okay, so my host at fatcow uses a different "hostname" than localhost. Got it figured it out!

    Thanks for the help though Elan!

Topic Closed

This topic has been closed to new replies.

About this Topic