WordPress.org

Ready to get started?Download WordPress

Forums

Install WordPress for local development (7 posts)

  1. mrling
    Member
    Posted 1 year ago #

    I am installing WordPress onto my computer for multiple sites using wamp and want to know if I should include the "wordpress" folder/directory, or take the files out of it and copy them directly into my site's folder (c://wamp/www/mysite/ or d://websites/mysite1/)?

    Using my FTP client to look at my remote WordPress install, I noticed the directory structure like this:
    "/public_html/wordpress/"
    ...with some other site files such as:
    .htaccess, error log, index.php
    ...and folders such as:
    images, css, cgi-bin, _notes
    ...located outside the wordpress folder.
    *I am confused as to why these files are outside the "wordpress" directory on my public host.

    On my PC, so far I have it structured like this:
    "/wamp/www/mysite1/wordpress/"
    ... would it be better to install it like this?:
    "/wamp/www/mysite1" -->with the wordpress files taken out of the "wordpress" folder, and directly copied into the "mysite1" folder
    *The problem I see with this is if I end up needing the former directory structure (/wamp/www/mysite1/wordpress) to hold the files and folders found outside the wordpress folder on my public host.

  2. keesiemeijer
    moderator
    Posted 1 year ago #

    Not familiar with WAMP, but try using "virtual hosts" if you want to use WAMP for multiple sites.
    Here are some tutorials for this:
    http://www.trailheadinteractive.com/creating_multiple_virtual_sites_a_single_apache_install_windows_xp
    http://www.codeforest.net/multiple-virtual-hosts-in-wamp

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    "/wamp/www/mysite1" should work just fine.

  4. mrling
    Member
    Posted 1 year ago #

    @keesie, thank you, but I've already read that tutorial and others until my eyes were bleeding. I actually have virtual hosts working, but am just wondering if there are any rules of setting of the directory that work best for development servers.

    @esmi, ok, so you think I shouldn't just drop the whole '/wordpress' folder in there with all the files inside it, but copy and paste all the files inside the '/wordpress' folder into '/mysite1' folder?

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    I don't think it really matters but dropping the "wordpress" folder won't harm anything and gives you shorter urls. I've got about 6 local installs running on my dev server - each with site urls along the lines of http://local_address/folder_name.

  6. mrling
    Member
    Posted 1 year ago #

    I dropped the wordpress folder and installed directly into /wamp/www/mysite, and now I am getting the site but no css styling? Have any clue why this is?

  7. esmi
    Forum Moderator
    Posted 1 year ago #

    Was this a fresh install into /wamp/www/mysite with a fresh database?

Topic Closed

This topic has been closed to new replies.

About this Topic