WordPress.org

Forums

[resolved] confuzed newbie about local and remote installation (11 posts)

  1. Ciryaquen
    Member
    Posted 7 years ago #

    I use OS X.3 and have a shared webhosting package on Godaddy. I planned to install WordPress in a subdomain, and haven't set up anything yet on my Mac or Godaddy site.

    I'm a little confuzed.

    I know I need to:
    * setup/activate php and mySQL on my Mac to run a local copy of WP (for testing and such)
    * setup/activate the mySQL database on Godaddy and use its settings (as it is the 1% that don't use "localhost") for WP.

    Ok. But! what do I need to do with the local copy and the remote copy? Do I need to keep them named the same? (i.e. make a directory named like the subdomain, and where do I put it? my home folder?) Can I use the local copy for testing out other blogs I might want to use on my other host? Or do I need to have multiple local copies - one for each remote host?

    My understanding is that I only need the local copy for testing purposes, so I'm not experimenting (e.g. with a new css or template) with the live blog. This sounds like a fine idea.

    I realize this must seem obvious, but I'm a newbie.

  2. vkaryl
    Member
    Posted 7 years ago #

    I name my local folders the same as my hosted folders for simplicity - there are too many of them (blogs) to keep track of (7 or 8, I forget) if they all have different names.

  3. Ciryaquen
    Member
    Posted 7 years ago #

    OK. Do I need to do more than one installation or do I just make multiple folders for the local copy? Do these go in my home folder?

    Sorry. Like I said... confuzed newbie.

  4. James
    Happiness Engineer
    Posted 7 years ago #

    Here's what you need to do:

    1. Install WordPress locally on your Mac by following this tutorial: http://maczealots.com/tutorials/wordpress/

    2. Move WordPress (when ready) to your GoDaddy server by following this tutorial: http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_to_a_New_Server

  5. Ciryaquen
    Member
    Posted 7 years ago #

    I decided to take the plunge and install WP directly on the remote server. :) Afterall, if I kill my other wise unused remote host I don't mind. :)

    IT WORKED! In the advertised 5 minutes. I'm so excited.

    Do I need to remove the following files per this thread http://wordpress.org/support/topic/32764.
    "WordPress:
    Delete all import*.php, install*.php and upgrade*.php files in the wp-admin/ directory. Though unlikely to cause problems, once WP is installed (or upgraded) and running there's no need for them. If *not* allowing user registration, wp-register.php (blog root) can be removed."

    I'm going to now try the MacZealot's article to install a local copy.

    Thanks for your help and advice vkaryl and macmanx.

  6. James
    Happiness Engineer
    Posted 7 years ago #

    Removing the fore-mentioed files will cause no harm, so I'd recommend it. There were some earlier security holes, which have now been plugged, caused by those files because they are the only default WordPress files which contain the ability to write to the database on a large scale. For example, under a previous version of WordPress, the install.php file could be used by a malicious user to wipe the current WordPress database and install a new clean database. Like I said, these security holes have been plugged by now, but it's better to be safe than sorry. After all, you won't be needing those files once you have finished installing, upgrading, or importing.

  7. Ciryaquen
    Member
    Posted 7 years ago #

    Wow! that was a fast reply.

    Thank you! I've deleted those files.

  8. James
    Happiness Engineer
    Posted 7 years ago #

    Not a problem! I'm glad to be of service. ^_^

  9. Ciryaquen
    Member
    Posted 7 years ago #

    After a failed first attempt, I have finally installed WordPress on my PB for local testing. The only thing I did differently than the MacZealots article is sticking the WordPress folder in my ~home/sites/ folder.

    On my "live" blog I've enabled permalinks like this
    /%year%/%monthnum%/%day%/%post_id%/

    When I put that into the local copy it gave me this message

    "If your .htaccess was writable we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all."

    I've searched the forum, and all the UNIX stuff about setting up an htacess file and chmod etc. gives me the willies. I don't want to mess any further with the OS innards right now. [Had to reinstall the whole OS last weekend! :( ]

    Can I still use the local copy for testing or will the links get all SNAFUED? Any pointers I need to be careful of as I tweak the templates and CSS locally before moving them to the real hosted site?

  10. moshu
    Member
    Posted 7 years ago #

    On my local install (though it's a Windows and XAMPP) I don't bother to set the permalinks. I am testing mainly the themes and design - nothing related to (perma)links.
    Themes, CSS and all the desing related things will work perfectly the same with different permalink settings.

  11. Ciryaquen
    Member
    Posted 7 years ago #

    Thanks! I think this might be all sorted out.

Topic Closed

This topic has been closed to new replies.

About this Topic